本文整理汇总了PHP中UserList::get_total_rows方法的典型用法代码示例。如果您正苦于以下问题:PHP UserList::get_total_rows方法的具体用法?PHP UserList::get_total_rows怎么用?PHP UserList::get_total_rows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserList
的用法示例。
在下文中一共展示了UserList::get_total_rows方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: param
$edit_Plugin->Settings->dbupdate();
$action = 'edit';
break;
case 'search':
// Quick search
// Check that this action request is not a CSRF hacked request:
$Session->assert_received_crumb('user');
param('user_search', 'string', '');
set_param('keywords', $user_search);
set_param('filter', 'new');
load_class('users/model/_userlist.class.php', 'UserList');
$UserList = new UserList('admin', $UserSettings->get('results_per_page'), 'users_', array('join_city' => false));
$UserList->load_from_Request();
// Make query to get a count of users
$UserList->query();
if ($UserList->get_total_rows() == 1) {
// If we find only one user by quick search we do a redirect to user's edit page
$User = $UserList->rows[0];
if (!empty($User)) {
header_redirect('?ctrl=user&user_tab=profile&user_ID=' . $User->user_ID);
}
}
// Unset the filter to avoid the step 1 in the function $UserList->query() on the users list
set_param('filter', '');
break;
case 'remove_sender_customization':
// Check that this action request is not a CSRF hacked request:
$Session->assert_received_crumb('users');
// Check required permission
$current_User->check_perm('users', 'edit', true);
// get the type of the removable sender customization