Copied!

ApplicationCreateStruct

ApplicationCreateStruct.php : 13
Uses Fields

This class is used for creating a new content object.

Properties

public $alwaysAvailable

ContentCreateStruct.php : 47

Indicates if the content object is shown in the mainlanguage if its not present in an other requested language.

public bool $alwaysAvailable

public $contentType

ContentCreateStruct.php : 25

The content type for which the new content is created.

public ContentType $contentType

Required.

public $fields

Fields.php : 16
public array<string|int, Field$fields = []

public $fields

ContentStruct.php
public array<string|int, Field$fields

public $fields

ContentCreateStruct.php
public array<string|int, Field$fields

public $mainLanguageCode

ContentCreateStruct.php : 67

the main language code for the content. This language will also be used for as initial language for the first created version.

public string $mainLanguageCode

It is also used as default language for added fields.

Required.

public $modificationDate

ContentCreateStruct.php : 74

Modification date. If not given the current timestamp is used.

public DateTime $modificationDate

public $ownerId

ContentCreateStruct.php : 40

The owner of the content. If not given the current authenticated user is set as owner.

public mixed $ownerId

public $remoteId

ContentCreateStruct.php : 56

Remote identifier used as a custom identifier for the object.

public string $remoteId

Needs to be a unique Content->remoteId string value.

public $sectionId

ContentCreateStruct.php : 33

The section the content is assigned to.

public mixed $sectionId

If not set the section of the parent is used or a default section.

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, mixed> [] -

publicsetField()

Fields.php : 19
public setField(string $fieldDefIdentifier, mixed $value[, string|null $language = null ]) : void

Parameters

Name Type Default value Description
$fieldDefIdentifier string - -
$value mixed - -
$language string|null null -

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>