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

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

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

Свойство Тип Описание
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway The wrapped gateway.

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

Метод Описание
__construct ( Gateway $innerGateway ) Creates a new exception conversion gateway around $innerGateway.
countGroupsForType ( integer $typeId, integer $status ) : integer Returns the number of Groups the type is assigned to.
countInstancesOfType ( integer $typeId ) : integer Counts the number of instances that exists of the identified type.
countTypesInGroup ( integer $groupId ) : integer Returns the number of types in a certain group.
delete ( mixed $typeId, integer $status ) Deletes a Type completely.
deleteFieldDefinition ( mixed $typeId, integer $status, mixed $fieldDefinitionId ) Deletes a field definition.
deleteFieldDefinitionsForType ( mixed $typeId, integer $status ) Deletes all field definitions of a Type.
deleteGroup ( integer $groupId ) Deletes the Group with the given $groupId.
deleteGroupAssignment ( mixed $groupId, mixed $typeId, integer $status ) Deletes a group assignments for a Type.
deleteGroupAssignmentsForType ( mixed $typeId, integer $status ) Deletes all group assignments for a Type.
deleteType ( mixed $typeId, integer $status ) Deletes a the Type.
getSearchableFieldMapData ( ) : array Returns searchable field mapping data.
insertFieldDefinition ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition, StorageFieldDefinition $storageFieldDef ) : mixed Inserts a $fieldDefinition for $typeId.
insertGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group $group ) : mixed Inserts the given $group.
insertGroupAssignment ( mixed $typeId, integer $status, mixed $groupId ) Insert assignment of $typeId to $groupId.
insertType ( eZ\Publish\SPI\Persistence\Content\Type $type, mixed | null $typeId = null ) : mixed Inserts a new content type.
loadAllGroupsData ( ) : array Returns an array with data about all Group objects.
loadFieldDefinition ( mixed $id, integer $status ) : array Loads an array with data about field definition referred $id and $status.
loadGroupData ( integer $groupId ) : array Returns an array with data about the Group with $groupId.
loadGroupDataByIdentifier ( integer $identifier ) : array Returns an array with data about the Group with $identifier.
loadTypeData ( mixed $typeId, integer $status ) : array Loads an array with data about $typeId in $status.
loadTypeDataByIdentifier ( string $identifier, integer $status ) : array(int=>array(string=>mixed)) Loads an array with data about the type referred to by $identifier in $status.
loadTypeDataByRemoteId ( mixed $remoteId, integer $status ) : array(int=>array(string=>mixed)) Loads an array with data about the type referred to by $remoteId in $status.
loadTypesDataForGroup ( mixed $groupId, integer $status ) : string[][] Loads data for all Types in $status in $groupId.
publishTypeAndFields ( integer $typeId, integer $sourceStatus, integer $targetStatus ) Publishes the Type with $typeId from $sourceVersion to $targetVersion, including its fields.
updateFieldDefinition ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition, StorageFieldDefinition $storageFieldDef ) Updates a $fieldDefinition for $typeId.
updateGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct $group ) Updates a group with data in $group.
updateType ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct ) Update a type with $updateStruct.

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

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

Creates a new exception conversion gateway around $innerGateway.
public __construct ( Gateway $innerGateway )
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

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

Returns the number of Groups the type is assigned to.
public countGroupsForType ( integer $typeId, integer $status ) : integer
$typeId integer
$status integer
Результат integer

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

Counts the number of instances that exists of the identified type.
public countInstancesOfType ( integer $typeId ) : integer
$typeId integer
Результат integer

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

Returns the number of types in a certain group.
public countTypesInGroup ( integer $groupId ) : integer
$groupId integer
Результат integer

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

Deletes a Type completely.
public delete ( mixed $typeId, integer $status )
$typeId mixed
$status integer

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

Deletes a field definition.
public deleteFieldDefinition ( mixed $typeId, integer $status, mixed $fieldDefinitionId )
$typeId mixed
$status integer
$fieldDefinitionId mixed

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

Deletes all field definitions of a Type.
public deleteFieldDefinitionsForType ( mixed $typeId, integer $status )
$typeId mixed
$status integer

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

Deletes the Group with the given $groupId.
public deleteGroup ( integer $groupId )
$groupId integer

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

Deletes a group assignments for a Type.
public deleteGroupAssignment ( mixed $groupId, mixed $typeId, integer $status )
$groupId mixed
$typeId mixed
$status integer

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

Deletes all group assignments for a Type.
public deleteGroupAssignmentsForType ( mixed $typeId, integer $status )
$typeId mixed
$status integer

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

Does no delete the field definitions!
public deleteType ( mixed $typeId, integer $status )
$typeId mixed
$status integer

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

Returns searchable field mapping data.
public getSearchableFieldMapData ( ) : array
Результат array

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

Inserts a $fieldDefinition for $typeId.
public insertFieldDefinition ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition, StorageFieldDefinition $storageFieldDef ) : mixed
$typeId mixed
$status integer
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
$storageFieldDef eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition
Результат mixed Field definition ID

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

Inserts the given $group.
public insertGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group $group ) : mixed
$group eZ\Publish\SPI\Persistence\Content\Type\Group
Результат mixed Group ID

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

Insert assignment of $typeId to $groupId.
public insertGroupAssignment ( mixed $typeId, integer $status, mixed $groupId )
$typeId mixed
$status integer
$groupId mixed

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

Inserts a new content type.
public insertType ( eZ\Publish\SPI\Persistence\Content\Type $type, mixed | null $typeId = null ) : mixed
$type eZ\Publish\SPI\Persistence\Content\Type
$typeId mixed | null
Результат mixed Type ID

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

Returns an array with data about all Group objects.
public loadAllGroupsData ( ) : array
Результат array

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

Loads an array with data about field definition referred $id and $status.
public loadFieldDefinition ( mixed $id, integer $status ) : array
$id mixed field definition id
$status integer field definition status
Результат array Data rows.

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

Returns an array with data about the Group with $groupId.
public loadGroupData ( integer $groupId ) : array
$groupId integer
Результат array

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

Returns an array with data about the Group with $identifier.
public loadGroupDataByIdentifier ( integer $identifier ) : array
$identifier integer
Результат array

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

Loads an array with data about $typeId in $status.
public loadTypeData ( mixed $typeId, integer $status ) : array
$typeId mixed
$status integer
Результат array Data rows.

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

Loads an array with data about the type referred to by $identifier in $status.
public loadTypeDataByIdentifier ( string $identifier, integer $status ) : array(int=>array(string=>mixed))
$identifier string
$status integer
Результат array(int=>array(string=>mixed))

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

Loads an array with data about the type referred to by $remoteId in $status.
public loadTypeDataByRemoteId ( mixed $remoteId, integer $status ) : array(int=>array(string=>mixed))
$remoteId mixed
$status integer
Результат array(int=>array(string=>mixed))

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

Loads data for all Types in $status in $groupId.
public loadTypesDataForGroup ( mixed $groupId, integer $status ) : string[][]
$groupId mixed
$status integer
Результат string[][]

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

Publishes the Type with $typeId from $sourceVersion to $targetVersion, including its fields.
public publishTypeAndFields ( integer $typeId, integer $sourceStatus, integer $targetStatus )
$typeId integer
$sourceStatus integer
$targetStatus integer

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

Updates a $fieldDefinition for $typeId.
public updateFieldDefinition ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition, StorageFieldDefinition $storageFieldDef )
$typeId mixed
$status integer
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
$storageFieldDef eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition

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

Updates a group with data in $group.
public updateGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct $group )
$group eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct

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

Update a type with $updateStruct.
public updateType ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct )
$typeId mixed
$status integer
$updateStruct eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct

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

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

The wrapped gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $innerGateway
Результат eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway