Свойство | Type | Description | |
---|---|---|---|
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | Content type service. |
Méthode | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\ContentTypeService $contentTypeService ) | Construct controller. | |
addContentTypeDraftFieldDefinition ( $contentTypeId, |
Creates a new field definition for the given content type draft. | |
copyContentType ( $contentTypeId ) : |
Copies a content type. The identifier of the copy is changed to
copy_of_ |
|
createContentType ( $contentTypeGroupId, |
Creates a new content type draft in the given content type group. | |
createContentTypeDraft ( $contentTypeId, |
Creates a draft and updates it with the given data. | |
createContentTypeGroup ( |
Creates a new content type group. | |
deleteContentType ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | The given content type is deleted. | |
deleteContentTypeDraft ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | The given content type draft is deleted. | |
deleteContentTypeGroup ( mixed $contentTypeGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent | The given content type group is deleted. | |
linkContentTypeToGroup ( mixed $contentTypeId, |
Links a content type group to the content type and returns the updated group list. | |
listContentTypes ( |
Returns a list of content types. | |
listContentTypesForGroup ( string $contentTypeGroupId, |
Returns a list of content types of the group. | |
loadContentType ( $contentTypeId ) : |
Loads a content type. | |
loadContentTypeByIdentifier ( |
Loads a content type by its identifier. | |
loadContentTypeByRemoteId ( |
Loads a content type by its remote ID. | |
loadContentTypeDraft ( $contentTypeId ) : |
Loads a content type draft. | |
loadContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
Returns the draft field definition given by id. | |
loadContentTypeDraftFieldDefinitionList ( $contentTypeId ) : |
Loads field definitions for a given content type draft. | |
loadContentTypeFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
Returns the field definition given by id. | |
loadContentTypeFieldDefinitionList ( $contentTypeId ) : |
Loads field definitions for a given content type. | |
loadContentTypeGroup ( $contentTypeGroupId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | Returns the content type group given by id. | |
loadContentTypeGroupList ( |
Returns a list of all content type groups. | |
loadGroupsOfContentType ( $contentTypeId ) : |
Returns the content type groups the content type belongs to. | |
publishContentTypeDraft ( $contentTypeId ) : |
Publishes a content type draft. | |
removeContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
Deletes a field definition from a content type draft. | |
unlinkContentTypeFromGroup ( $contentTypeId, $contentTypeGroupId ) : |
Removes the given group from the content type and returns the updated group list. | |
updateContentTypeDraft ( $contentTypeId, |
Updates meta data of a draft. This method does not handle field definitions. | |
updateContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
Updates the attributes of a field definition. | |
updateContentTypeGroup ( $contentTypeGroupId, |
Updates a content type group. |
Méthode | Description | |
---|---|---|
getContentTypeList ( ) : |
||
sortContentTypeList ( array &$contentTypes, string $orderby, $sort = 'asc' ) : mixed |
Méthode | Description | |
---|---|---|
mapToGroupUpdateStruct ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct $createStruct ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct | Converts the provided ContentTypeGroupCreateStruct to ContentTypeGroupUpdateStruct. |
public __construct ( eZ\Publish\API\Repository\ContentTypeService $contentTypeService ) | ||
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService |
public addContentTypeDraftFieldDefinition ( $contentTypeId, |
||
$contentTypeId | ||
$request | ||
Résultat |
public copyContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public createContentType ( $contentTypeGroupId, |
||
$contentTypeGroupId | ||
$request | ||
Résultat |
public createContentTypeDraft ( $contentTypeId, |
||
$contentTypeId | ||
$request | ||
Résultat |
public createContentTypeGroup ( |
||
$request | ||
Résultat |
public deleteContentType ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeId | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteContentTypeDraft ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeId | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteContentTypeGroup ( mixed $contentTypeGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeGroupId | mixed | |
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
protected getContentTypeList ( ) : |
||
Résultat |
public linkContentTypeToGroup ( mixed $contentTypeId, |
||
$contentTypeId | mixed | |
$request | ||
Résultat |
public listContentTypes ( |
||
$request | ||
Résultat |
public listContentTypesForGroup ( string $contentTypeGroupId, |
||
$contentTypeGroupId | string | |
$request | ||
Résultat |
public loadContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public loadContentTypeByIdentifier ( |
||
$request | ||
Résultat | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeByRemoteId ( |
||
$request | ||
Résultat | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeDraft ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public loadContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Résultat |
public loadContentTypeDraftFieldDefinitionList ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public loadContentTypeFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Résultat |
public loadContentTypeFieldDefinitionList ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public loadContentTypeGroup ( $contentTypeGroupId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | ||
$contentTypeGroupId | ||
Résultat | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public loadContentTypeGroupList ( |
||
$request | ||
Résultat |
public loadGroupsOfContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public publishContentTypeDraft ( $contentTypeId ) : |
||
$contentTypeId | ||
Résultat |
public removeContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Résultat | eZ\Publish\Core\REST\Server\Values\NoContent |
public unlinkContentTypeFromGroup ( $contentTypeId, $contentTypeGroupId ) : |
||
$contentTypeId | ||
$contentTypeGroupId | ||
Résultat |
public updateContentTypeDraft ( $contentTypeId, |
||
$contentTypeId | ||
$request | ||
Résultat |
public updateContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Résultat |
public updateContentTypeGroup ( $contentTypeGroupId, |
||
$contentTypeGroupId | ||
$request | ||
Résultat | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |