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

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

countInstancesOfType() abstract public méthode

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

countTypesInGroup() abstract public méthode

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

delete() abstract public méthode

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

deleteFieldDefinition() abstract public méthode

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

deleteFieldDefinitionsForType() abstract public méthode

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

deleteGroup() abstract public méthode

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

deleteGroupAssignment() abstract public méthode

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 méthode

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

deleteType() abstract public méthode

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

getSearchableFieldMapData() abstract public méthode

Returns searchable fields mapping data.
abstract public getSearchableFieldMapData ( ) : array
Résultat array

insertFieldDefinition() abstract public méthode

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
Résultat mixed Field definition ID

insertGroup() abstract public méthode

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

insertGroupAssignment() abstract public méthode

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

insertType() abstract public méthode

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
Résultat mixed Type ID

loadAllGroupsData() abstract public méthode

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

loadFieldDefinition() abstract public méthode

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
Résultat array Data rows.

loadGroupData() abstract public méthode

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

loadGroupDataByIdentifier() abstract public méthode

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

loadTypeData() abstract public méthode

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

loadTypeDataByIdentifier() abstract public méthode

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
Résultat array(int=>array(string=>mixed))

loadTypeDataByRemoteId() abstract public méthode

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
Résultat array(int=>array(string=>mixed))

loadTypesDataForGroup() abstract public méthode

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

publishTypeAndFields() abstract public méthode

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 méthode

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 méthode

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 méthode

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