Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Core/REST/Client/Values/Content/ContentUpdateStruct.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Client\Values\Content;
8
9 use eZ\Publish\API\Repository\Values\Content\Field;
10 use eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct as APIContentUpdateStruct;
11
18 class ContentUpdateStruct extends APIContentUpdateStruct
19 {
21 protected $fields = array();
22
33 public function setField($fieldDefIdentifier, $value, $languageCode = null)
34 {
35 $this->fields[] = new Field(
36 array(
37 'fieldDefIdentifier' => $fieldDefIdentifier,
38 'value' => $value,
39 'languageCode' => $languageCode,
40 )
41 );
42 }
43 }
eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct
Definition: API/Repository/Values/Content/ContentUpdateStruct.php:15
eZ\Publish\API\Repository\Values\Content\Field
Definition: API/Repository/Values/Content/Field.php:21
eZ\Publish\Core\REST\Client\Values\Content\ContentUpdateStruct
Implementation of the \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct class.
Definition: Core/REST/Client/Values/Content/ContentUpdateStruct.php:19
eZ\Publish\Core\REST\Client\Values\Content\ContentUpdateStruct\setField
setField($fieldDefIdentifier, $value, $languageCode=null)
Adds a field to the field collection.
Definition: Core/REST/Client/Values/Content/ContentUpdateStruct.php:33
eZ\Publish\Core\REST\Client\Values\Content\ContentUpdateStruct\$fields
$fields
Definition: Core/REST/Client/Values/Content/ContentUpdateStruct.php:21
eZ\Publish\Core\REST\Client\Values\Content
Definition: Publish/Core/REST/Client/Values/Content/Content.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.