diff options
| author | Simon | 2011-04-05 17:42:14 +0200 |
|---|---|---|
| committer | Simon | 2011-04-05 17:42:14 +0200 |
| commit | b79d364ac6c97210b0023d8a27121f9ceeed94ed (patch) | |
| tree | 8999d51c3e7610baca6553c79b2e562f5a96c2e3 /application/modules/user/controllers/RoleController.php | |
| parent | globales Datumsformat (diff) | |
| parent | Merge branch 'master' of ssh://git.openslx.org/lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-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.php | 12 |
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'); |
