本文整理汇总了PHP中JoomdleHelperContent::getJoomlaUsers方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomdleHelperContent::getJoomlaUsers方法的具体用法?PHP JoomdleHelperContent::getJoomlaUsers怎么用?PHP JoomdleHelperContent::getJoomlaUsers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomdleHelperContent
的用法示例。
在下文中一共展示了JoomdleHelperContent::getJoomlaUsers方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getItems
/**
* Gets the list of users
*
* @return mixed An array of data items on success, false on failure.
* @since 1.6
*/
public function getItems()
{
$db = $this->getDbo();
$search = $this->getState('filter.search');
if ($search != '') {
$searchEscaped = $db->Quote('%' . $db->escape($search, true) . '%', false);
} else {
$searchEscaped = "";
}
$pagination = $this->getPagination();
$limitstart = $pagination->limitstart;
$limit = $pagination->limit;
$listOrder = $this->state->get('list.ordering');
$listDirn = $this->state->get('list.direction');
$filter_order = $listOrder;
$filter_order_Dir = $listDirn;
$filter_type = $this->getState('filter.state');
switch ($filter_type) {
case 'moodle':
$users = JoomdleHelperContent::getMoodleUsers($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
case 'joomla':
$users = JoomdleHelperContent::getJoomlaUsers($limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
break;
case 'joomdle':
$users = JoomdleHelperContent::getJoomdleUsers($limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
break;
case 'not_joomdle':
$users = JoomdleHelperContent::getNotJoomdleUsers($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
default:
$users = JoomdleHelperContent::getAllUsers($limitstart, $limit, $filter_order, $filter_order_Dir, $search);
break;
}
return $users;
}