PHP Class ZF\Apigility\Admin\Model\DoctrineAdapterResource

Inheritance: extends ZF\Rest\AbstractResourceListener
Afficher le fichier Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Свойство Type Description
$loadedModules array
$model DbAdapterModel
$serviceLocator null | Zend\ServiceManager\ServiceLocatorInterface

Méthodes publiques

Méthode 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 méthode

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

create() public méthode

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

delete() public méthode

public delete ( $id ) : true
$id
Résultat true

fetch() public méthode

public fetch ( $id ) : ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem
$id
Résultat ZF\Apigility\Admin\Model\DbAdapterEntity | ZF\ApiProblem\ApiProblem

fetchAll() public méthode

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

getServiceLocator() public méthode

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

patch() public méthode

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

setServiceLocator() public méthode

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
Résultat array

$model protected_oe property

protected DbAdapterModel,ZF\Apigility\Admin\Model $model
Résultat DbAdapterModel

$serviceLocator protected_oe property

protected null|ServiceLocatorInterface,Zend\ServiceManager $serviceLocator
Résultat null | Zend\ServiceManager\ServiceLocatorInterface