本文整理汇总了PHP中kuserPeer::getAllUsersOrderedPager方法的典型用法代码示例。如果您正苦于以下问题:PHP kuserPeer::getAllUsersOrderedPager方法的具体用法?PHP kuserPeer::getAllUsersOrderedPager怎么用?PHP kuserPeer::getAllUsersOrderedPager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kuserPeer
的用法示例。
在下文中一共展示了kuserPeer::getAllUsersOrderedPager方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
public function execute()
{
$this->forceSystemAuthentication();
$partner_id = $this->getRequestParameter('partner_id', -1);
if ($partner_id >= 0) {
myPartnerUtils::applyPartnerFilters($partner_id);
}
$this->partner_id = $partner_id;
$order = $this->getRequestParameter('sort', kuser::KUSER_SORT_MOST_VIEWED);
$page = $this->getRequestParameter('page', 1);
$pager = kuserPeer::getAllUsersOrderedPager($order, 10, $page);
$kuser_list = $pager->getResults();
dashboardUtils::updateKusersRoughcutCount($kuser_list);
$kusersData = array();
foreach ($kuser_list as $kuser) {
$kusersData[] = $this->createkuserData($kuser, $order);
}
// following variables will be used by the view
$this->firstTime = $this->getRequestParameter('first', 1) == 1;
$this->order = $order;
$this->page = $page;
$this->lastPage = $pager->getLastPage();
$this->numResults = $pager->getNbResults();
$this->kusersData = $kusersData;
// allow the action buttons to show only for entires the user on their own pages
$this->allowactions = true;
}