PHP Class ZF\Apigility\Admin\Model\RpcServiceResource

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

Protected Properties

Свойство Type Description
$controllerManager Zend\Mvc\Controller\ControllerManager
$documentationModel DocumentationModel
$inputFilterModel InputFilterModel
$model RpcServiceModel
$moduleName string
$rpcFactory RpcServiceModelFactory

Méthodes publiques

Méthode Description
__construct ( RpcServiceModelFactory $rpcFactory, InputFilterModel $inputFilterModel, ControllerManager $controllerManager, DocumentationModel $documentationModel )
create ( array | object $data ) : RpcServiceEntity | ZF\ApiProblem\ApiProblem Create a new RPC service
delete ( string $id ) : true Delete an RPC service
fetch ( string $id ) : RpcServiceEntity | ZF\ApiProblem\ApiProblem Fetch RPC metadata
fetchAll ( array $params = [] ) : RpcServiceEntity[] Fetch metadata for all RPC services
getModel ( ) : RpcServiceModel
getModuleName ( ) : string
patch ( string $id, object | array $data ) : ZF\ApiProblem\ApiProblem | RpcServiceEntity Update an existing RPC service

Méthodes protégées

Méthode Description
injectControllerClass ( RpcServiceEntity $service ) Inject the class name of the controller, if it can be resolved.
injectDocumentation ( RpcServiceEntity $service )
injectInputFilters ( RpcServiceEntity $service ) Inject the input filters collection, if any, as an embedded collection

Method Details

__construct() public méthode

public __construct ( RpcServiceModelFactory $rpcFactory, InputFilterModel $inputFilterModel, ControllerManager $controllerManager, DocumentationModel $documentationModel )
$rpcFactory RpcServiceModelFactory
$inputFilterModel InputFilterModel
$controllerManager Zend\Mvc\Controller\ControllerManager
$documentationModel DocumentationModel

create() public méthode

Create a new RPC service
public create ( array | object $data ) : RpcServiceEntity | ZF\ApiProblem\ApiProblem
$data array | object
Résultat RpcServiceEntity | ZF\ApiProblem\ApiProblem

delete() public méthode

Delete an RPC service
public delete ( string $id ) : true
$id string
Résultat true

fetch() public méthode

Fetch RPC metadata
public fetch ( string $id ) : RpcServiceEntity | ZF\ApiProblem\ApiProblem
$id string
Résultat RpcServiceEntity | ZF\ApiProblem\ApiProblem

fetchAll() public méthode

Fetch metadata for all RPC services
public fetchAll ( array $params = [] ) : RpcServiceEntity[]
$params array
Résultat RpcServiceEntity[]

getModel() public méthode

public getModel ( ) : RpcServiceModel
Résultat RpcServiceModel

getModuleName() public méthode

public getModuleName ( ) : string
Résultat string

injectControllerClass() protected méthode

Inject the class name of the controller, if it can be resolved.
protected injectControllerClass ( RpcServiceEntity $service )
$service RpcServiceEntity

injectDocumentation() protected méthode

protected injectDocumentation ( RpcServiceEntity $service )
$service RpcServiceEntity

injectInputFilters() protected méthode

Inject the input filters collection, if any, as an embedded collection
protected injectInputFilters ( RpcServiceEntity $service )
$service RpcServiceEntity

patch() public méthode

Update an existing RPC service
public patch ( string $id, object | array $data ) : ZF\ApiProblem\ApiProblem | RpcServiceEntity
$id string
$data object | array
Résultat ZF\ApiProblem\ApiProblem | RpcServiceEntity

Property Details

$controllerManager protected_oe property

protected ControllerManager,Zend\Mvc\Controller $controllerManager
Résultat Zend\Mvc\Controller\ControllerManager

$documentationModel protected_oe property

protected DocumentationModel,ZF\Apigility\Admin\Model $documentationModel
Résultat DocumentationModel

$inputFilterModel protected_oe property

protected InputFilterModel,ZF\Apigility\Admin\Model $inputFilterModel
Résultat InputFilterModel

$model protected_oe property

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

$moduleName protected_oe property

protected string $moduleName
Résultat string

$rpcFactory protected_oe property

protected RpcServiceModelFactory,ZF\Apigility\Admin\Model $rpcFactory
Résultat RpcServiceModelFactory