本文整理匯總了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