本文整理匯總了PHP中Objects::create方法的典型用法代碼示例。如果您正苦於以下問題:PHP Objects::create方法的具體用法?PHP Objects::create怎麽用?PHP Objects::create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Objects
的用法示例。
在下文中一共展示了Objects::create方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ver_all_resp_form
public function ver_all_resp_form(View $view)
{
$form = $view->getGET("form", False);
$encues = Session::get("encuestador");
$res1 = Objects::create(new Usuario(), "user")->select("user.id")->select("package1_formulario.id as form")->join("package1_responde", "package1_responde.user_id = user.id")->join("package1_respuesta_cerrada", "package1_responde.respuesta_cerrada_id = package1_respuesta_cerrada.id")->join("package1_pregunta_cerrada", "package1_respuesta_cerrada.pregunta_cerrada_id = package1_pregunta_cerrada.id")->join("package1_pregunta", "package1_pregunta_cerrada.pregunta_id = package1_pregunta.id")->join("package1_formulario", "package1_pregunta.formulario_id = package1_formulario.id")->filter(array("form = {$form}"));
$res2 = Objects::create(new Usuario(), "user")->select("user.id")->select("package1_formulario.id as form")->join("package1_respuesta_abierta", "package1_respuesta_abierta.user_id = user.id")->join("package1_pregunta_abierta", "package1_respuesta_abierta.pregunta_abierta_id = package1_pregunta_abierta.id")->join("package1_pregunta", "package1_pregunta_abierta.pregunta_id = package1_pregunta.id")->join("package1_formulario", "package1_pregunta.formulario_id = package1_formulario.id")->filter(array("form = {$form}"));
$res = $res1->union($res2)->distinct(array("id"));
return $res;
}