本文整理匯總了PHP中CMediusers::seek方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMediusers::seek方法的具體用法?PHP CMediusers::seek怎麽用?PHP CMediusers::seek使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMediusers
的用法示例。
在下文中一共展示了CMediusers::seek方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CMediusers
* $Id$
*
* @package Mediboard
* @subpackage SSR
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkRead();
$needle = CValue::post("_executant", "aaa");
$intervenant = new CMediusers();
$ljoin = array();
$ljoin["users"] = "users.user_id = users_mediboard.user_id";
$ljoin["functions_mediboard"] = "functions_mediboard.function_id = users_mediboard.function_id";
$where = array();
$where["code_intervenant_cdarr"] = "IS NOT NULL";
$where["users_mediboard.actif"] = "= '1'";
$where["functions_mediboard.group_id"] = "= '" . CGroups::loadCurrent()->_id . "'";
$order = "users.user_last_name ASC, users.user_first_name ASC";
/** @var CMediusers[] $intervenants */
$intervenants = $intervenant->seek($needle, $where, 100, false, $ljoin, $order);
foreach ($intervenants as &$_intervenant) {
$_intervenant->loadRefFunction();
$_intervenant->loadRefIntervenantCdARR();
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("intervenants", $intervenants);
$smarty->assign("needle", $needle);
$smarty->assign("nodebug", true);
$smarty->display("inc_do_intervenant_autocomplete.tpl");
示例2: CSmartyDP
$order = "functions_mediboard.text {$order_way}, users.user_last_name ASC, users.user_first_name ASC";
}
if ($order_col == "user_username") {
$order = "users.user_username {$order_way}, users.user_last_name ASC, users.user_first_name ASC";
}
if ($order_col == "user_last_name") {
$order = "users.user_last_name {$order_way}, users.user_first_name ASC";
}
if ($order_col == "user_first_name") {
$order = "users.user_first_name {$order_way}, users.user_last_name ASC";
}
if ($order_col == "user_type") {
$order = "users.user_type {$order_way}, users.user_last_name ASC, users.user_first_name ASC";
}
if ($filter) {
$mediusers = $mediuser->seek($filter, $where, "{$page}, {$step}", true, $ljoin, $order);
$total_mediuser = $mediuser->_totalSeek;
} else {
$total_mediuser = $mediuser->countList($where, null, $ljoin);
$mediusers = $mediuser->loadList($where, $order, "{$page}, {$step}", "users_mediboard.user_id", $ljoin);
}
/** @var CMediusers[] $mediusers */
foreach ($mediusers as $_mediuser) {
$_mediuser->loadRefFunction();
$_mediuser->loadRefProfile();
$_mediuser->loadRefUser();
$_mediuser->_ref_user->isLDAPLinked();
$_mediuser->getLastLogin();
}
$smarty = new CSmartyDP();
$smarty->assign("mediusers", $mediusers);