@@ -69,11 +69,11 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $tmplVars = $this->getTemplateVars(); |
| 71 | 71 | $aSettingslist = $this->getSettingsTable()->fetchAll(); |
| 72 | - if ( $this->isXHR() ) { |
|
| 72 | + if ($this->isXHR()) { |
|
| 73 | 73 | $datatablesData = array('data' => $aSettingslist->toArray()); |
| 74 | 74 | $oController = $this; |
| 75 | 75 | $datatablesData['data'] = array_map( |
| 76 | - function ($row) use ($oController) { |
|
| 76 | + function($row) use ($oController) { |
|
| 77 | 77 | $actions = '<div class="button-group tiny btn-group btn-group-xs">'. |
| 78 | 78 | '<a class="button btn btn-default tiny btn-xs btn-clean btn-cta-xhr cta-xhr-modal" href="'.$oController->url()->fromRoute( |
| 79 | 79 | 'admin/settingsedit', |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $settings->exchangeArray($form->getData()); |
| 122 | 122 | $this->getSettingsTable()->saveSettings($settings); |
| 123 | 123 | $this->flashMessenger()->addSuccessMessage($this->translate('setting has been saved')); |
| 124 | - if ( $this->isXHR() ) { |
|
| 124 | + if ($this->isXHR()) { |
|
| 125 | 125 | $tmplVars["showForm"] = false; |
| 126 | 126 | } else { |
| 127 | 127 | return $this->redirect()->toRoute('admin/settingsedit', array('action' => 'index')); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | return $this->redirect()->toRoute('admin/settingsedit'); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - $form = new SettingsForm(); |
|
| 164 | + $form = new SettingsForm(); |
|
| 165 | 165 | $form->bind($settings); |
| 166 | 166 | |
| 167 | 167 | $request = $this->getRequest(); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | if ($form->isValid()) { |
| 173 | 173 | $this->getSettingsTable()->saveSettings($settings); |
| 174 | 174 | $this->flashMessenger()->addSuccessMessage($this->translate("setting has been saved")); |
| 175 | - if ( $this->isXHR() ) { |
|
| 175 | + if ($this->isXHR()) { |
|
| 176 | 176 | $tmplVars["showForm"] = false; |
| 177 | 177 | } else { |
| 178 | 178 | return $this->redirect()->toRoute('admin/settingsedit', array('action' => 'index')); |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $id = (int) $request->getPost('id'); |
| 222 | 222 | $this->getSettingsTable()->deleteSettings($id); |
| 223 | 223 | $this->flashMessenger()->addSuccessMessage($this->translate("setting has been deleted")); |
| 224 | - if ( $this->isXHR() ) { |
|
| 224 | + if ($this->isXHR()) { |
|
| 225 | 225 | $tmplVars["showForm"] = false; |
| 226 | 226 | } else { |
| 227 | 227 | return $this->redirect()->toRoute('admin/settingsedit', array('action' => 'index')); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | array( |
| 30 | 30 | 'name' => 'aclroles_id', |
| 31 | 31 | 'attributes' => array( |
| 32 | - 'type' => 'hidden' , |
|
| 32 | + 'type' => 'hidden', |
|
| 33 | 33 | ), |
| 34 | 34 | ) |
| 35 | 35 | ); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $label = $emailElement->getLabel('label'); |
| 43 | 43 | // @TODO: make translation-friendly |
| 44 | 44 | foreach ($this->getAuthenticationOptions()->getAuthIdentityFields() as $mode) { |
| 45 | - $label = (!empty($label) ? $label . ' or ' : '') . ucfirst($mode); |
|
| 45 | + $label = (!empty($label) ? $label.' or ' : '').ucfirst($mode); |
|
| 46 | 46 | } |
| 47 | 47 | $emailElement->setLabel($label); |
| 48 | 48 | |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 41 | 41 | { |
| 42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | - $resultSetPrototype = new ResultSet(); |
|
| 42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | + $resultSetPrototype = new ResultSet(); |
|
| 44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new User()); |
| 45 | - $tableGateway = new TableGateway('user', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | - $table = new UserTable($tableGateway); |
|
| 45 | + $tableGateway = new TableGateway('user', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | + $table = new UserTable($tableGateway); |
|
| 47 | 47 | return $table; |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 41 | 41 | { |
| 42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | - $resultSetPrototype = new ResultSet(); |
|
| 42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | + $resultSetPrototype = new ResultSet(); |
|
| 44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new UserProfile()); |
| 45 | - $tableGateway = new TableGateway('userprofile', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | - $table = new UserProfileTable($tableGateway); |
|
| 45 | + $tableGateway = new TableGateway('userprofile', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | + $table = new UserProfileTable($tableGateway); |
|
| 47 | 47 | return $table; |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 41 | 41 | { |
| 42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | - $resultSetPrototype = new ResultSet(); |
|
| 42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | + $resultSetPrototype = new ResultSet(); |
|
| 44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new Clients()); |
| 45 | - $tableGateway = new TableGateway('clients', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | - $table = new ClientsTable($tableGateway); |
|
| 45 | + $tableGateway = new TableGateway('clients', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | + $table = new ClientsTable($tableGateway); |
|
| 47 | 47 | return $table; |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 41 | 41 | { |
| 42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | - $resultSetPrototype = new ResultSet(); |
|
| 42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | + $resultSetPrototype = new ResultSet(); |
|
| 44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new Acl()); |
| 45 | - $tableGateway = new TableGateway('acl', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | - $table = new AclTable($tableGateway); |
|
| 45 | + $tableGateway = new TableGateway('acl', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | + $table = new AclTable($tableGateway); |
|
| 47 | 47 | return $table; |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 41 | 41 | { |
| 42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | - $resultSetPrototype = new ResultSet(); |
|
| 42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | + $resultSetPrototype = new ResultSet(); |
|
| 44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new Aclresource()); |
| 45 | - $tableGateway = new TableGateway('aclresource', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | - $table = new AclresourceTable($tableGateway); |
|
| 45 | + $tableGateway = new TableGateway('aclresource', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | + $table = new AclresourceTable($tableGateway); |
|
| 47 | 47 | return $table; |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 41 | 41 | { |
| 42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | - $resultSetPrototype = new ResultSet(); |
|
| 42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
| 43 | + $resultSetPrototype = new ResultSet(); |
|
| 44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new Aclrole()); |
| 45 | - $tableGateway = new TableGateway('aclrole', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | - $table = new AclroleTable($tableGateway); |
|
| 45 | + $tableGateway = new TableGateway('aclrole', $dbAdapter, null, $resultSetPrototype); |
|
| 46 | + $table = new AclroleTable($tableGateway); |
|
| 47 | 47 | return $table; |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |