Свойство | Тип | Описание | |
---|---|---|---|
$contentTypeService | eZ\Publish\API\Repository\ContentTypeService | Content type service. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
getContentTypeList ( ) : |
||
sortContentTypeList ( array &$contentTypes, string $orderby, $sort = 'asc' ) : mixed |
Метод | Описание | |
---|---|---|
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 | ||
Результат |
public copyContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public createContentType ( $contentTypeGroupId, |
||
$contentTypeGroupId | ||
$request | ||
Результат |
public createContentTypeDraft ( $contentTypeId, |
||
$contentTypeId | ||
$request | ||
Результат |
public createContentTypeGroup ( |
||
$request | ||
Результат |
public deleteContentType ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeId | ||
Результат | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteContentTypeDraft ( $contentTypeId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeId | ||
Результат | eZ\Publish\Core\REST\Server\Values\NoContent |
public deleteContentTypeGroup ( mixed $contentTypeGroupId ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$contentTypeGroupId | mixed | |
Результат | eZ\Publish\Core\REST\Server\Values\NoContent |
protected getContentTypeList ( ) : |
||
Результат |
public linkContentTypeToGroup ( mixed $contentTypeId, |
||
$contentTypeId | mixed | |
$request | ||
Результат |
public listContentTypes ( |
||
$request | ||
Результат |
public listContentTypesForGroup ( string $contentTypeGroupId, |
||
$contentTypeGroupId | string | |
$request | ||
Результат |
public loadContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public loadContentTypeByIdentifier ( |
||
$request | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeByRemoteId ( |
||
$request | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeDraft ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public loadContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Результат |
public loadContentTypeDraftFieldDefinitionList ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public loadContentTypeFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Результат |
public loadContentTypeFieldDefinitionList ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public loadContentTypeGroup ( $contentTypeGroupId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | ||
$contentTypeGroupId | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public loadContentTypeGroupList ( |
||
$request | ||
Результат |
public loadGroupsOfContentType ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public publishContentTypeDraft ( $contentTypeId ) : |
||
$contentTypeId | ||
Результат |
public removeContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Результат | eZ\Publish\Core\REST\Server\Values\NoContent |
public unlinkContentTypeFromGroup ( $contentTypeId, $contentTypeGroupId ) : |
||
$contentTypeId | ||
$contentTypeGroupId | ||
Результат |
public updateContentTypeDraft ( $contentTypeId, |
||
$contentTypeId | ||
$request | ||
Результат |
public updateContentTypeDraftFieldDefinition ( $contentTypeId, $fieldDefinitionId, |
||
$contentTypeId | ||
$fieldDefinitionId | ||
$request | ||
Результат |
public updateContentTypeGroup ( $contentTypeGroupId, |
||
$contentTypeGroupId | ||
$request | ||
Результат | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |