PHP Класс eZ\Publish\Core\SignalSlot\Repository

Наследование: implements eZ\Publish\API\Repository\Repository
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$contentService eZ\Publish\API\Repository\ContentService Instance of content service.
$contentTypeService eZ\Publish\API\Repository\ContentTypeService Instance of content type service.
$fieldTypeService eZ\Publish\API\Repository\FieldTypeService Instance of field type service.
$ioService eZ\Publish\API\Repository\IOService Instance of IO service.
$languageService eZ\Publish\API\Repository\LanguageService Instance of language service.
$locationService eZ\Publish\API\Repository\LocationService Instance of location service.
$objectStateService eZ\Publish\API\Repository\ObjectStateService Instance of object state service.
$repository eZ\Publish\API\Repository\Repository Repository Handler object.
$roleService eZ\Publish\API\Repository\RoleService Instance of role service.
$searchService eZ\Publish\API\Repository\SearchService Instance of search service.
$sectionService eZ\Publish\API\Repository\SectionService Instance of section service.
$signalDispatcher SignalDispatcher SignalDispatcher.
$trashService eZ\Publish\API\Repository\TrashService Instance of Trash service.
$urlAliasService eZ\Publish\Core\Repository\URLAliasService Instance of URL alias service.
$urlWildcardService eZ\Publish\Core\Repository\URLWildcardService Instance of URL wildcard service.
$userService eZ\Publish\API\Repository\UserService Instance of user service.

Открытые методы

Метод Описание
__construct ( eZ\Publish\API\Repository\Repository $repository, SignalDispatcher $signalDispatcher ) Constructor.
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.
createDateTime ( integer $timestamp = null ) : DateTime Only for internal use.
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.
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 SearchService.
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 | array
rollback ( ) Rollback transaction.
setCurrentUser ( eZ\Publish\API\Repository\Values\User\UserReference $user )
sudo ( Closure $callback ) : mixed Allows API execution to be performed with full access sand-boxed.

Описание методов

__construct() публичный Метод

Construct repository object from aggregated repository and signal dispatcher
public __construct ( eZ\Publish\API\Repository\Repository $repository, SignalDispatcher $signalDispatcher )
$repository eZ\Publish\API\Repository\Repository
$signalDispatcher SignalDispatcher

beginTransaction() публичный Метод

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

canUser() публичный Метод

Устаревший: since 6.6, to be removed. Use PermissionResolver::canUser() instead. Check if user has access to a given action on a given value object. 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
Результат boolean

commit() публичный Метод

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

commitEvent() публичный Метод

Enqueue an event to be triggered at commit or directly if no transaction has started.
Устаревший: 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

createDateTime() публичный Метод

Creates a \DateTime object for $timestamp in the current time zone
public createDateTime ( integer $timestamp = null ) : DateTime
$timestamp integer
Результат DateTime

getContentLanguageService() публичный Метод

Get service object to perform operations on Content language objects
public getContentLanguageService ( ) : eZ\Publish\API\Repository\LanguageService
Результат eZ\Publish\API\Repository\LanguageService

getContentService() публичный Метод

Get service object to perform operations on Content objects and it's aggregate members.
public getContentService ( ) : eZ\Publish\API\Repository\ContentService
Результат eZ\Publish\API\Repository\ContentService

getContentTypeService() публичный Метод

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
Результат eZ\Publish\API\Repository\ContentTypeService

getCurrentUser() публичный Метод

Устаревший: since 6.6, to be removed. Use PermissionResolver::getCurrentUserReference() instead. Get current user.
public getCurrentUser ( ) : eZ\Publish\API\Repository\Values\User\User
Результат eZ\Publish\API\Repository\Values\User\User

getCurrentUserReference() публичный Метод

Устаревший: since 6.6, to be removed. Use PermissionResolver::getCurrentUserReference() instead. Get current user ref.
public getCurrentUserReference ( ) : eZ\Publish\API\Repository\Values\User\UserReference
Результат eZ\Publish\API\Repository\Values\User\UserReference

getFieldTypeService() публичный Метод

Get FieldTypeService.
public getFieldTypeService ( ) : eZ\Publish\API\Repository\FieldTypeService
Результат eZ\Publish\API\Repository\FieldTypeService

getLocationService() публичный Метод

Get service object to perform operations on Location objects and subtrees
public getLocationService ( ) : eZ\Publish\API\Repository\LocationService
Результат eZ\Publish\API\Repository\LocationService

getObjectStateService() публичный Метод

Get ObjectStateService.
public getObjectStateService ( ) : eZ\Publish\API\Repository\ObjectStateService
Результат eZ\Publish\API\Repository\ObjectStateService

getPermissionResolver() публичный Метод

Get PermissionResolver.
public getPermissionResolver ( ) : eZ\Publish\API\Repository\PermissionResolver
Результат eZ\Publish\API\Repository\PermissionResolver

getRoleService() публичный Метод

Get RoleService.
public getRoleService ( ) : eZ\Publish\API\Repository\RoleService
Результат eZ\Publish\API\Repository\RoleService

getSearchService() публичный Метод

Get SearchService.
public getSearchService ( ) : eZ\Publish\API\Repository\SearchService
Результат eZ\Publish\API\Repository\SearchService

getSectionService() публичный Метод

Get Section service that lets you manipulate section objects
public getSectionService ( ) : eZ\Publish\API\Repository\SectionService
Результат eZ\Publish\API\Repository\SectionService

getTrashService() публичный Метод

Trash service allows to perform operations related to location trash (trash/untrash, load/list from trash...)
public getTrashService ( ) : eZ\Publish\API\Repository\TrashService
Результат eZ\Publish\API\Repository\TrashService

getURLAliasService() публичный Метод

Get URLAliasService.
public getURLAliasService ( ) : eZ\Publish\API\Repository\URLAliasService
Результат eZ\Publish\API\Repository\URLAliasService

getURLWildcardService() публичный Метод

Get URLWildcardService.
public getURLWildcardService ( ) : eZ\Publish\API\Repository\URLWildcardService
Результат eZ\Publish\API\Repository\URLWildcardService

getUserService() публичный Метод

Get service object to perform operations on Users and UserGroup
public getUserService ( ) : eZ\Publish\API\Repository\UserService
Результат eZ\Publish\API\Repository\UserService

hasAccess() публичный Метод

Устаревший: since 6.6, to be removed. Use PermissionResolver::hasAccess() instead. Check if user has access to a given module / function. Low level function, use canUser instead if you have objects to check against.
public hasAccess ( string $module, string $function, eZ\Publish\API\Repository\Values\User\UserReference $user = null ) : boolean | array
$module string
$function string
$user eZ\Publish\API\Repository\Values\User\UserReference
Результат boolean | array Bool if user has full or no access, array if limitations if not

rollback() публичный Метод

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

setCurrentUser() публичный Метод

Устаревший: 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 )
$user eZ\Publish\API\Repository\Values\User\UserReference

sudo() публичный Метод

The closure sandbox will do a catch all on exceptions and rethrow after re-setting the sudo flag. Example use: $location = $repository->sudo( function ( Repository $repo ) use ( $locationId ) { return $repo->getLocationService()->loadLocation( $locationId ) } );
public sudo ( Closure $callback ) : mixed
$callback Closure
Результат mixed

Описание свойств

$contentService защищенное свойство

Instance of content service.
protected ContentService,eZ\Publish\API\Repository $contentService
Результат eZ\Publish\API\Repository\ContentService

$contentTypeService защищенное свойство

Instance of content type service.
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService
Результат eZ\Publish\API\Repository\ContentTypeService

$fieldTypeService защищенное свойство

Instance of field type service.
protected FieldTypeService,eZ\Publish\API\Repository $fieldTypeService
Результат eZ\Publish\API\Repository\FieldTypeService

$ioService защищенное свойство

Instance of IO service.
protected IOService,eZ\Publish\API\Repository $ioService
Результат eZ\Publish\API\Repository\IOService

$languageService защищенное свойство

Instance of language service.
protected LanguageService,eZ\Publish\API\Repository $languageService
Результат eZ\Publish\API\Repository\LanguageService

$locationService защищенное свойство

Instance of location service.
protected LocationService,eZ\Publish\API\Repository $locationService
Результат eZ\Publish\API\Repository\LocationService

$objectStateService защищенное свойство

Instance of object state service.
protected ObjectStateService,eZ\Publish\API\Repository $objectStateService
Результат eZ\Publish\API\Repository\ObjectStateService

$repository защищенное свойство

Repository Handler object.
protected Repository,eZ\Publish\API\Repository $repository
Результат eZ\Publish\API\Repository\Repository

$roleService защищенное свойство

Instance of role service.
protected RoleService,eZ\Publish\API\Repository $roleService
Результат eZ\Publish\API\Repository\RoleService

$searchService защищенное свойство

Instance of search service.
protected SearchService,eZ\Publish\API\Repository $searchService
Результат eZ\Publish\API\Repository\SearchService

$sectionService защищенное свойство

Instance of section service.
protected SectionService,eZ\Publish\API\Repository $sectionService
Результат eZ\Publish\API\Repository\SectionService

$signalDispatcher защищенное свойство

SignalDispatcher.
protected SignalDispatcher,eZ\Publish\Core\SignalSlot $signalDispatcher
Результат SignalDispatcher

$trashService защищенное свойство

Instance of Trash service.
protected TrashService,eZ\Publish\API\Repository $trashService
Результат eZ\Publish\API\Repository\TrashService

$urlAliasService защищенное свойство

Instance of URL alias service.
protected URLAliasService,eZ\Publish\Core\Repository $urlAliasService
Результат eZ\Publish\Core\Repository\URLAliasService

$urlWildcardService защищенное свойство

Instance of URL wildcard service.
protected URLWildcardService,eZ\Publish\Core\Repository $urlWildcardService
Результат eZ\Publish\Core\Repository\URLWildcardService

$userService защищенное свойство

Instance of user service.
protected UserService,eZ\Publish\API\Repository $userService
Результат eZ\Publish\API\Repository\UserService