Beispiel #1
0
 public function kmcUsersAction()
 {
     $this->_helper->layout->disableLayout();
     $partnerId = $this->_getParam('partner_id');
     if (!$partnerId) {
         //TODO: error
     }
     $page = $this->_getParam('page', 1);
     $pageSize = $this->_getParam('pageSize', 10);
     $filter = new Kaltura_Client_Type_UserFilter();
     $filter->isAdminEqual = true;
     $filter->partnerIdEqual = $partnerId;
     $filter->statusEqual = Kaltura_Client_Enum_UserStatus::ACTIVE;
     $client = Infra_ClientHelper::getClient();
     $paginatorAdapter = new Infra_FilterPaginator($client->user, "listAction", $partnerId, $filter);
     $paginator = new Infra_Paginator($paginatorAdapter);
     $paginator->setCurrentPageNumber($page);
     $paginator->setItemCountPerPage($pageSize);
     $paginator->setIndex(2);
     $this->view->partnerId = $partnerId;
     $this->view->paginator = $paginator;
 }