summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/RoleController.php
diff options
context:
space:
mode:
authorSimon2011-04-05 17:42:14 +0200
committerSimon2011-04-05 17:42:14 +0200
commitb79d364ac6c97210b0023d8a27121f9ceeed94ed (patch)
tree8999d51c3e7610baca6553c79b2e562f5a96c2e3 /application/modules/user/controllers/RoleController.php
parentglobales Datumsformat (diff)
parentMerge branch 'master' of ssh://git.openslx.org/lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-b79d364ac6c97210b0023d8a27121f9ceeed94ed.tar.gz
pbs2-b79d364ac6c97210b0023d8a27121f9ceeed94ed.tar.xz
pbs2-b79d364ac6c97210b0023d8a27121f9ceeed94ed.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/controllers/RoleController.php')
-rw-r--r--application/modules/user/controllers/RoleController.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/application/modules/user/controllers/RoleController.php b/application/modules/user/controllers/RoleController.php
index 38c12b0..86872f0 100644
--- a/application/modules/user/controllers/RoleController.php
+++ b/application/modules/user/controllers/RoleController.php
@@ -23,8 +23,16 @@ class User_RoleController extends Zend_Controller_Action
public function indexAction()
{
if(isset($this->userIDsNamespace['groupID'])) {
- $roleList = $this->roleMapper->findBy(array('groupID' => $this->userIDsNamespace['groupID']),true);
- $this->view->roleList = $roleList;
+ // Pagination
+ $pagination = new Pbs_Pagination();
+ $pagination->setPerPage(5);
+ $pagination->setElement($this->roleMapper->findBy(array('groupID' => $this->userIDsNamespace['groupID']),true));
+ $pagination->setRequestPage($this->_request->getParam('page'));
+ $pagination->setPageUrl('/user/role/index'.((isset($this->view->search))?'/search/'.$this->view->search:''));
+
+ $this->view->roleList = $pagination->getElements();
+ $this->view->pagination = $pagination->pagination($pageurl);
+ $this->view->page = $pagination->getRequestPage();
$this->view->userIDsNamespace = $this->userIDsNamespace;
} else {
$this->_helper->redirector('selectmembership', 'person');