@@ -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 |
@@ -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 Applications()); |
45 | - $tableGateway = new TableGateway('applications', $dbAdapter, null, $resultSetPrototype); |
|
46 | - $table = new ApplicationsTable($tableGateway); |
|
45 | + $tableGateway = new TableGateway('applications', $dbAdapter, null, $resultSetPrototype); |
|
46 | + $table = new ApplicationsTable($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 Settings()); |
45 | - $tableGateway = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype); |
|
46 | - $table = new SettingsTable($tableGateway); |
|
45 | + $tableGateway = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype); |
|
46 | + $table = new SettingsTable($tableGateway); |
|
47 | 47 | return $table; |
48 | 48 | } |
49 | 49 | } |
50 | 50 | \ No newline at end of file |
@@ -215,7 +215,7 @@ |
||
215 | 215 | public function getClient() |
216 | 216 | { |
217 | 217 | /** |
218 | - * @var \Admin\Model\ClientsTable $clients |
|
218 | + * @var \Admin\Model\ClientsTable $clients |
|
219 | 219 | */ |
220 | 220 | if ($this->client_id) { |
221 | 221 | $clients = \Application\Module::getService('AdminClientsTable'); |
@@ -42,11 +42,11 @@ |
||
42 | 42 | |
43 | 43 | public function exchangeArray($data) |
44 | 44 | { |
45 | - $this->application_id = (isset($data['application_id'])) ? $data['application_id'] : $this->application_id; |
|
45 | + $this->application_id = (isset($data['application_id'])) ? $data['application_id'] : $this->application_id; |
|
46 | 46 | $this->name = (isset($data['name'])) ? $data['name'] : $this->name; |
47 | 47 | $this->shortname = (isset($data['shortname'])) ? $data['shortname'] : $this->shortname; |
48 | 48 | $this->path = (isset($data['path'])) ? $data['path'] : $this->path; |
49 | - $this->url = (isset($data['url'])) ? $data['url'] : $this->url; |
|
49 | + $this->url = (isset($data['url'])) ? $data['url'] : $this->url; |
|
50 | 50 | $this->email = (isset($data['email'])) ? $data['email'] : $this->email; |
51 | 51 | $this->client_id = (isset($data['client_id'])) ? $data['client_id'] : $this->client_id; |
52 | 52 | } |
@@ -34,13 +34,13 @@ discard block |
||
34 | 34 | return $resultSet; |
35 | 35 | } |
36 | 36 | |
37 | - public function getUserByEmailOrUsername( $id ) |
|
37 | + public function getUserByEmailOrUsername($id) |
|
38 | 38 | { |
39 | - if (empty($id) ) { |
|
39 | + if (empty($id)) { |
|
40 | 40 | return false; |
41 | 41 | } |
42 | 42 | $resultSet = $this->tableGateway->select( |
43 | - function (Select $select) use ($id) { |
|
43 | + function(Select $select) use ($id) { |
|
44 | 44 | $select->where( |
45 | 45 | array( |
46 | 46 | "username = '".$id."'", |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'aclrole' => $user->aclrole, |
80 | 80 | ); |
81 | 81 | |
82 | - $id = (int)$user->user_id; |
|
82 | + $id = (int) $user->user_id; |
|
83 | 83 | if ($id == 0) { |
84 | 84 | $this->tableGateway->insert($data); |
85 | 85 | } else { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | 'icq' => $user->icq, |
64 | 64 | ); |
65 | 65 | |
66 | - $id = (int)$user->user_id; |
|
66 | + $id = (int) $user->user_id; |
|
67 | 67 | if ($id == 0) { |
68 | 68 | throw new \Exception('invalid user'); |
69 | 69 | } else { |