本文整理汇总了PHP中UserListFactory::getSearchByArrayCriteria方法的典型用法代码示例。如果您正苦于以下问题:PHP UserListFactory::getSearchByArrayCriteria方法的具体用法?PHP UserListFactory::getSearchByArrayCriteria怎么用?PHP UserListFactory::getSearchByArrayCriteria使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserListFactory
的用法示例。
在下文中一共展示了UserListFactory::getSearchByArrayCriteria方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
BreadCrumb::setCrumb($title);
extract(UserGenericDataFactory::getSearchFormData($saved_search_id, $sort_column));
Debug::Text('Sort Column: ' . $sort_column, __FILE__, __LINE__, __METHOD__, 10);
Debug::Text('Saved Search ID: ' . $saved_search_id, __FILE__, __LINE__, __METHOD__, 10);
if (isset($company_id) and $company_id != '') {
$filter_data['company_id'] = $company_id;
}
$sort_array = NULL;
if ($sort_column != '') {
$sort_array = array(Misc::trimSortPrefix($sort_column) => $sort_order);
}
URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('sort_column' => Misc::trimSortPrefix($sort_column), 'sort_order' => $sort_order, 'saved_search_id' => $saved_search_id, 'page' => $page));
$ulf = new UserListFactory();
$clf = new CompanyListFactory();
if ($permission->Check('company', 'view')) {
$ulf->getSearchByArrayCriteria($filter_data, $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
} else {
if ($permission->Check('user', 'view') == FALSE) {
if ($permission->Check('user', 'view_child')) {
$filter_data['permission_children_ids'] = $permission_children_ids;
}
if ($permission->Check('user', 'view_own')) {
$filter_data['permission_children_ids'][] = $current_user->getId();
}
}
Debug::Text('Users in company only!', __FILE__, __LINE__, __METHOD__, 10);
$ulf->getSearchByCompanyIdAndArrayCriteria($current_company->getId(), $filter_data, $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
}
$pager = new Pager($ulf);
if ($permission->Check('company', 'view')) {
$clf = new CompanyListFactory();