PHP Class ZF\Apigility\Admin\Model\DoctrineAdapterResource

Inheritance: extends ZF\Rest\AbstractResourceListener
Datei anzeigen Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Property Type Description
$loadedModules array
$model DbAdapterModel
$serviceLocator null | Zend\ServiceManager\ServiceLocatorInterface

Public Methods

Method Description
__construct ( DoctrineAdapterModel $model, array $loadedModules = [] )
create ( object $data ) : false | ZF\Apigility\Admin\Model\DbAdapterEntity
delete ( $id ) : true
fetch ( $id ) : ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem
fetchAll ( array $params = [] ) : array | Zend\Http\Response
getServiceLocator ( ) : null | Zend\ServiceManager\ServiceLocatorInterface
patch ( $id, object | array $data ) : ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem
setServiceLocator ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) Set service locator

Method Details

__construct() public method

public __construct ( DoctrineAdapterModel $model, array $loadedModules = [] )
$model DoctrineAdapterModel
$loadedModules array List of loaded modules

create() public method

public create ( object $data ) : false | ZF\Apigility\Admin\Model\DbAdapterEntity
$data object
return false | ZF\Apigility\Admin\Model\DbAdapterEntity

delete() public method

public delete ( $id ) : true
$id
return true

fetch() public method

public fetch ( $id ) : ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem
$id
return ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem

fetchAll() public method

public fetchAll ( array $params = [] ) : array | Zend\Http\Response
$params array
return array | Zend\Http\Response

getServiceLocator() public method

Deprecation: since 1.5.0, and no longer used internally.
public getServiceLocator ( ) : null | Zend\ServiceManager\ServiceLocatorInterface
return null | Zend\ServiceManager\ServiceLocatorInterface

patch() public method

public patch ( $id, object | array $data ) : ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem
$id
$data object | array
return ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem

setServiceLocator() public method

Set service locator
Deprecation: since 1.5.0, and no longer used internally.
public setServiceLocator ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator )
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface

Property Details

$loadedModules protected_oe property

protected array $loadedModules
return array

$model protected_oe property

protected DbAdapterModel,ZF\Apigility\Admin\Model $model
return DbAdapterModel

$serviceLocator protected_oe property

protected null|ServiceLocatorInterface,Zend\ServiceManager $serviceLocator
return null | Zend\ServiceManager\ServiceLocatorInterface