PHP 클래스 eZ\Publish\Core\Repository\Repository

상속: implements eZ\Publish\API\Repository\Repository
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$commitEventsQueue array Array of arrays of commit events indexed by the transaction count.
$contentService eZ\Publish\API\Repository\ContentService Instance of content service.
$contentTypeDomainMapper eZ\Publish\Core\Repository\Helper\ContentTypeDomainMapper Instance of content type domain mapper.
$contentTypeService eZ\Publish\API\Repository\ContentTypeService Instance of content type service.
$currentUser eZ\Publish\API\Repository\Values\User\User | null
$currentUserRef eZ\Publish\API\Repository\Values\User\UserReference
$domainMapper eZ\Publish\Core\Repository\Helper\DomainMapper Instance of domain mapper.
$fieldTypeService eZ\Publish\API\Repository\FieldTypeService Instance of field type service.
$languageService eZ\Publish\API\Repository\LanguageService Instance of language service.
$limitationService eZ\Publish\Core\Repository\Helper\LimitationService Instance of role service.
$locationService eZ\Publish\API\Repository\LocationService Instance of location service.
$nameSchemaService eZ\Publish\Core\Repository\Helper\NameSchemaService Instance of name schema resolver service.
$objectStateService eZ\Publish\API\Repository\ObjectStateService Instance of object state service.
$permissionResolver eZ\Publish\Core\Repository\Permission\PermissionResolver Instance of permission service.
$permissionsCriterionHandler PermissionsCriterionHandler Instance of permissions criterion handler.
$persistenceHandler eZ\Publish\SPI\Persistence\Handler Repository Handler object.
$relationProcessor eZ\Publish\Core\Repository\Helper\RelationProcessor Instance of relation processor service.
$roleDomainMapper eZ\Publish\Core\Repository\Helper\RoleDomainMapper
$roleService eZ\Publish\API\Repository\RoleService Instance of role service.
$searchHandler eZ\Publish\SPI\Search\Handler Instance of main Search Handler.
$searchService eZ\Publish\API\Repository\SearchService Instance of search service.
$sectionService eZ\Publish\API\Repository\SectionService Instance of section service.
$serviceSettings array Service settings, first level key is service name.
$transactionDepth integer
$trashService eZ\Publish\API\Repository\TrashService Instance of Trash service.
$urlAliasService URLAliasService Instance of URL alias service.
$urlWildcardService URLWildcardService Instance of URL wildcard service.
$userService eZ\Publish\API\Repository\UserService Instance of user service.

공개 메소드들

메소드 설명
__construct ( eZ\Publish\SPI\Persistence\Handler $persistenceHandler, eZ\Publish\SPI\Search\Handler $searchHandler, array $serviceSettings = [], eZ\Publish\API\Repository\Values\User\UserReference $user = null ) 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.
getNameSchemaService ( ) : NameSchemaService Get NameSchemaResolverService.
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, eZ\Publish\API\Repository\Repository $outerRepository = null ) : mixed Allows API execution to be performed with full access sand-boxed.

보호된 메소드들

메소드 설명
getContentTypeDomainMapper ( ) : ContentTypeDomainMapper Get ContentType Domain Mapper.
getDomainMapper ( ) : DomainMapper Get Content Domain Mapper.
getFieldTypeRegistry ( ) : FieldTypeRegistry
getLimitationService ( ) : LimitationService Get LimitationService.
getNameableFieldTypeRegistry ( ) : NameableFieldTypeRegistry
getPermissionsCriterionHandler ( ) : PermissionsCriterionHandler Get PermissionsCriterionHandler.
getRelationProcessor ( ) : RelationProcessor Get RelationProcessor.
getRoleDomainMapper ( ) : RoleDomainMapper Get RoleDomainMapper.

메소드 상세

__construct() 공개 메소드

Construct repository object with provided storage engine
public __construct ( eZ\Publish\SPI\Persistence\Handler $persistenceHandler, eZ\Publish\SPI\Search\Handler $searchHandler, array $serviceSettings = [], eZ\Publish\API\Repository\Values\User\UserReference $user = null )
$persistenceHandler eZ\Publish\SPI\Persistence\Handler
$searchHandler eZ\Publish\SPI\Search\Handler
$serviceSettings array
$user eZ\Publish\API\Repository\Values\User\UserReference

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.
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

getContentTypeDomainMapper() 보호된 메소드

Get ContentType Domain Mapper.
protected getContentTypeDomainMapper ( ) : ContentTypeDomainMapper
리턴 eZ\Publish\Core\Repository\Helper\ContentTypeDomainMapper

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. Loads the full user object if not already loaded, if you only need to know user id use {@see \getCurrentUserReference()}
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 reference.
부터: 5.4.5
public getCurrentUserReference ( ) : eZ\Publish\API\Repository\Values\User\UserReference
리턴 eZ\Publish\API\Repository\Values\User\UserReference

getDomainMapper() 보호된 메소드

Get Content Domain Mapper.
protected getDomainMapper ( ) : DomainMapper
리턴 eZ\Publish\Core\Repository\Helper\DomainMapper

getFieldTypeRegistry() 보호된 메소드

protected getFieldTypeRegistry ( ) : FieldTypeRegistry
리턴 eZ\Publish\Core\Repository\Helper\FieldTypeRegistry

getFieldTypeService() 공개 메소드

Get FieldTypeService.
public getFieldTypeService ( ) : eZ\Publish\API\Repository\FieldTypeService
리턴 eZ\Publish\API\Repository\FieldTypeService

getLimitationService() 보호된 메소드

Get LimitationService.
protected getLimitationService ( ) : LimitationService
리턴 eZ\Publish\Core\Repository\Helper\LimitationService

getLocationService() 공개 메소드

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

getNameSchemaService() 공개 메소드

Get NameSchemaResolverService.
public getNameSchemaService ( ) : NameSchemaService
리턴 eZ\Publish\Core\Repository\Helper\NameSchemaService

getNameableFieldTypeRegistry() 보호된 메소드

protected getNameableFieldTypeRegistry ( ) : NameableFieldTypeRegistry
리턴 eZ\Publish\Core\Repository\Helper\NameableFieldTypeRegistry

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

getPermissionsCriterionHandler() 보호된 메소드

Get PermissionsCriterionHandler.
protected getPermissionsCriterionHandler ( ) : PermissionsCriterionHandler
리턴 PermissionsCriterionHandler

getRelationProcessor() 보호된 메소드

Get RelationProcessor.
protected getRelationProcessor ( ) : RelationProcessor
리턴 eZ\Publish\Core\Repository\Helper\RelationProcessor

getRoleDomainMapper() 보호된 메소드

Get RoleDomainMapper.
protected getRoleDomainMapper ( ) : RoleDomainMapper
리턴 eZ\Publish\Core\Repository\Helper\RoleDomainMapper

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, eZ\Publish\API\Repository\Repository $outerRepository = null ) : mixed
$callback Closure
$outerRepository eZ\Publish\API\Repository\Repository
리턴 mixed

프로퍼티 상세

$commitEventsQueue 보호되어 있는 프로퍼티

Array of arrays of commit events indexed by the transaction count.
protected array $commitEventsQueue
리턴 array

$contentService 보호되어 있는 프로퍼티

Instance of content service.
protected ContentService,eZ\Publish\API\Repository $contentService
리턴 eZ\Publish\API\Repository\ContentService

$contentTypeDomainMapper 보호되어 있는 프로퍼티

Instance of content type domain mapper.
protected ContentTypeDomainMapper,eZ\Publish\Core\Repository\Helper $contentTypeDomainMapper
리턴 eZ\Publish\Core\Repository\Helper\ContentTypeDomainMapper

$contentTypeService 보호되어 있는 프로퍼티

Instance of content type service.
protected ContentTypeService,eZ\Publish\API\Repository $contentTypeService
리턴 eZ\Publish\API\Repository\ContentTypeService

$currentUser 보호되어 있는 프로퍼티

사용 중단: since 6.6, to be removed. Current user handling is moved to PermissionResolver. Currently logged in user object if already loaded.
protected User,eZ\Publish\API\Repository\Values\User|null $currentUser
리턴 eZ\Publish\API\Repository\Values\User\User | null

$currentUserRef 보호되어 있는 프로퍼티

사용 중단: since 6.6, to be removed. Current user handling is moved to PermissionResolver. Currently logged in user reference for permission purposes.
protected UserReference,eZ\Publish\API\Repository\Values\User $currentUserRef
리턴 eZ\Publish\API\Repository\Values\User\UserReference

$domainMapper 보호되어 있는 프로퍼티

Instance of domain mapper.
protected DomainMapper,eZ\Publish\Core\Repository\Helper $domainMapper
리턴 eZ\Publish\Core\Repository\Helper\DomainMapper

$fieldTypeService 보호되어 있는 프로퍼티

Instance of field type service.
protected FieldTypeService,eZ\Publish\API\Repository $fieldTypeService
리턴 eZ\Publish\API\Repository\FieldTypeService

$languageService 보호되어 있는 프로퍼티

Instance of language service.
protected LanguageService,eZ\Publish\API\Repository $languageService
리턴 eZ\Publish\API\Repository\LanguageService

$limitationService 보호되어 있는 프로퍼티

Instance of role service.
protected LimitationService,eZ\Publish\Core\Repository\Helper $limitationService
리턴 eZ\Publish\Core\Repository\Helper\LimitationService

$locationService 보호되어 있는 프로퍼티

Instance of location service.
protected LocationService,eZ\Publish\API\Repository $locationService
리턴 eZ\Publish\API\Repository\LocationService

$nameSchemaService 보호되어 있는 프로퍼티

Instance of name schema resolver service.
protected NameSchemaService,eZ\Publish\Core\Repository\Helper $nameSchemaService
리턴 eZ\Publish\Core\Repository\Helper\NameSchemaService

$objectStateService 보호되어 있는 프로퍼티

Instance of object state service.
protected ObjectStateService,eZ\Publish\API\Repository $objectStateService
리턴 eZ\Publish\API\Repository\ObjectStateService

$permissionResolver 보호되어 있는 프로퍼티

Instance of permission service.
protected PermissionResolver,eZ\Publish\Core\Repository\Permission $permissionResolver
리턴 eZ\Publish\Core\Repository\Permission\PermissionResolver

$permissionsCriterionHandler 보호되어 있는 프로퍼티

Instance of permissions criterion handler.
protected PermissionsCriterionHandler,eZ\Publish\Core\Repository $permissionsCriterionHandler
리턴 PermissionsCriterionHandler

$persistenceHandler 보호되어 있는 프로퍼티

Repository Handler object.
protected Handler,eZ\Publish\SPI\Persistence $persistenceHandler
리턴 eZ\Publish\SPI\Persistence\Handler

$relationProcessor 보호되어 있는 프로퍼티

Instance of relation processor service.
protected RelationProcessor,eZ\Publish\Core\Repository\Helper $relationProcessor
리턴 eZ\Publish\Core\Repository\Helper\RelationProcessor

$roleDomainMapper 보호되어 있는 프로퍼티

protected RoleDomainMapper,eZ\Publish\Core\Repository\Helper $roleDomainMapper
리턴 eZ\Publish\Core\Repository\Helper\RoleDomainMapper

$roleService 보호되어 있는 프로퍼티

Instance of role service.
protected RoleService,eZ\Publish\API\Repository $roleService
리턴 eZ\Publish\API\Repository\RoleService

$searchHandler 보호되어 있는 프로퍼티

Instance of main Search Handler.
protected Handler,eZ\Publish\SPI\Search $searchHandler
리턴 eZ\Publish\SPI\Search\Handler

$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

$serviceSettings 보호되어 있는 프로퍼티

Service settings, first level key is service name.
protected array $serviceSettings
리턴 array

$transactionDepth 보호되어 있는 프로퍼티

protected int $transactionDepth
리턴 integer

$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
리턴 URLAliasService

$urlWildcardService 보호되어 있는 프로퍼티

Instance of URL wildcard service.
protected URLWildcardService,eZ\Publish\Core\Repository $urlWildcardService
리턴 URLWildcardService

$userService 보호되어 있는 프로퍼티

Instance of user service.
protected UserService,eZ\Publish\API\Repository $userService
리턴 eZ\Publish\API\Repository\UserService