當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Doctrine_Connection::fetchAll方法代碼示例

本文整理匯總了PHP中Doctrine_Connection::fetchAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP Doctrine_Connection::fetchAll方法的具體用法?PHP Doctrine_Connection::fetchAll怎麽用?PHP Doctrine_Connection::fetchAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Doctrine_Connection的用法示例。


在下文中一共展示了Doctrine_Connection::fetchAll方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getAssignmentsHistory

 public function getAssignmentsHistory($subject_id = null, Doctrine_Connection $conn = null)
 {
     $q = "SELECT sa_vw.* FROM  ei_subject_assignment_vw as sa_vw   ";
     if ($subject_id != null) {
         $q .= "  WHERE  sah_subject_id=" . $subject_id;
     }
     $q .= ' Order by  sah_date DESC Limit 20';
     return $conn->fetchAll($q);
 }
開發者ID:lendji4000,項目名稱:compose,代碼行數:9,代碼來源:EiSubjectAssignmentHistoryTable.class.php

示例2: getExFunctWithAtLeastFiveDiffParams

 public function getExFunctWithAtLeastFiveDiffParams($delivery_id, Doctrine_Connection $conn = null)
 {
     $q = "select lgp1.* ,lgf.id , tsf.function_id,tsf.function_ref,tsf.status,vw.t_id,vw.t_name,\n \n                (select count(*)    from ei_log_param lgp\n                 inner join ei_test_set ts on ts.id=lgp.ei_test_set_id and ts.id  IN (select max(ts.id) from ei_test_set ts \n                                                    left join ei_campaign_execution_graph ceg on ts.id=ceg.ei_test_set_id\n                                                    left join ei_campaign_graph cg on ceg.graph_id=cg.id \n                                                    left join ei_delivery_has_campaign dc on dc.campaign_id=cg.campaign_id  where dc.delivery_id=" . $delivery_id . " group by dc.campaign_id )\n\n                where param_type like '%IN%' and lgp1.param_name=lgp.param_name and lgp1.param_valeur=lgp.param_valeur ) as nbRepParam\n\n                from ei_log_param lgp1\n                inner join ei_test_set ts1 on ts1.id=lgp1.ei_test_set_id and ts1.id  IN (select max(ts1.id) from ei_test_set ts1 \n                                                    left join ei_campaign_execution_graph ceg on ts1.id=ceg.ei_test_set_id\n                                                    left join ei_campaign_graph cg on ceg.graph_id=cg.id \n                                                    left join ei_delivery_has_campaign dc on dc.campaign_id=cg.campaign_id  where dc.delivery_id=" . $delivery_id . " group by dc.campaign_id) \n\n                inner join ei_log_function lgf on lgf.id=lgp1.ei_log_function_id\n                inner join ei_test_set_function tsf on tsf.id=lgf.ei_test_set_function_id\n                inner join ei_delivery_impacted_functions_vw vw on vw.t_obj_id=tsf.function_id and vw.t_ref_obj=tsf.function_ref\n                where lgp1.param_type like '%IN%' \n                group by lgp1.id ";
     return $conn->fetchAll($q);
 }
開發者ID:lendji4000,項目名稱:compose,代碼行數:5,代碼來源:EiDeliveryTable.class.php


注:本文中的Doctrine_Connection::fetchAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。