Interface

eZ\Publish\API\Repository\Repository

interface Repository

Repository interface.

Methods

User getCurrentUser()

UserReference getCurrentUserReference()

setCurrentUser(UserReference $user)

bool|array hasAccess(string $module, string $function, UserReference $user = null)

bool canUser(string $module, string $function, ValueObject $object, mixed $targets = null)

ContentService getContentService()

Get Content Service.

LanguageService getContentLanguageService()

Get Content Language Service.

ContentTypeService getContentTypeService()

Get Content Type Service.

LocationService getLocationService()

Get Content Location Service.

TrashService getTrashService()

Get Content Trash service.

SectionService getSectionService()

Get Content Section Service.

SearchService getSearchService()

Get Search Service.

UserService getUserService()

Get User Service.

URLAliasService getURLAliasService()

Get URLAliasService.

URLWildcardService getURLWildcardService()

Get URLWildcardService.

ObjectStateService getObjectStateService()

Get ObjectStateService.

RoleService getRoleService()

Get RoleService.

FieldTypeService getFieldTypeService()

Get FieldTypeService.

PermissionResolver getPermissionResolver()

Get PermissionResolver.

URLService getURLService()

Get URLService.

beginTransaction()

Begin transaction.

commit()

Commit transaction.

rollback()

Rollback transaction.

Details

at line 26
public User getCurrentUser()

Return Value

User

at line 36
public UserReference getCurrentUserReference()

Return Value

UserReference

at line 45
public setCurrentUser(UserReference $user)

Parameters

UserReference $user

at line 56
public bool|array hasAccess(string $module, string $function, UserReference $user = null)

Parameters

string $module The module, aka controller identifier to check permissions on
string $function The function, aka the controller action to check permissions on
UserReference $user

Return Value

bool|array if limitations are on this function an array of limitations is returned

at line 81
public bool canUser(string $module, string $function, ValueObject $object, mixed $targets = null)

Parameters

string $module The module, aka controller identifier to check permissions on
string $function The function, aka the controller action to check permissions on
ValueObject $object The object to check if the user has access to
mixed $targets The location, parent or "assignment" value object, or an array of the same

Return Value

bool

Exceptions

InvalidArgumentException If any of the arguments are invalid
BadStateException If value of the LimitationValue is unsupported

at line 90
public ContentService getContentService()

Get Content Service.

Get service object to perform operations on Content objects and it's aggregate members.

Return Value

ContentService

at line 99
public LanguageService getContentLanguageService()

Get Content Language Service.

Get service object to perform operations on Content language objects

Return Value

LanguageService

at line 109
public ContentTypeService getContentTypeService()

Get Content Type Service.

Get service object to perform operations on Content Type objects and it's aggregate members. ( Group, Field & FieldCategory )

Return Value

ContentTypeService

at line 118
public LocationService getLocationService()

Get Content Location Service.

Get service object to perform operations on Location objects and subtrees

Return Value

LocationService

at line 128
public TrashService getTrashService()

Get Content Trash service.

Trash service allows to perform operations related to location trash (trash/untrash, load/list from trash...)

Return Value

TrashService

at line 137
public SectionService getSectionService()

Get Content Section Service.

Get Section service that lets you manipulate section objects

Return Value

SectionService

at line 146
public SearchService getSearchService()

Get Search Service.

Get search service that lets you find content objects

Return Value

SearchService

at line 155
public UserService getUserService()

Get User Service.

Get service object to perform operations on Users and UserGroup

Return Value

UserService

at line 162
public URLAliasService getURLAliasService()

Get URLAliasService.

Return Value

URLAliasService

at line 169
public URLWildcardService getURLWildcardService()

Get URLWildcardService.

Return Value

URLWildcardService

at line 176
public ObjectStateService getObjectStateService()

Get ObjectStateService.

Return Value

ObjectStateService

at line 183
public RoleService getRoleService()

Get RoleService.

Return Value

RoleService

at line 190
public FieldTypeService getFieldTypeService()

Get FieldTypeService.

Return Value

FieldTypeService

at line 197
public PermissionResolver getPermissionResolver()

Get PermissionResolver.

Return Value

PermissionResolver

at line 204
public URLService getURLService()

Get URLService.

Return Value

URLService

at line 212
public beginTransaction()

Begin transaction.

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

at line 221
public commit()

Commit transaction.

Commit transaction, or throw exceptions if no transactions has been started.

Exceptions

RuntimeException If no transaction has been started

at line 230
public rollback()

Rollback transaction.

Rollback transaction, or throw exceptions if no transactions has been started.

Exceptions

RuntimeException If no transaction has been started