diff options
| author | Simon | 2011-03-14 16:17:48 +0100 |
|---|---|---|
| committer | Simon | 2011-03-14 16:17:48 +0100 |
| commit | d583d0071274a8843b3a3cd7b7ec72d5a9942f53 (patch) | |
| tree | 6fd2437ddefc93f94c0fbc3b1edcedcab02dd04a /application/modules/dev/controllers/PoolController.php | |
| parent | Application in 3 Modules gesplittet, Dev = unsere entwicklungsumgebung, user ... (diff) | |
| download | pbs2-d583d0071274a8843b3a3cd7b7ec72d5a9942f53.tar.gz pbs2-d583d0071274a8843b3a3cd7b7ec72d5a9942f53.tar.xz pbs2-d583d0071274a8843b3a3cd7b7ec72d5a9942f53.zip | |
Zweiter push um die änderungen hinzuzufügen, Trennung der Ansichten
Diffstat (limited to 'application/modules/dev/controllers/PoolController.php')
| -rw-r--r-- | application/modules/dev/controllers/PoolController.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/application/modules/dev/controllers/PoolController.php b/application/modules/dev/controllers/PoolController.php index f27ee45..cf6395d 100644 --- a/application/modules/dev/controllers/PoolController.php +++ b/application/modules/dev/controllers/PoolController.php @@ -1,6 +1,6 @@ <?php -class PoolController extends Zend_Controller_Action +class dev_PoolController extends Zend_Controller_Action { public function init() @@ -33,10 +33,10 @@ class PoolController extends Zend_Controller_Action public function createpoolAction() { if (!isset($_POST["add"])){ - $addfilterform = new Application_Form_Pool(array('buttontext' => 'Create Pool')); + $addfilterform = new dev_Form_Pool(array('buttontext' => 'Create Pool')); $this->view->addpool = $addfilterform; }else { - $addpoolform = new Application_Form_Pool(array('buttontext' => 'Create Pool'),$_POST); + $addpoolform = new dev_Form_Pool(array('buttontext' => 'Create Pool'),$_POST); if ($addpoolform->isValid($_POST)) { try{ $pool = new Application_Model_Pool($_POST); @@ -75,12 +75,12 @@ class PoolController extends Zend_Controller_Action $poolmapper->find($poolID,$pool); $poolArray = $pool->toArray(); - $editpool = new Application_Form_Pool(array('buttontext' => 'Edit Pool')); + $editpool = new dev_Form_Pool(array('buttontext' => 'Edit Pool')); $editpool->populate($poolArray); $this->view->editpoolform = $editpool; }else { - $editpoolform = new Application_Form_Pool(array('buttontext' => 'Edit Pool'),$_POST); + $editpoolform = new dev_Form_Pool(array('buttontext' => 'Edit Pool'),$_POST); if ($editpoolform->isValid($_POST)) { try{ $pool = new Application_Model_Pool($_POST); @@ -113,10 +113,10 @@ class PoolController extends Zend_Controller_Action } $freeclients = $this->arrayDiff($clientsArray,$assignedclientsArray); - $poolclient = new Application_Form_PoolClient(array('buttontext' => 'Link Client','clients'=> $freeclients)); + $poolclient = new dev_Form_PoolClient(array('buttontext' => 'Link Client','clients'=> $freeclients)); $this->view->poolclient = $poolclient; }else { - $poolclient = new Application_Form_PoolClient(array('buttontext' => 'Link Client'),$_POST); + $poolclient = new dev_Form_PoolClient(array('buttontext' => 'Link Client'),$_POST); try{ $pool = new Application_Model_PoolEntries($_POST); $pool->setPoolID($this->_request->getParam('poolID')); |
