PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

ファイルを表示 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
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 fields 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.

Method Details

countGroupsForType() abstract public method

Returns the number of Groups the type is assigned to.
abstract public countGroupsForType ( integer $typeId, integer $status ) : integer
$typeId integer
$status integer
return integer

countInstancesOfType() abstract public method

Counts the number of instances that exists of the identified type.
abstract public countInstancesOfType ( integer $typeId ) : integer
$typeId integer
return integer

countTypesInGroup() abstract public method

Returns the number of types in a certain group.
abstract public countTypesInGroup ( integer $groupId ) : integer
$groupId integer
return integer

delete() abstract public method

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

deleteFieldDefinition() abstract public method

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

deleteFieldDefinitionsForType() abstract public method

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

deleteGroup() abstract public method

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

deleteGroupAssignment() abstract public method

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

deleteGroupAssignmentsForType() abstract public method

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

deleteType() abstract public method

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

getSearchableFieldMapData() abstract public method

Returns searchable fields mapping data.
abstract public getSearchableFieldMapData ( ) : array
return array

insertFieldDefinition() abstract public method

Inserts a $fieldDefinition for $typeId.
abstract 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
return mixed Field definition ID

insertGroup() abstract public method

Inserts the given $group.
abstract public insertGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group $group ) : mixed
$group eZ\Publish\SPI\Persistence\Content\Type\Group
return mixed Group ID

insertGroupAssignment() abstract public method

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

insertType() abstract public method

Inserts a new content type.
abstract public insertType ( eZ\Publish\SPI\Persistence\Content\Type $type, mixed | null $typeId = null ) : mixed
$type eZ\Publish\SPI\Persistence\Content\Type
$typeId mixed | null
return mixed Type ID

loadAllGroupsData() abstract public method

Returns an array with data about all Group objects.
abstract public loadAllGroupsData ( ) : array
return array

loadFieldDefinition() abstract public method

Loads an array with data about field definition referred $id and $status.
abstract public loadFieldDefinition ( mixed $id, integer $status ) : array
$id mixed field definition id
$status integer field definition status
return array Data rows.

loadGroupData() abstract public method

Returns an array with data about the Group with $groupId.
abstract public loadGroupData ( integer $groupId ) : array
$groupId integer
return array

loadGroupDataByIdentifier() abstract public method

Returns an array with data about the Group with $identifier.
abstract public loadGroupDataByIdentifier ( integer $identifier ) : array
$identifier integer
return array

loadTypeData() abstract public method

Loads an array with data about $typeId in $status.
abstract public loadTypeData ( mixed $typeId, integer $status ) : array
$typeId mixed
$status integer
return array Data rows.

loadTypeDataByIdentifier() abstract public method

Loads an array with data about the type referred to by $identifier in $status.
abstract public loadTypeDataByIdentifier ( string $identifier, integer $status ) : array(int=>array(string=>mixed))
$identifier string
$status integer
return array(int=>array(string=>mixed))

loadTypeDataByRemoteId() abstract public method

Loads an array with data about the type referred to by $remoteId in $status.
abstract public loadTypeDataByRemoteId ( mixed $remoteId, integer $status ) : array(int=>array(string=>mixed))
$remoteId mixed
$status integer
return array(int=>array(string=>mixed))

loadTypesDataForGroup() abstract public method

Loads data for all Types in $status in $groupId.
abstract public loadTypesDataForGroup ( mixed $groupId, integer $status ) : string[][]
$groupId mixed
$status integer
return string[][]

publishTypeAndFields() abstract public method

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

updateFieldDefinition() abstract public method

Updates a $fieldDefinition for $typeId.
abstract 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() abstract public method

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

updateType() abstract public method

Update a type with $updateStruct.
abstract 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