本文整理匯總了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);
}
示例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);
}