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