Свойство | Type | Description | |
---|---|---|---|
$fields | An array of array of field values like[$fieldDefIdentifier][$languageCode] | ||
$versionInfo | eZ\Publish\API\Repository\Values\Content\VersionInfo |
Méthode | Description | |
---|---|---|
__construct ( array $data = [] ) | ||
__get ( string $property ) : mixed | Magic getter for retrieving convenience properties. | |
__isset ( string $property ) : boolean | Magic isset for signaling existence of convenience properties. | |
getField ( string $fieldDefIdentifier, string | null $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Field | null | This method returns the field for a given field definition identifier and language. | |
getFieldValue ( string $fieldDefIdentifier, string $languageCode = null ) : mixed | Returns a field value for the given value $version->fields[$fieldDefId][$languageCode] is an equivalent call if no language is given on a translatable field this method returns the value of the initial language of the version if present, otherwise null. | |
getFields ( ) : eZ\Publish\API\Repository\Values\Content\Field[] | This method returns the complete fields collection. | |
getFieldsByLanguage ( string $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Field[] | This method returns the fields for a given language and non translatable fields. | |
getVersionInfo ( ) : eZ\Publish\API\Repository\Values\Content\VersionInfo | Returns the VersionInfo for this version. |
Méthode | Description | |
---|---|---|
getProperties ( array $dynamicProperties = ['id', 'contentInfo'] ) : array | Function where list of properties are returned. |
public getField ( string $fieldDefIdentifier, string | null $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Field | null | ||
$fieldDefIdentifier | string | |
$languageCode | string | null | |
Résultat | eZ\Publish\API\Repository\Values\Content\Field | null | A {@link Field} or null if nothing is found |
public getFields ( ) : eZ\Publish\API\Repository\Values\Content\Field[] | ||
Résultat | eZ\Publish\API\Repository\Values\Content\Field[] | An array of {@link Field} |
public getFieldsByLanguage ( string $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Field[] | ||
$languageCode | string | |
Résultat | eZ\Publish\API\Repository\Values\Content\Field[] | An array of {@link Field} with field identifier as keys |
protected getProperties ( array $dynamicProperties = ['id', 'contentInfo'] ) : array | ||
$dynamicProperties | array | |
Résultat | array |
public getVersionInfo ( ) : eZ\Publish\API\Repository\Values\Content\VersionInfo | ||
Résultat | eZ\Publish\API\Repository\Values\Content\VersionInfo |
protected $fields |