Copied!

VersionBuilder

VersionBuilder.php : 19

Builder of {@see \Ibexa\Contracts\Core\Limitation\Target\Version} instance.

Methods

publicbuild()

VersionBuilder.php : 24
public build() : Version

Return values

Version

publicchangeStatusTo()

VersionBuilder.php : 96

Set intent to change Version status.

public changeStatusTo(int $status) : self

Supported: VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED

Parameters

Name Type Default value Description
$status int - -

Return values

self

Tags
See
VersionInfo
Throws
InvalidArgumentException

publiccreateFromAnyContentTypeOf()

VersionBuilder.php : 70

Set intent to create Content from unspecified (yet) content type, any from the given list.

public createFromAnyContentTypeOf(array<string|int, int> $contentTypeIds) : self

Parameters

Name Type Default value Description
$contentTypeIds array<string|int, int> - -

Return values

self

Tags
Throws
InvalidArgumentException

publicpublishTranslations()

VersionBuilder.php : 147

Set intent to publish, to specified translations, all from the given list.

public publishTranslations(array<string|int, string> $languageCodes) : self

Parameters

Name Type Default value Description
$languageCodes array<string|int, string> - -

Return values

self

Tags
Throws
InvalidArgumentException

publictranslateToAnyLanguageOf()

VersionBuilder.php : 48

Set intent to translate, to an unspecified (yet) language, any from the given list.

public translateToAnyLanguageOf(array<string|int, mixed> $languageCodes) : self

Parameters

Name Type Default value Description
$languageCodes array<string|int, mixed> - -

Return values

self

Tags
Throws
InvalidArgumentException

publicupdateFields()

VersionBuilder.php : 32
public updateFields(array<string|int, Field$updatedFields) : self

Parameters

Name Type Default value Description
$updatedFields array<string|int, Field> - -

Return values

self

publicupdateFieldsTo()

VersionBuilder.php : 121

Set intent to update Content Version Fields.

public updateFieldsTo(string|null $initialLanguageCode, array<string|int, Field$fields) : self

Parameters

Name Type Default value Description
$initialLanguageCode string|null - -
$fields array<string|int, Field> - -

Return values

self