module/Admin/src/Admin/Factory/AclresourceTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\AclresourceTableFactory |
30 |
|
*/ |
31 |
|
class AclresourceTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\AclresourceTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new Aclresource()); |
45 |
|
$tableGateway = new TableGateway('aclresource', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new AclresourceTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/AclroleTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\AclroleTableFactory |
30 |
|
*/ |
31 |
|
class AclroleTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\AclroleTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new Aclrole()); |
45 |
|
$tableGateway = new TableGateway('aclrole', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new AclroleTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/AclTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\AclTableFactory |
30 |
|
*/ |
31 |
|
class AclTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\AclTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new Acl()); |
45 |
|
$tableGateway = new TableGateway('acl', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new AclTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/ApplicationsTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\ApplicationsTableFactory |
30 |
|
*/ |
31 |
|
class ApplicationsTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\ApplicationsTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new Applications()); |
45 |
|
$tableGateway = new TableGateway('applications', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new ApplicationsTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/ClientsTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\ClientsTableFactory |
30 |
|
*/ |
31 |
|
class ClientsTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\ClientsTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new Clients()); |
45 |
|
$tableGateway = new TableGateway('clients', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new ClientsTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/SettingsTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\SettingsTableFactory |
30 |
|
*/ |
31 |
|
class SettingsTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\SettingsTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new Settings()); |
45 |
|
$tableGateway = new TableGateway('settings', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new SettingsTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/UserProfileTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\UserProfileTableFactory |
30 |
|
*/ |
31 |
|
class UserProfileTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\UserProfileTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new UserProfile()); |
45 |
|
$tableGateway = new TableGateway('userprofile', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new UserProfileTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |
module/Admin/src/Admin/Factory/UserTableFactory.php 1 location
|
@@ 31-49 (lines=19) @@
|
28 |
|
* |
29 |
|
* @package Admin\Factory\UserTableFactory |
30 |
|
*/ |
31 |
|
class UserTableFactory implements FactoryInterface |
32 |
|
{ |
33 |
|
/** |
34 |
|
* Create service |
35 |
|
* |
36 |
|
* @param ServiceLocatorInterface $serviceLocator |
37 |
|
* |
38 |
|
* @return Admin\Model\UserTable |
39 |
|
*/ |
40 |
|
public function createService(ServiceLocatorInterface $serviceLocator) |
41 |
|
{ |
42 |
|
$dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
43 |
|
$resultSetPrototype = new ResultSet(); |
44 |
|
$resultSetPrototype->setArrayObjectPrototype(new User()); |
45 |
|
$tableGateway = new TableGateway('user', $dbAdapter, null, $resultSetPrototype); |
46 |
|
$table = new UserTable($tableGateway); |
47 |
|
return $table; |
48 |
|
} |
49 |
|
} |