PHP Class eZ\Publish\Core\REST\Client\Values\User\User

See also: eZ\Publish\API\Repository\Values\User\User
Inheritance: extends eZ\Publish\API\Repository\Values\User\User
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$content eZ\Publish\API\Repository\Values\Content\Content

Méthodes publiques

Méthode Description
__get ( $property )
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.

Method Details

__get() public méthode

public __get ( $property )

getField() public méthode

If not set the initialLanguage of the content version is used.
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

getFieldValue() public méthode

On non translatable fields this method ignores the languageCode parameter.
public getFieldValue ( string $fieldDefIdentifier, string $languageCode = null ) : mixed
$fieldDefIdentifier string
$languageCode string
Résultat mixed a primitive type or a field type Value object depending on the field type.

getFields() public méthode

This method returns the complete fields collection.
public getFields ( ) : eZ\Publish\API\Repository\Values\Content\Field[]
Résultat eZ\Publish\API\Repository\Values\Content\Field[]

getFieldsByLanguage() public méthode

If note set the initialLanguage of the content version is used.
public getFieldsByLanguage ( string $languageCode = null ) : eZ\Publish\API\Repository\Values\Content\Field[]
$languageCode string
Résultat eZ\Publish\API\Repository\Values\Content\Field[] With field identifier as keys

getVersionInfo() public méthode

Returns the VersionInfo for this version.
public getVersionInfo ( ) : eZ\Publish\API\Repository\Values\Content\VersionInfo
Résultat eZ\Publish\API\Repository\Values\Content\VersionInfo

Property Details

$content protected_oe property

protected Content,eZ\Publish\API\Repository\Values\Content $content
Résultat eZ\Publish\API\Repository\Values\Content\Content