PHP 클래스 eZ\Publish\Core\Repository\Values\ContentType\ContentType

상속: extends eZ\Publish\API\Repository\Values\ContentType\ContentType
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$contentTypeGroups eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] Holds the collection of contenttypegroups the contenttype is assigned to.
$descriptions string[] Holds the collection of descriptions with languageCode keys.
$fieldDefinitions eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] Contains the content type field definitions from this type.
$fieldDefinitionsById eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] Field definitions indexed by id.
$fieldDefinitionsByIdentifier eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] Field definitions indexed by identifier.
$names string[] Holds the collection of names with languageCode keys.

공개 메소드들

메소드 설명
__construct ( array $data = [] )
getContentTypeGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] This method returns the content type groups this content type is assigned to.
getDescription ( string $languageCode ) : string This method returns the name of the content type in the given language.
getDescriptions ( ) : string[] This method returns the human readable description of the content type.
getFieldDefinition ( string $fieldDefinitionIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition This method returns the field definition for the given identifier.
getFieldDefinitionById ( mixed $fieldDefinitionId ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition This method returns the field definition for the given id.
getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] This method returns the content type field definitions from this type.
getName ( string $languageCode ) : string This method returns the name of the content type in the given language.
getNames ( ) : string[] This method returns the human readable name in all provided languages of the content type.

메소드 상세

__construct() 공개 메소드

public __construct ( array $data = [] )
$data array

getContentTypeGroups() 공개 메소드

This method returns the content type groups this content type is assigned to.
public getContentTypeGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]
리턴 eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]

getDescription() 공개 메소드

This method returns the name of the content type in the given language.
public getDescription ( string $languageCode ) : string
$languageCode string
리턴 string the description for the given language or null if none exists.

getDescriptions() 공개 메소드

The structure of this field is: array( 'eng' => '', 'de' => '' );
public getDescriptions ( ) : string[]
리턴 string[]

getFieldDefinition() 공개 메소드

This method returns the field definition for the given identifier.
public getFieldDefinition ( string $fieldDefinitionIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$fieldDefinitionIdentifier string
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

getFieldDefinitionById() 공개 메소드

This method returns the field definition for the given id.
public getFieldDefinitionById ( mixed $fieldDefinitionId ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$fieldDefinitionId mixed
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

getFieldDefinitions() 공개 메소드

This method returns the content type field definitions from this type.
public getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

getName() 공개 메소드

This method returns the name of the content type in the given language.
public getName ( string $languageCode ) : string
$languageCode string
리턴 string the name for the given language or null if none exists.

getNames() 공개 메소드

The structure of the return value is: array( 'eng' => '', 'de' => '' );
public getNames ( ) : string[]
리턴 string[]

프로퍼티 상세

$contentTypeGroups 보호되어 있는 프로퍼티

Holds the collection of contenttypegroups the contenttype is assigned to.
protected ContentTypeGroup[],eZ\Publish\API\Repository\Values\ContentType $contentTypeGroups
리턴 eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]

$descriptions 보호되어 있는 프로퍼티

Holds the collection of descriptions with languageCode keys.
protected string[] $descriptions
리턴 string[]

$fieldDefinitions 보호되어 있는 프로퍼티

Contains the content type field definitions from this type.
protected FieldDefinition[],eZ\Publish\API\Repository\Values\ContentType $fieldDefinitions
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

$fieldDefinitionsById 보호되어 있는 프로퍼티

Field definitions indexed by id.
protected FieldDefinition[],eZ\Publish\API\Repository\Values\ContentType $fieldDefinitionsById
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

$fieldDefinitionsByIdentifier 보호되어 있는 프로퍼티

Field definitions indexed by identifier.
protected FieldDefinition[],eZ\Publish\API\Repository\Values\ContentType $fieldDefinitionsByIdentifier
리턴 eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

$names 보호되어 있는 프로퍼티

Holds the collection of names with languageCode keys.
protected string[] $names
리턴 string[]