本文整理匯總了PHP中UserList::setSelector方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserList::setSelector方法的具體用法?PHP UserList::setSelector怎麽用?PHP UserList::setSelector使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserList
的用法示例。
在下文中一共展示了UserList::setSelector方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: max
if ($arguments['fieldOrder'] == 'name') {
$selector->setFieldOrder(UserStrategy::ORDER_BY_NAME);
} else {
$selector->setFieldOrder(UserStrategy::ORDER_BY_USERNAME);
}
}
//namesearch
$selector->setSearch($arguments['search']);
//paging
if (isset($_REQUEST['page'])) {
$page = max(array(1, $_REQUEST['page']));
$page = min(array($page, $userList->getNumberOfPage()));
$arguments['page'] = $page;
$selector->setPageToDisplay($page);
}
$userList->setSelector($selector);
}
}
if ('exFromUser' == $_REQUEST['cmd'] && !is_null($userId)) {
$subTitle = get_lang('Delete all user\'s messages');
$box = new AdminMessageBox();
$box->deleteAllMessageFromUser($userId);
$displayRemoveFromUserValidated = TRUE;
}
// delete older than
if ('rqOlderThan' == $_REQUEST['cmd']) {
$subTitle = get_lang('Delete messages older than');
$displayRemoveOlderThanConfirmation = TRUE;
}
if ('exOlderThan' == $_REQUEST['cmd'] && isset($_REQUEST['date'])) {
$subTitle = get_lang('Delete messages older than');