本文整理汇总了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);