프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$contentTypeDomainMapper | |||
$contentTypeHandler | eZ\Publish\SPI\Persistence\Content\Type\Handler | ||
$domainMapper | |||
$fieldTypeRegistry | |||
$repository | eZ\Publish\API\Repository\Repository | ||
$settings | array |
메소드 | 설명 | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, |
Setups service with reference to repository object that created it & corresponding handler. | |
addFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct ) | Adds a new field definition to an existing content type. | |
assignContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) | Assigns a content type to a content type group. | |
copyContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\User\User $creator = null ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | Copy Type incl fields and groupIds to a new Type object. | |
createContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct, array $contentTypeGroups ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | Create a Content Type object. | |
createContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | Creates a draft from an existing content type. | |
createContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct $contentTypeGroupCreateStruct ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | Create a Content Type Group object. | |
deleteContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) | Delete a Content Type object. | |
deleteContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) | Delete a Content Type Group. | |
isContentTypeUsed ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) : boolean | Returns true if the given content type $contentType has content instances. | |
loadContentType ( mixed $contentTypeId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | Get a Content Type object by id. | |
loadContentTypeByIdentifier ( string $identifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | Get a Content Type object by identifier. | |
loadContentTypeByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | Get a Content Type object by id. | |
loadContentTypeDraft ( mixed $contentTypeId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | Get a Content Type object draft by id. | |
loadContentTypeGroup ( mixed $contentTypeGroupId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | Get a Content Type Group object by id. | |
loadContentTypeGroupByIdentifier ( string $contentTypeGroupIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | Get a Content Type Group object by identifier. | |
loadContentTypeGroups ( ) : |
Get all Content Type Groups. | |
loadContentTypes ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) : eZ\Publish\API\Repository\Values\ContentType\ContentType[] | Get Content Type objects which belong to the given content type group. | |
newContentTypeCreateStruct ( string $identifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct | Instantiates a new content type create class. | |
newContentTypeGroupCreateStruct ( string $identifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct | Instantiates a new content type group create class. | |
newContentTypeGroupUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct | Instantiates a new content type update struct. | |
newContentTypeUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct | Instantiates a new content type update struct. | |
newFieldDefinitionCreateStruct ( string $identifier, string $fieldTypeIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct | Instantiates a field definition create struct. | |
newFieldDefinitionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct | Instantiates a field definition update class. | |
publishContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft ) | Publish the content type and update content objects. | |
removeFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition ) | Remove a field definition from an existing Type. | |
unassignContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) | Unassign a content type from a group. | |
updateContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct $contentTypeUpdateStruct ) | Update a Content Type object. | |
updateContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct $contentTypeGroupUpdateStruct ) | Update a Content Type Group object. | |
updateFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct ) | Update a field definition. |
메소드 | 설명 | |
---|---|---|
validateFieldDefinitionCreateStruct ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, eZ\Publish\SPI\FieldType\FieldType $fieldType ) : eZ\Publish\SPI\FieldType\ValidationError[] | Validates FieldDefinitionCreateStruct. | |
validateInputContentTypeCreateStruct ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct ) | Validates input ContentType create struct. | |
validateInputContentTypeGroups ( array $contentTypeGroups ) | Validates input ContentTypeGroup array. | |
validateInputFieldDefinitionCreateStruct ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, string $argumentName = '$fieldDefinitionCreateStruct' ) | Validates input FieldDefinitionCreateStruct. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, |
||
$repository | eZ\Publish\API\Repository\Repository | |
$contentTypeHandler | eZ\Publish\SPI\Persistence\Content\Type\Handler | |
$domainMapper | ||
$contentTypeDomainMapper | ||
$fieldTypeRegistry | ||
$settings | array |
public addFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct ) | ||
$contentTypeDraft | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | |
$fieldDefinitionCreateStruct | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct |
public assignContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) | ||
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | |
$contentTypeGroup | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public copyContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\User\User $creator = null ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | ||
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | |
$creator | eZ\Publish\API\Repository\Values\User\User | if null the current-user is used |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public createContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct, array $contentTypeGroups ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | ||
$contentTypeCreateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct | |
$contentTypeGroups | array | Required array of {@link APIContentTypeGroup} to link type with (must contain one) |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft |
public createContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | ||
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft |
public createContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct $contentTypeGroupCreateStruct ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | ||
$contentTypeGroupCreateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public deleteContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) | ||
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public deleteContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) | ||
$contentTypeGroup | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public isContentTypeUsed ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType ) : boolean | ||
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | |
리턴 | boolean |
public loadContentType ( mixed $contentTypeId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | ||
$contentTypeId | mixed | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeByIdentifier ( string $identifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | ||
$identifier | string | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\ContentType\ContentType | ||
$remoteId | string | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentType |
public loadContentTypeDraft ( mixed $contentTypeId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | ||
$contentTypeId | mixed | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft |
public loadContentTypeGroup ( mixed $contentTypeGroupId ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | ||
$contentTypeGroupId | mixed | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public loadContentTypeGroupByIdentifier ( string $contentTypeGroupIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | ||
$contentTypeGroupIdentifier | string | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public loadContentTypeGroups ( ) : |
||
리턴 |
public loadContentTypes ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) : eZ\Publish\API\Repository\Values\ContentType\ContentType[] | ||
$contentTypeGroup | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentType[] | Which have status DEFINED |
public newContentTypeCreateStruct ( string $identifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct | ||
$identifier | string | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct |
public newContentTypeGroupCreateStruct ( string $identifier ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct | ||
$identifier | string | |
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct |
public newContentTypeGroupUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct | ||
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct |
public newContentTypeUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct | ||
리턴 | eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct |
public newFieldDefinitionCreateStruct ( string $identifier, string $fieldTypeIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct | ||
$identifier | string | the required identifier for the field definition |
$fieldTypeIdentifier | string | the required field type identifier |
리턴 | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct |
public newFieldDefinitionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct | ||
리턴 | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct |
public publishContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft ) | ||
$contentTypeDraft | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft |
public removeFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition ) | ||
$contentTypeDraft | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | |
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition |
public unassignContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup ) | ||
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | |
$contentTypeGroup | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup |
public updateContentTypeDraft ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct $contentTypeUpdateStruct ) | ||
$contentTypeDraft | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | |
$contentTypeUpdateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeUpdateStruct |
public updateContentTypeGroup ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup, eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct $contentTypeGroupUpdateStruct ) | ||
$contentTypeGroup | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup | the content type group to be updated |
$contentTypeGroupUpdateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupUpdateStruct |
public updateFieldDefinition ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft $contentTypeDraft, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition, eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct $fieldDefinitionUpdateStruct ) | ||
$contentTypeDraft | eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft | the content type draft |
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition | the field definition which should be updated |
$fieldDefinitionUpdateStruct | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionUpdateStruct |
protected validateFieldDefinitionCreateStruct ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, eZ\Publish\SPI\FieldType\FieldType $fieldType ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$fieldDefinitionCreateStruct | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct | |
$fieldType | eZ\Publish\SPI\FieldType\FieldType | |
리턴 | eZ\Publish\SPI\FieldType\ValidationError[] |
protected validateInputContentTypeCreateStruct ( eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct $contentTypeCreateStruct ) | ||
$contentTypeCreateStruct | eZ\Publish\API\Repository\Values\ContentType\ContentTypeCreateStruct |
protected validateInputContentTypeGroups ( array $contentTypeGroups ) | ||
$contentTypeGroups | array |
protected validateInputFieldDefinitionCreateStruct ( eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, string $argumentName = '$fieldDefinitionCreateStruct' ) | ||
$fieldDefinitionCreateStruct | eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct | |
$argumentName | string |
protected ContentTypeDomainMapper,eZ\Publish\Core\Repository\Helper $contentTypeDomainMapper | ||
리턴 |
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $contentTypeHandler | ||
리턴 | eZ\Publish\SPI\Persistence\Content\Type\Handler |
protected DomainMapper,eZ\Publish\Core\Repository\Helper $domainMapper | ||
리턴 |
protected FieldTypeRegistry,eZ\Publish\Core\Repository\Helper $fieldTypeRegistry | ||
리턴 |
protected Repository,eZ\Publish\API\Repository $repository | ||
리턴 | eZ\Publish\API\Repository\Repository |