Manager

API manager service.
Methods Summary
public
# __construct( Omeka\Api\Adapter\Manager $adapterManager , Omeka\Permissions\Acl $acl , Zend\Log\LoggerInterface $logger , Zend\I18n\Translator\TranslatorInterface $translator )
public
# create( string $resource , array $data = array ( ), array $fileData = array ( ), array $options = array ( ) )
Execute a create API request.
public
# batchCreate( string $resource , array $data = array ( ), array $fileData = array ( ), array $options = array ( ) )
Execute a batch create API request.
public
# read( string $resource , mixed $id , array $data = array ( ), array $options = array ( ) )
Execute a read API request.
public
# update( string $resource , mixed $id , array $data = array ( ), array $fileData = array ( ), array $options = array ( ) )
Execute an update API request.
public
# batchUpdate( $resource , array $ids , array $data = array ( ), array $options = array ( ) )
public
# delete( string $resource , mixed $id , array $data = array ( ), array $options = array ( ) )
Execute a delete API request.
public
# batchDelete( string $resource , array $ids , array $data = array ( ), array $options = array ( ) )
Execute a batch delete API request.
public
# execute( Omeka\Api\Request $request )
Execute an API request.
public
# initialize( Omeka\Api\Adapter\AdapterInterface $adapter , Omeka\Api\Request $request )
Initialize the request. Triggers the API-pre events.
public
# finalize( Omeka\Api\Adapter\AdapterInterface $adapter , Omeka\Api\Request $request , Omeka\Api\Response $response )
Finalize the request. Triggers API-post events and then transforms response content according to the "responseContent" request option
Properties Summary
protected Omeka\Api\Adapter\Manager $adapterManager
# NULL
protected Omeka\Permissions\Acl $acl
# NULL
protected Zend\Log\LoggerInterface $logger
# NULL
protected Zend\I18n\Translator\TranslatorInterface $translator
# NULL