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/BootisoController.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/BootisoController.php')
| -rw-r--r-- | application/modules/user/controllers/BootisoController.php | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php index ae34ca0..b928a19 100644 --- a/application/modules/user/controllers/BootisoController.php +++ b/application/modules/user/controllers/BootisoController.php @@ -77,7 +77,17 @@ class user_BootisoController extends Zend_Controller_Action } $this->view->bootisolist = array_reverse($this->view->bootisolist); - + + $prebootMapper = new Application_Model_PreBootMapper(); + $this->view->prebootlist = array(); + + foreach ($this->view->bootisolist as $bootiso){ + $bootiso->setPrebootID("[".$bootiso->getPrebootID()."] ".$prebootMapper->find($bootiso->getPrebootID())->getTitle()); + $bootiso->setGroupID("[".$bootiso->getGroupID()."] ".$groupMapper->find($bootiso->getGroupID())->getTitle()); + $bootiso->setCreated(date(Zend_Registry::get('dateformat'),$bootiso->getCreated())); + $bootiso->setExpires(date(Zend_Registry::get('dateformat'),$bootiso->getExpires())); + } + // Search $search = $this->_request->getParam('search'); $mySearch = new Pbs_Search(); @@ -99,17 +109,6 @@ class user_BootisoController extends Zend_Controller_Action $this->view->pagination = $pagination->pagination($pageurl); $this->view->page = $pagination->getRequestPage(); - - $prebootMapper = new Application_Model_PreBootMapper(); - $this->view->prebootlist = array(); - - foreach ($this->view->bootisolist as $bootiso){ - $bootiso->setPrebootID("[".$bootiso->getPrebootID()."] ".$prebootMapper->find($bootiso->getPrebootID())->getTitle()); - $bootiso->setGroupID("[".$bootiso->getGroupID()."] ".$groupMapper->find($bootiso->getGroupID())->getTitle()); - $bootiso->setCreated(date(Zend_Registry::get('dateformat'),$bootiso->getCreated())); - $bootiso->setExpires(date(Zend_Registry::get('dateformat'),$bootiso->getExpires())); - } - } public function searchAction(){ |
