PHP Class eZ\Publish\Core\REST\Client\Repository

See also: eZ\Publish\API\Repository\Repository
Inheritance: implements eZ\Publish\API\Repository\Repository
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( eZ\Publish\Core\REST\Client\HttpClient $client, Dispatcher $inputDispatcher, Visitor $outputVisitor, eZ\Publish\Core\REST\Common\RequestParser $requestParser, array $fieldTypes ) Instantiates the REST Client repository.
beginTransaction ( ) Begin transaction.
canUser ( string $module, string $function, eZ\Publish\API\Repository\Values\ValueObject $object, mixed $targets = null ) : boolean
commit ( ) Commit transaction.
commitEvent ( Callable $event ) Enqueue an event to be triggered at commit or directly if no transaction has started.
getContentLanguageService ( ) : eZ\Publish\API\Repository\LanguageService Get Content Language Service.
getContentService ( ) : eZ\Publish\API\Repository\ContentService Get Content Service.
getContentTypeService ( ) : eZ\Publish\API\Repository\ContentTypeService Get Content Type Service.
getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User
getCurrentUserReference ( ) : eZ\Publish\API\Repository\Values\User\UserReference
getFieldTypeService ( ) : eZ\Publish\API\Repository\FieldTypeService Get FieldTypeService.
getIOService ( ) : eZ\Publish\API\Repository\IOService Get IO Service.
getLocationService ( ) : eZ\Publish\API\Repository\LocationService Get Content Location Service.
getObjectStateService ( ) : eZ\Publish\API\Repository\ObjectStateService Get ObjectStateService.
getPermissionResolver ( ) : eZ\Publish\API\Repository\PermissionResolver Get PermissionResolver.
getRoleService ( ) : eZ\Publish\API\Repository\RoleService Get RoleService.
getSearchService ( ) : eZ\Publish\API\Repository\SearchService Get Search Service.
getSectionService ( ) : eZ\Publish\API\Repository\SectionService Get Content Section Service.
getTrashService ( ) : eZ\Publish\API\Repository\TrashService Get Content Trash service.
getURLAliasService ( ) : eZ\Publish\API\Repository\URLAliasService Get URLAliasService.
getURLWildcardService ( ) : eZ\Publish\API\Repository\URLWildcardService Get URLWildcardService.
getUserService ( ) : eZ\Publish\API\Repository\UserService Get User Service.
hasAccess ( string $module, string $function, eZ\Publish\API\Repository\Values\User\UserReference $user = null ) : boolean | eZ\Publish\API\Repository\Values\User\Limitation[]
rollback ( ) Rollback transaction.
setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user ) : void

Method Details

__construct() public méthode

Instantiates the REST Client repository.
public __construct ( eZ\Publish\Core\REST\Client\HttpClient $client, Dispatcher $inputDispatcher, Visitor $outputVisitor, eZ\Publish\Core\REST\Common\RequestParser $requestParser, array $fieldTypes )
$client eZ\Publish\Core\REST\Client\HttpClient
$inputDispatcher eZ\Publish\Core\REST\Common\Input\Dispatcher
$outputVisitor eZ\Publish\Core\REST\Common\Output\Visitor
$requestParser eZ\Publish\Core\REST\Common\RequestParser
$fieldTypes array

beginTransaction() public méthode

Begins an transaction, make sure you'll call commit or rollback when done, otherwise work will be lost.
public beginTransaction ( )

canUser() public méthode

Deprecation: since 6.6, to be removed. Use PermissionResolver::canUser() instead. Indicates if the current user is allowed to perform an action given by the function on the given objects.
public canUser ( string $module, string $function, eZ\Publish\API\Repository\Values\ValueObject $object, mixed $targets = null ) : boolean
$module string The module, aka controller identifier to check permissions on
$function string The function, aka the controller action to check permissions on
$object eZ\Publish\API\Repository\Values\ValueObject The object to check if the user has access to
$targets mixed The location, parent or "assignment" value object, or an array of the same
Résultat boolean

commit() public méthode

Commit transaction, or throw exceptions if no transactions has been started.
public commit ( )

commitEvent() public méthode

Enqueue an event to be triggered at commit or directly if no transaction has started.
Deprecation: In 5.3.3, to be removed. Signals are emitted after transaction instead of being required to use this.
public commitEvent ( Callable $event )
$event Callable

getContentLanguageService() public méthode

Get service object to perform operations on Content language objects
public getContentLanguageService ( ) : eZ\Publish\API\Repository\LanguageService
Résultat eZ\Publish\API\Repository\LanguageService

getContentService() public méthode

Get service object to perform operations on Content objects and it's aggregate members.
public getContentService ( ) : eZ\Publish\API\Repository\ContentService
Résultat eZ\Publish\API\Repository\ContentService

getContentTypeService() public méthode

Get service object to perform operations on Content Type objects and it's aggregate members. ( Group, Field & FieldCategory )
public getContentTypeService ( ) : eZ\Publish\API\Repository\ContentTypeService
Résultat eZ\Publish\API\Repository\ContentTypeService

getCurrentUser() public méthode

Deprecation: since 6.6, to be removed. Use PermissionResolver::getCurrentUserReference() instead. Get current user.
public getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User
Résultat eZ\Publish\API\Repository\Values\User\User

getCurrentUserReference() public méthode

Deprecation: since 6.6, to be removed. Use PermissionResolver::getCurrentUserReference() instead. Get current user.
public getCurrentUserReference ( ) : eZ\Publish\API\Repository\Values\User\UserReference
Résultat eZ\Publish\API\Repository\Values\User\UserReference

getFieldTypeService() public méthode

Get FieldTypeService.
public getFieldTypeService ( ) : eZ\Publish\API\Repository\FieldTypeService
Résultat eZ\Publish\API\Repository\FieldTypeService

getIOService() public méthode

Get service object to perform operations on binary files
public getIOService ( ) : eZ\Publish\API\Repository\IOService
Résultat eZ\Publish\API\Repository\IOService

getLocationService() public méthode

Get service object to perform operations on Location objects and subtrees
public getLocationService ( ) : eZ\Publish\API\Repository\LocationService
Résultat eZ\Publish\API\Repository\LocationService

getObjectStateService() public méthode

Get ObjectStateService.
public getObjectStateService ( ) : eZ\Publish\API\Repository\ObjectStateService
Résultat eZ\Publish\API\Repository\ObjectStateService

getPermissionResolver() public méthode

Get PermissionResolver.
public getPermissionResolver ( ) : eZ\Publish\API\Repository\PermissionResolver
Résultat eZ\Publish\API\Repository\PermissionResolver

getRoleService() public méthode

Get RoleService.
public getRoleService ( ) : eZ\Publish\API\Repository\RoleService
Résultat eZ\Publish\API\Repository\RoleService

getSearchService() public méthode

Get search service that lets you find content objects
public getSearchService ( ) : eZ\Publish\API\Repository\SearchService
Résultat eZ\Publish\API\Repository\SearchService

getSectionService() public méthode

Get Section service that lets you manipulate section objects
public getSectionService ( ) : eZ\Publish\API\Repository\SectionService
Résultat eZ\Publish\API\Repository\SectionService

getTrashService() public méthode

Trash service allows to perform operations related to location trash (trash/untrash, load/list from trash...)
public getTrashService ( ) : eZ\Publish\API\Repository\TrashService
Résultat eZ\Publish\API\Repository\TrashService

getURLAliasService() public méthode

Get URLAliasService.
public getURLAliasService ( ) : eZ\Publish\API\Repository\URLAliasService
Résultat eZ\Publish\API\Repository\URLAliasService

getURLWildcardService() public méthode

Get URLWildcardService.
public getURLWildcardService ( ) : eZ\Publish\API\Repository\URLWildcardService
Résultat eZ\Publish\API\Repository\URLWildcardService

getUserService() public méthode

Get service object to perform operations on Users and UserGroup
public getUserService ( ) : eZ\Publish\API\Repository\UserService
Résultat eZ\Publish\API\Repository\UserService

hasAccess() public méthode

Deprecation: since 6.6, to be removed. Use PermissionResolver::hasAccess() instead.
public hasAccess ( string $module, string $function, eZ\Publish\API\Repository\Values\User\UserReference $user = null ) : boolean | eZ\Publish\API\Repository\Values\User\Limitation[]
$module string
$function string
$user eZ\Publish\API\Repository\Values\User\UserReference
Résultat boolean | eZ\Publish\API\Repository\Values\User\Limitation[] if limitations are on this function an array of limitations is returned

rollback() public méthode

Rollback transaction, or throw exceptions if no transactions has been started.
public rollback ( )

setCurrentUser() public méthode

Deprecation: since 6.6, to be removed. Use PermissionResolver::setCurrentUserReference() instead. Sets the current user to the given $user.
public setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user ) : void
$user eZ\Publish\API\Repository\Values\User\UserReference
Résultat void