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


PHP CMediusers::seek方法代碼示例

本文整理匯總了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");
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:httpreq_do_intervenant_autocomplete.php

示例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);
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:ajax_search_mediusers.php


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