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

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

Protected Properties

Property Type Description
$fields eZ\Publish\API\Repository\Values\Content\Field[]

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 protected property

protected Field[],eZ\Publish\API\Repository\Values\Content $fields
return eZ\Publish\API\Repository\Values\Content\Field[]