diff options
| author | michael pereira | 2011-05-05 12:42:11 +0200 |
|---|---|---|
| committer | michael pereira | 2011-05-05 12:42:11 +0200 |
| commit | 094fd7cd3b869208b94936732e6e95d2d484d291 (patch) | |
| tree | 4ec032cf0aa55bbd859df62bd10d56b4d501efce /application/modules/user/controllers/ClientController.php | |
| parent | postinit script in view ausgelagert (diff) | |
| parent | Paar Mapper angepasst (diff) | |
| download | pbs2-094fd7cd3b869208b94936732e6e95d2d484d291.tar.gz pbs2-094fd7cd3b869208b94936732e6e95d2d484d291.tar.xz pbs2-094fd7cd3b869208b94936732e6e95d2d484d291.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/controllers/ClientController.php')
| -rw-r--r-- | application/modules/user/controllers/ClientController.php | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/application/modules/user/controllers/ClientController.php b/application/modules/user/controllers/ClientController.php index 589fcdc..76419a8 100644 --- a/application/modules/user/controllers/ClientController.php +++ b/application/modules/user/controllers/ClientController.php @@ -77,10 +77,10 @@ class User_ClientController extends Zend_Controller_Action // Pagination $pagination = new Pbs_Pagination(); - $pagination->setPerPage(10); - $pagination->setElement($clientsInGroup); - $pagination->setRequestPage($this->_request->getParam('page')); - $pagination->setPageUrl('/user/client/index'.((isset($this->view->search))?'/search/'.$this->view->search:'')); + $pagination->setPerPage(10) + ->setElement($clientsInGroup) + ->setRequestPage($this->_request->getParam('page')) + ->setPageUrl('/user/client/index'.((isset($this->view->search))?'/search/'.$this->view->search:'')); $clientsInGroup = $pagination->getElements(); $this->view->pagination = $pagination->pagination(); @@ -115,10 +115,10 @@ class User_ClientController extends Zend_Controller_Action $client = new Application_Model_Client($_POST); $mac = ($mac!='')?$mac:$_POST['macadress']; $hh = ($hh!='')?$hh:$_POST['hardwarehash']; - $client->setMacadress($mac); - $client->setHardwarehash($hh); - $client->setCreated(time()); - $client->setGroupID($this->membership->getGroupID()); + $client->setMacadress($mac) + ->setHardwarehash($hh) + ->setCreated(time()) + ->setGroupID($this->membership->getGroupID()); $clientmapper = new Application_Model_ClientMapper(); $clientmapper->save($client); $this->_redirect('/user/client/index/addresult/ok'); @@ -200,13 +200,4 @@ class User_ClientController extends Zend_Controller_Action $this->view->editclient = $editclient; } } - - } - - - - - - - |
