PHP Class eZ\Publish\Core\REST\Client\Values\Content\ContentUpdateStruct

See also: eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct
Inheritance: extends eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct
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, boolean | string $languageCode = null ) Adds a field to the field collection.

Method Details

setField() public method

This method could also be implemented by ArrayAccess so that $fields[$fieldDefIdentifier][$language] = $value or without language $fields[$fieldDefIdentifier] = $value is an equivalent call.
public setField ( string $fieldDefIdentifier, mixed $value, boolean | string $languageCode = null )
$fieldDefIdentifier string the identifier of the field definition
$value mixed Either a plain value which is understandable by the field type or an instance of a Value class provided by the field type
$languageCode boolean | string 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[]