PHP Class eZ\Publish\Core\Repository\Values\User\UserCreateStruct

Inheritance: extends eZ\Publish\API\Repository\Values\User\UserCreateStruct
Show file Open project: ezsystems/ezpublish-kernel

Public Properties

Property Type Description
$fields eZ\Publish\API\Repository\Values\Content\Field[] The list of fields added to the user.

Public Methods

Method Description
setField ( string $fieldDefIdentifier, mixed $value, string | null $language = null ) Adds a field to the field collection.

Method Details

setField() public method

This method could also be implemented by a magic setter so that $fields[$fieldDefIdentifier][$language] = $value or without language $fields[$fieldDefIdentifier] = $value is an equivalent call.
public setField ( string $fieldDefIdentifier, mixed $value, string | null $language = null )
$fieldDefIdentifier string the identifier of the field definition
$value mixed Either a plain value which is understandable by the corresponding field type or an instance of a Value class provided by the field type
$language string | null If not given on a translatable field the initial language is used

Property Details

$fields public property

The list of fields added to the user.
public Field[],eZ\Publish\API\Repository\Values\Content $fields
return eZ\Publish\API\Repository\Values\Content\Field[]