PHP Класс eZ\Publish\Core\Persistence\Legacy\Content\Type\MemoryCachingHandler

Наследование: implements eZ\Publish\SPI\Persistence\Content\Type\Handler
Показать файл Открыть проект

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

Свойство Тип Описание
$contentTypes array Local in-memory cache for content types in one single request.
$fieldDefinitions array Local in-memory cache for field definitions in one single request.
$groups array Local in-memory cache for groups in one single request.
$innerHandler eZ\Publish\SPI\Persistence\Content\Type\Handler Inner handler to dispatch calls to.
$searchableFieldMap array Local in-memory cache for searchable field map in one single request.

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

Метод Описание
__construct ( eZ\Publish\SPI\Persistence\Content\Type\Handler $handler ) Creates a new content type handler.
addFieldDefinition ( mixed $contentTypeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) Adds a new field definition to an existing Type.
clearCache ( ) Clear internal caches.
copy ( mixed $userId, mixed $contentTypeId, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type
create ( eZ\Publish\SPI\Persistence\Content\Type\CreateStruct $createStruct ) : eZ\Publish\SPI\Persistence\Content\Type
createDraft ( mixed $modifierId, mixed $contentTypeId ) : eZ\Publish\SPI\Persistence\Content\Type Creates a draft of existing defined content type.
createGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\CreateStruct $createStruct ) : Group
delete ( mixed $contentTypeId, integer $status ) : boolean
deleteGroup ( mixed $groupId )
getContentCount ( mixed $contentTypeId ) : integer Counts the number of Content instances of the ContentType identified by given $contentTypeId.
getFieldDefinition ( mixed $id, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition Returns field definition for the given field definition id.
getSearchableFieldMap ( )
link ( mixed $groupId, mixed $contentTypeId, $status ) Link a content type group with a content type.
load ( integer $contentTypeId, integer $status = Type::STATUS_DEFINED ) : eZ\Publish\SPI\Persistence\Content\Type
loadAllGroups ( ) : Group[]
loadByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Type Load a (defined) content type by identifier.
loadByRemoteId ( mixed $remoteId ) : eZ\Publish\SPI\Persistence\Content\Type Load a (defined) content type by remote id.
loadContentTypes ( mixed $groupId, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type[]
loadGroup ( mixed $groupId ) : Group
loadGroupByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Type\Group
publish ( mixed $contentTypeId ) Update content objects.
removeFieldDefinition ( mixed $contentTypeId, $status, mixed $fieldDefinitionId ) : boolean Removes a field definition from an existing Type.
unlink ( mixed $groupId, mixed $contentTypeId, integer $status ) Unlink a content type group from a content type.
update ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $contentType ) : eZ\Publish\SPI\Persistence\Content\Type
updateFieldDefinition ( mixed $contentTypeId, $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) This method updates the given $fieldDefinition on a Type.
updateGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct $struct ) : eZ\Publish\SPI\Persistence\Content\Type\Group

Защищенные методы

Метод Описание
loadFromRows ( array $rows, mixed $typeIdentifier, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type Loads a single Type from $rows.

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

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

Creates a new content type handler.
public __construct ( eZ\Publish\SPI\Persistence\Content\Type\Handler $handler )
$handler eZ\Publish\SPI\Persistence\Content\Type\Handler

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

This method creates a new status of the Type with the $fieldDefinition added. It does not update existing content objects depending on the field (default) values.
public addFieldDefinition ( mixed $contentTypeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition )
$contentTypeId mixed
$status integer One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

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

Clear internal caches.
public clearCache ( )

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

public copy ( mixed $userId, mixed $contentTypeId, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type
$userId mixed
$contentTypeId mixed
$status integer One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED
Результат eZ\Publish\SPI\Persistence\Content\Type

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

public create ( eZ\Publish\SPI\Persistence\Content\Type\CreateStruct $createStruct ) : eZ\Publish\SPI\Persistence\Content\Type
$createStruct eZ\Publish\SPI\Persistence\Content\Type\CreateStruct
Результат eZ\Publish\SPI\Persistence\Content\Type

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

Updates modified date, sets $modifierId and status to Type::STATUS_DRAFT on the new returned draft.
public createDraft ( mixed $modifierId, mixed $contentTypeId ) : eZ\Publish\SPI\Persistence\Content\Type
$modifierId mixed
$contentTypeId mixed
Результат eZ\Publish\SPI\Persistence\Content\Type

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

public createGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\CreateStruct $createStruct ) : Group
$createStruct eZ\Publish\SPI\Persistence\Content\Type\Group\CreateStruct
Результат Group

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

public delete ( mixed $contentTypeId, integer $status ) : boolean
$contentTypeId mixed
$status integer
Результат boolean

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

public deleteGroup ( mixed $groupId )
$groupId mixed

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

Counts the number of Content instances of the ContentType identified by given $contentTypeId.
public getContentCount ( mixed $contentTypeId ) : integer
$contentTypeId mixed
Результат integer

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

Returns field definition for the given field definition id.
public getFieldDefinition ( mixed $id, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
$id mixed
$status integer One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED
Результат eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

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

См. также: eZ\Publish\SPI\Persistence\Content\Type\Handler::getSearchableFieldMap

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

public load ( integer $contentTypeId, integer $status = Type::STATUS_DEFINED ) : eZ\Publish\SPI\Persistence\Content\Type
$contentTypeId integer
$status integer
Результат eZ\Publish\SPI\Persistence\Content\Type

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

public loadAllGroups ( ) : Group[]
Результат Group[]

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

Load a (defined) content type by identifier.
public loadByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Type
$identifier string
Результат eZ\Publish\SPI\Persistence\Content\Type

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

Load a (defined) content type by remote id.
public loadByRemoteId ( mixed $remoteId ) : eZ\Publish\SPI\Persistence\Content\Type
$remoteId mixed
Результат eZ\Publish\SPI\Persistence\Content\Type

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

public loadContentTypes ( mixed $groupId, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type[]
$groupId mixed
$status integer
Результат eZ\Publish\SPI\Persistence\Content\Type[]

loadFromRows() защищенный Метод

Loads a single Type from $rows.
protected loadFromRows ( array $rows, mixed $typeIdentifier, integer $status ) : eZ\Publish\SPI\Persistence\Content\Type
$rows array
$typeIdentifier mixed
$status integer
Результат eZ\Publish\SPI\Persistence\Content\Type

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

public loadGroup ( mixed $groupId ) : Group
$groupId mixed
Результат Group

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

public loadGroupByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Type\Group
$identifier string
Результат eZ\Publish\SPI\Persistence\Content\Type\Group

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

Updates content objects, depending on the changed field definitions. A content type has a state which tells if its content objects yet have been adapted. Flags the content type as updated.
public publish ( mixed $contentTypeId )
$contentTypeId mixed

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

This method creates a new status of the Type with the field definition referred to by $fieldDefinitionId removed. It does not update existing content objects depending on the field (default) values.
public removeFieldDefinition ( mixed $contentTypeId, $status, mixed $fieldDefinitionId ) : boolean
$contentTypeId mixed
$fieldDefinitionId mixed
Результат boolean

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

public update ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $contentType ) : eZ\Publish\SPI\Persistence\Content\Type
$typeId mixed
$status integer
$contentType eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct
Результат eZ\Publish\SPI\Persistence\Content\Type

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

This method creates a new status of the Type with the updated $fieldDefinition. It does not update existing content objects depending on the field (default) values.
public updateFieldDefinition ( mixed $contentTypeId, $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition )
$contentTypeId mixed
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

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

public updateGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct $struct ) : eZ\Publish\SPI\Persistence\Content\Type\Group
$struct eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct
Результат eZ\Publish\SPI\Persistence\Content\Type\Group

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

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

Local in-memory cache for content types in one single request.
protected array $contentTypes
Результат array

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

Local in-memory cache for field definitions in one single request.
protected array $fieldDefinitions
Результат array

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

Local in-memory cache for groups in one single request.
protected array $groups
Результат array

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

Inner handler to dispatch calls to.
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $innerHandler
Результат eZ\Publish\SPI\Persistence\Content\Type\Handler

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

Local in-memory cache for searchable field map in one single request.
protected array $searchableFieldMap
Результат array