Class

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

class User extends User

Implementation of the {@link \eZ\Publish\API\Repository\Values\User\User} class.

Constants

PASSWORD_HASH_MD5_PASSWORD

PASSWORD_HASH_MD5_USER

PASSWORD_HASH_MD5_SITE

PASSWORD_HASH_PLAINTEXT

PASSWORD_HASH_BCRYPT

PASSWORD_HASH_PHP_DEFAULT

DEFAULT_PASSWORD_HASH

Methods

mixed getUserId()

The User id of the User.

from User
VersionInfo getVersionInfo()

Returns the VersionInfo for this version.

mixed getFieldValue(string $fieldDefIdentifier, string $languageCode = null)

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.

Field[] getFields()

This method returns the complete fields collection.

Field[] getFieldsByLanguage(string $languageCode = null)

This method returns the fields for a given language and non translatable fields.

Field|null getField(string $fieldDefIdentifier, string|null $languageCode = null)

This method returns the field for a given field definition identifier and language.

__get($property)

Details

in User at line 116
public mixed getUserId()

The User id of the User.

Return Value

mixed

at line 32
public VersionInfo getVersionInfo()

Returns the VersionInfo for this version.

Return Value

VersionInfo

at line 49
public mixed getFieldValue(string $fieldDefIdentifier, string $languageCode = null)

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.

On non translatable fields this method ignores the languageCode parameter.

Parameters

string $fieldDefIdentifier
string $languageCode

Return Value

mixed a primitive type or a field type Value object depending on the field type.

at line 59
public Field[] getFields()

This method returns the complete fields collection.

Return Value

Field[]

at line 73
public Field[] getFieldsByLanguage(string $languageCode = null)

This method returns the fields for a given language and non translatable fields.

If note set the initialLanguage of the content version is used.

Parameters

string $languageCode

Return Value

Field[] With field identifier as keys

at line 88
public Field|null getField(string $fieldDefIdentifier, string|null $languageCode = null)

This method returns the field for a given field definition identifier and language.

If not set the initialLanguage of the content version is used.

Parameters

string $fieldDefIdentifier
string|null $languageCode

Return Value

Field|null A {@link Field} or null if nothing is found

at line 93
public __get($property)

Parameters

$property