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/GroupController.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/GroupController.php')
| -rw-r--r-- | application/modules/dev/controllers/GroupController.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/application/modules/dev/controllers/GroupController.php b/application/modules/dev/controllers/GroupController.php index fbc7943..45c28d4 100644 --- a/application/modules/dev/controllers/GroupController.php +++ b/application/modules/dev/controllers/GroupController.php @@ -1,6 +1,6 @@ <?php -class GroupController extends Zend_Controller_Action +class dev_GroupController extends Zend_Controller_Action { protected $groupMapper; protected $groupGroupsMapper; @@ -33,9 +33,9 @@ class GroupController extends Zend_Controller_Action public function addAction() { if (!isset($_POST["add"])){ - $addForm = new Application_Form_GroupAdd(array('grouplist' => $this->groupList)); + $addForm = new dev_Form_GroupAdd(array('grouplist' => $this->groupList)); } else { - $addForm = new Application_Form_GroupAdd(array('grouplist' => $this->groupList),$_POST); + $addForm = new dev_Form_GroupAdd(array('grouplist' => $this->groupList),$_POST); if ($addForm->isValid($_POST)) { $group = new Application_Model_Group($_POST); @@ -72,7 +72,7 @@ class GroupController extends Zend_Controller_Action public function editAction() { if(!isset($_POST['groupID'])) { - $addForm = new Application_Form_GroupAdd(array('grouplist' => $this->groupList)); + $addForm = new dev_Form_GroupAdd(array('grouplist' => $this->groupList)); $this->view->addForm = $addForm; return; } @@ -80,9 +80,9 @@ class GroupController extends Zend_Controller_Action $group = $this->groupMapper->find($_POST['groupID']); $_POST['title'] = $group->getTitle(); $_POST['description'] = $group->getDescription(); - $editForm = new Application_Form_GroupEdit(); + $editForm = new dev_Form_GroupEdit(); } else { - $editForm = new Application_Form_GroupEdit($_POST); + $editForm = new dev_Form_GroupEdit($_POST); if ($editForm->isValid($_POST)) { $group = new Application_Model_Group($_POST); try { @@ -140,9 +140,9 @@ class GroupController extends Zend_Controller_Action public function linkAction() { if (!isset($_POST["link"])){ - $linkForm = new Application_Form_GroupLink(array('grouplist' => $this->groupList)); + $linkForm = new dev_Form_GroupLink(array('grouplist' => $this->groupList)); } else { - $linkForm = new Application_Form_GroupLink(array('grouplist' => $this->groupList),$_POST); + $linkForm = new dev_Form_GroupLink(array('grouplist' => $this->groupList),$_POST); if ($linkForm->isValid($_POST)) { $groupgroups = new Application_Model_GroupGroups(); |
