Property | Type | Description | |
---|---|---|---|
$entityIdentifierName | entityIdentifierName | ||
$eventIdentifier | array | ||
$events | Zend\EventManager\EventManagerInterface | ||
$hydrator | Zend\Hydrator\HydratorInterface | ||
$multiKeyDelimiter | string | ||
$objectManager | Doctrine\Common\Persistence\ObjectManager | ||
$queryCreateFilter | ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface | ||
$queryProviders | array | ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface | ||
$routeIdentifierName | string | ||
$sharedEventManager | Interface |
Method | Description | |
---|---|---|
create ( mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | Create a resource | |
delete ( mixed $id ) : ZF\ApiProblem\ApiProblem | mixed | Delete a resource | |
deleteList ( mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | Delete a list of entities | |
fetch ( mixed $id ) : ZF\ApiProblem\ApiProblem | mixed | Fetch a resource | |
fetchAll ( array $data = [] ) : ZF\ApiProblem\ApiProblem | mixed | Fetch all or a subset of resources | |
getEntityIdentifierName ( ) : string | ||
getEventManager ( ) : Zend\EventManager\EventManagerInterface | Retrieve the event manager | |
getHydrator ( ) : Zend\Hydrator\HydratorInterface | ||
getMultiKeyDelimiter ( ) : string | ||
getObjectManager ( ) : Doctrine\Common\Persistence\ObjectManager | Doctrine\ORM\EntityManagerInterface | Get the object manager | |
getQueryCreateFilter ( ) : ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface | ||
getQueryProvider ( $method ) : ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface | ||
getQueryProviders ( ) : array | ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface[] | ||
getRouteIdentifierName ( ) : string | ||
getSharedEventManager ( ) : Zend\EventManager\SharedEventManager | ||
patch ( mixed $id, mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | Patch (partial in-place update) a resource | |
patchList ( array $data ) : array | Respond to the PATCH method (partial update of existing entity) on a collection, i.e. update multiple entities in a collection. | |
replaceList ( mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | Replace a collection or members of a collection | |
setEntityIdentifierName ( $value ) | ||
setEventManager ( Zend\EventManager\EventManagerInterface $events ) | Set the event manager instance used by this context. | |
setHydrator ( Zend\Hydrator\HydratorInterface $hydrator ) | ||
setMultiKeyDelimiter ( string $value ) | ||
setObjectManager ( Doctrine\Common\Persistence\ObjectManager $objectManager ) | Set the object manager | |
setQueryCreateFilter ( ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface $value ) | ||
setQueryProviders ( $queryProviders ) | ||
setRouteIdentifierName ( string $routeIdentifierName ) | ||
setSharedEventManager ( Zend\EventManager\SharedEventManager $sharedEventManager ) | ||
update ( mixed $id, mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | Update a resource |
Method | Description | |
---|---|---|
findEntity ( $id, $method, null | array $data = null ) : object | Gets an entity by route params and/or the specified id | |
triggerDoctrineEvent ( $name, $entity, $data = null ) : Zend\EventManager\ResponseCollection | This method will give custom listeners te chance to alter entities / collections. |
public deleteList ( mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | ||
$data | mixed | |
return | ZF\ApiProblem\ApiProblem | mixed |
public getEventManager ( ) : Zend\EventManager\EventManagerInterface | ||
return | Zend\EventManager\EventManagerInterface |
public getHydrator ( ) : Zend\Hydrator\HydratorInterface | ||
return | Zend\Hydrator\HydratorInterface |
public getObjectManager ( ) : Doctrine\Common\Persistence\ObjectManager | Doctrine\ORM\EntityManagerInterface | ||
return | Doctrine\Common\Persistence\ObjectManager | Doctrine\ORM\EntityManagerInterface |
public getQueryCreateFilter ( ) : ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface | ||
return | ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface |
public getQueryProvider ( $method ) : ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface | ||
$method | ||
return | ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface |
public getQueryProviders ( ) : array | ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface[] | ||
return | array | ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface[] |
public replaceList ( mixed $data ) : ZF\ApiProblem\ApiProblem | mixed | ||
$data | mixed | |
return | ZF\ApiProblem\ApiProblem | mixed |
public setEventManager ( Zend\EventManager\EventManagerInterface $events ) | ||
$events | Zend\EventManager\EventManagerInterface |
public setHydrator ( Zend\Hydrator\HydratorInterface $hydrator ) | ||
$hydrator | Zend\Hydrator\HydratorInterface |
public setObjectManager ( Doctrine\Common\Persistence\ObjectManager $objectManager ) | ||
$objectManager | Doctrine\Common\Persistence\ObjectManager |
public setQueryCreateFilter ( ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface $value ) | ||
$value | ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface |
public setRouteIdentifierName ( string $routeIdentifierName ) | ||
$routeIdentifierName | string |
protected triggerDoctrineEvent ( $name, $entity, $data = null ) : Zend\EventManager\ResponseCollection | ||
$name | ||
$entity | ||
$data | mixed The original data supplied to the resource method, if any | |
return | Zend\EventManager\ResponseCollection |
protected EventManagerInterface,Zend\EventManager $events | ||
return | Zend\EventManager\EventManagerInterface |
protected HydratorInterface,Zend\Hydrator $hydrator | ||
return | Zend\Hydrator\HydratorInterface |
protected ObjectManager,Doctrine\Common\Persistence $objectManager | ||
return | Doctrine\Common\Persistence\ObjectManager |
protected QueryCreateFilterInterface,ZF\Apigility\Doctrine\Server\Query\CreateFilter $queryCreateFilter | ||
return | ZF\Apigility\Doctrine\Server\Query\CreateFilter\QueryCreateFilterInterface |
protected array|QueryProviderInterface,ZF\Apigility\Doctrine\Server\Query\Provider $queryProviders | ||
return | array | ZF\Apigility\Doctrine\Server\Query\Provider\QueryProviderInterface |