PHP Class eZ\Publish\Core\Repository\Values\ContentType\ContentType

Inheritance: extends eZ\Publish\API\Repository\Values\ContentType\ContentType
ファイルを表示 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$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.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

getContentTypeGroups() public method

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

getDescription() public method

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

getDescriptions() public method

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

getFieldDefinition() public method

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

getFieldDefinitionById() public method

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

getFieldDefinitions() public method

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

getName() public method

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

getNames() public method

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

Property Details

$contentTypeGroups protected_oe property

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

$descriptions protected_oe property

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

$fieldDefinitions protected_oe property

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

$fieldDefinitionsById protected_oe property

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

$fieldDefinitionsByIdentifier protected_oe property

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

$names protected_oe property

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