diff options
| author | michael pereira | 2011-04-10 21:05:24 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-10 21:05:24 +0200 |
| commit | ce62cf823e40aaf60389a28520390c9373cb3253 (patch) | |
| tree | c4d027e88ea39ecf8d4f6717d7fe6d0f3cec2d4a /application/modules/user/controllers/BootosController.php | |
| parent | kcl fixed (diff) | |
| download | pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.tar.gz pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.tar.xz pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.zip | |
Config Own/Group getrennt
Diffstat (limited to 'application/modules/user/controllers/BootosController.php')
| -rw-r--r-- | application/modules/user/controllers/BootosController.php | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/application/modules/user/controllers/BootosController.php b/application/modules/user/controllers/BootosController.php index aad26aa..917441a 100644 --- a/application/modules/user/controllers/BootosController.php +++ b/application/modules/user/controllers/BootosController.php @@ -75,7 +75,23 @@ class user_BootosController extends Zend_Controller_Action $this->view->bootoslist = array_reverse($this->view->bootoslist); - // Search + $this->view->update = array(); + $update = $this->_request->getParam('checkupdate'); + $groupMapper = new Application_Model_GroupMapper(); + $configMapper = new Application_Model_ConfigMapper(); + + + if(count($this->view->bootoslist)>0){ + foreach ($this->view->bootoslist as $bootos){ + $this->view->update[$bootos->getID()] = $update && $this->checkupdateAction($bootos); + $bootos->setGroupID("[".$bootos->getGroupID()."] ".$groupMapper->find($bootos->getGroupID())->getTitle()); + $bootos->setConfigID("[".$bootos->getConfigID()."] ".$configMapper->find($bootos->getConfigID())->getTitle()); + $bootos->setCreated(date(Zend_Registry::get('dateformat'),$bootos->getCreated())); + $bootos->setExpires(date(Zend_Registry::get('dateformat'),$bootos->getExpires())); + } + } + + // Search $search = $this->_request->getParam('search'); $mySearch = new Pbs_Search(); $mySearch->setSearchTerm($search); @@ -97,21 +113,6 @@ class user_BootosController extends Zend_Controller_Action $this->view->pagination = $pagination->pagination($pageurl); $this->view->page = $pagination->getRequestPage(); - $this->view->update = array(); - $update = $this->_request->getParam('checkupdate'); - $groupMapper = new Application_Model_GroupMapper(); - $configMapper = new Application_Model_ConfigMapper(); - - - if(count($this->view->bootoslist)>0){ - foreach ($this->view->bootoslist as $bootos){ - $this->view->update[$bootos->getID()] = $update && $this->checkupdateAction($bootos); - $bootos->setGroupID("[".$bootos->getGroupID()."] ".$groupMapper->find($bootos->getGroupID())->getTitle()); - $bootos->setConfigID("[".$bootos->getConfigID()."] ".$configMapper->find($bootos->getConfigID())->getTitle()); - $bootos->setCreated(date(Zend_Registry::get('dateformat'),$bootos->getCreated())); - $bootos->setExpires(date(Zend_Registry::get('dateformat'),$bootos->getExpires())); - } - } } public function searchAction(){ |
