Class

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

class UserCreateStruct extends UserCreateStruct

This class is used to create a new user in the repository.

Properties

Field[] $fields The list of fields added to the user.
ContentType $contentType The content type for which the new content is created.
mixed $sectionId The section the content is assigned to.
mixed $ownerId The owner of the content.
bool $alwaysAvailable Indicates if the content object is shown in the mainlanguage if its not present in an other requested language.
string $remoteId Remote identifier used as a custom identifier for the object.
string $mainLanguageCode the main language code for the content.
DateTime $modificationDate Modification date.
string $login User login.
string $email User E-Mail address.
string $password The plain password.
bool $enabled Indicates if the user is enabled after creation.

Methods

setField(string $fieldDefIdentifier, mixed $value, string|null $language = null)

Adds a field to the field collection.

Details

at line 40
public setField(string $fieldDefIdentifier, mixed $value, string|null $language = null)

Adds a field to the field collection.

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.

Parameters

string $fieldDefIdentifier the identifier of the field definition
mixed $value Either a plain value which is understandable by the corresponding field type or an instance of a Value class provided by the field type
string|null $language If not given on a translatable field the initial language is used