diff --git a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentService.html b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentService.html index 8fc3b89474..4f75fd1b7d 100644 --- a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentService.html +++ b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentService.html @@ -36515,11 +36515,11 @@

ContentService.php : - 484 + 427
-

Adds a relation of type common.

+

Adds a common relation.

@@ -36543,7 +36543,7 @@

The source of the relation is the content and version -referenced by $versionInfo.

+referenced by $sourceVersion.

Parameters

@@ -36567,8 +36567,12 @@

Parameters

- @@ -36583,7 +36587,7 @@

Parameters

@@ -36700,7 +36711,7 @@

Parameters

@@ -39205,7 +39231,7 @@

-

Note: it does not throw exceptions on load, just ignores erroneous Content item. +

Note: it doesn't throw exceptions on load, just ignores erroneous Content item. Moreover, since the method works on pre-loaded ContentInfo list, it is assumed that user is allowed to access every Content on the list.

@@ -39226,7 +39252,7 @@

Parameters

$contentInfoList

- - - + +
+

The source content's version in relation with the destination.

+ +
+
-

the destination of the relation

+

The destination of the relation.

@@ -36594,11 +36598,11 @@

Parameters

Return values

Relation

-

the newly created relation

+

The newly created relation.

- +
Tags @@ -36611,7 +36615,7 @@
UnauthorizedException
-

if the user is not allowed to edit this version

+

if the user is not allowed to edit this version.

@@ -36622,10 +36626,17 @@
BadStateException
-

if the version is not a draft

+

if the version is not a draft.

+
+
+ See +
+
+ Relation::COMMON +
@@ -36636,7 +36647,7 @@

ContentService.php : - 396 + 348

@@ -36654,7 +36665,7 @@

-
public copyContent(ContentInfo $contentInfo, LocationCreateStruct $destinationLocationCreateStruct[, VersionInfo $versionInfo = null ]) : Content
+
public copyContent(ContentInfo $contentInfo, LocationCreateStruct $destinationLocationCreateStruct[, VersionInfo|null $versionInfo = null ]) : Content
-

the target location where the content is copied to

+

The target location where the content is copied to.

@@ -36711,7 +36722,7 @@

Parameters

$versionInfo
- VersionInfo + VersionInfo|null null @@ -36737,7 +36748,7 @@
UnauthorizedException
-

if the user is not allowed to copy the content to the given location

+

if the user is not allowed to copy the content to the given location.

@@ -36751,11 +36762,11 @@

ContentService.php : - 618 + 548
-

Count total number of items returned by {@see ContentService::find()} method.

+

Gets the total number of fetchable Content items.

@@ -36768,7 +36779,7 @@

@@ -36777,6 +36788,10 @@

+
+

Counts total number of items returned by ContentService::find() with the same parameters.

+ +

Parameters

-
public count(Filter $filter[, array<string|int, string> $languages = null ]) : int
+
public count(Filter $filter[, array<int, string> $languages = null ]) : int
@@ -36807,14 +36822,14 @@

Parameters

$languages - @@ -37357,9 +37374,7 @@

Parameters

Return values

Content

-
    -
  • the newly created content draft
  • -
+

The newly created content draft.

@@ -37376,7 +37391,7 @@
UnauthorizedException
-

if the current-user is not allowed to create the draft

+

if the current user is not allowed to create the draft.

@@ -37390,7 +37405,7 @@

ContentService.php : - 251 + 223
@@ -37407,7 +37422,7 @@

@@ -37444,9 +37459,9 @@

Parameters

- array<string|int, string> + array<int, string> null
-

a list of language codes to be added as additional constraints. +

A list of language codes to be added as additional constraints. If skipped, by default, unless SiteAccessAware layer has been disabled, languages set for a SiteAccess in a current context will be used.

@@ -36835,7 +36850,7 @@

ContentService.php : - 287 + 257
@@ -36862,7 +36877,7 @@

-

If no user is given the number of drafts for the authenticated user are returned

+

If no user is given the number of drafts for the authenticated user are returned.

Parameters

@@ -36888,7 +36903,7 @@

Parameters

-

The user to load drafts for, if defined, otherwise drafts for current-user

+

The user to load drafts for, if defined, otherwise drafts for current user.

@@ -36899,7 +36914,7 @@

Parameters

Return values

int

-

The number of drafts (VersionInfo) owned by the given user

+

The number of drafts (VersionInfo) owned by the given user.

@@ -36926,7 +36941,7 @@

ContentService.php : - 431 + 383
@@ -37011,7 +37026,7 @@

ContentService.php : - 440 + 390
@@ -37067,7 +37082,7 @@

Parameters

Return values

int

-

The number of reverse relations (Relation)

+

The number of reverse relations (Relation).

@@ -37080,7 +37095,7 @@

ContentService.php : - 225 + 202
@@ -37109,7 +37124,7 @@

If a different userId is given in $contentCreateStruct it is assigned to the given user but this required special rights for the authenticated user -(this is useful for content staging where the transfer process does not +(this is useful for content staging where the transfer process doesn't have to authenticate with the user which created the content object in the source server). The user has to publish the draft if it should be visible.

@@ -37151,7 +37166,7 @@

Parameters

-

an array of LocationCreateStruct for each location parent under which a location should be created for the content +

An array of LocationCreateStruct for each location parent under which a location should be created for the content. While optional, it's highly recommended to use Locations for content as a lot of features in the system is usually tied to the tree structure (including default Role policies).

@@ -37182,9 +37197,7 @@

Parameters

Return values

Content

-
    -
  • the newly created content draft
  • -
+

The newly created content draft.

@@ -37201,7 +37214,7 @@
UnauthorizedException
-

if the user is not allowed to create the content in the given location

+

if the user is not allowed to create the content in the given location.

@@ -37224,7 +37237,7 @@
ContentFieldValidationException
-

if a field in the $contentCreateStruct is not valid

+

if a field in the $contentCreateStruct is not valid.

@@ -37235,7 +37248,7 @@
ContentValidationException
-

if a required field is missing or is set to an empty value

+

if a required field is missing or is set to an empty value.

@@ -37249,7 +37262,7 @@

ContentService.php : - 269 + 239
@@ -37332,7 +37345,7 @@

Parameters

-

Used as creator of the draft if given - otherwise uses current-user

+

Used as creator of the draft if given; otherwise uses current user.

@@ -37348,8 +37361,12 @@

Parameters

null - - + +
+

If not set the draft is created with the initialLanguage code of the source version or if not present with the main language.

+ +
+
-
public deleteContent(ContentInfo $contentInfo) : array<string|int, int>
+
public deleteContent(ContentInfo $contentInfo) : array<int, int>

Return values

-

array<string|int, int>

+

array<int, int>

-

Affected Location Id's (List of Locations of the Content that was deleted)

+

Affected Location IDs (List of Location IDs of the Content that was deleted).

@@ -37463,7 +37478,7 @@
UnauthorizedException
-

if the user is not allowed to delete the content (in one of the locations of the given content object)

+

if the user is not allowed to delete the content (in one of the locations of the given content object).

@@ -37477,11 +37492,11 @@

ContentService.php : - 496 + 438

-

Removes a relation of type COMMON from a draft.

+

Removes a common relation from a draft.

@@ -37544,7 +37559,7 @@

Parameters

- +
Tags @@ -37557,7 +37572,7 @@
UnauthorizedException
-

if the user is not allowed edit this version

+

if the user is not allowed edit this version.

@@ -37568,7 +37583,7 @@
BadStateException
-

if the version is not a draft

+

if the version is not a draft.

@@ -37579,10 +37594,17 @@
InvalidArgumentException
-

if there is no relation of type COMMON for the given destination

+

if there is no relation of type Relation::COMMON for the given destination.

+
+
+ See +
+
+ Relation::COMMON +
@@ -37593,7 +37615,7 @@

ContentService.php : - 515 + 454

@@ -37701,7 +37723,7 @@
InvalidArgumentException
-

if languageCode argument +

if $languageCode argument is invalid for the given content.

@@ -37716,7 +37738,7 @@

ContentService.php : - 538 + 477

@@ -37743,7 +37765,7 @@

-

When using together with ContentService::publishVersion() method, make sure to not provide deleted translation +

When using together with ContentService::publishVersion() method, make sure to not provide deleted translation in translations array, as it is going to be copied again from published version.

@@ -37770,7 +37792,7 @@

Parameters

-

Content Version Draft

+

Content Version Draft.

@@ -37788,7 +37810,7 @@

Parameters

-

Language code of the Translation to be removed

+

Language code of the Translation to be removed.

@@ -37799,7 +37821,7 @@

Parameters

Return values

Content

-

Content Draft w/o the specified Translation

+

Content Draft without the specified Translation.

@@ -37852,7 +37874,7 @@
NotFoundException
-

if specified Version was not found

+

if specified Version was not found.

@@ -37866,7 +37888,7 @@

ContentService.php : - 369 + 328
@@ -37933,7 +37955,7 @@

BadStateException

if the version is in -published state or is a last version of Content in non draft state

+published state or is a last version of Content in non-draft state.

@@ -37944,7 +37966,7 @@
UnauthorizedException
-

if the user is not allowed to remove this version

+

if the user is not allowed to remove this version.

@@ -37958,11 +37980,11 @@

ContentService.php : - 609 + 537
-

Fetch Content items from the Repository filtered by the given conditions.

+

Fetches Content items from the Repository filtered by the given conditions.

@@ -37975,7 +37997,7 @@

@@ -38014,14 +38036,14 @@

Parameters

$languages @@ -38169,7 +38191,7 @@

Parameters

$contentId @@ -38335,7 +38363,7 @@

Parameters

$languages @@ -38829,7 +38859,7 @@

-

If no user is given the drafts for the authenticated user are returned

+

If no user is given the drafts for the authenticated user are returned.

Parameters

@@ -38848,14 +38878,14 @@

Parameters

$user @@ -39132,7 +39158,7 @@

-

Note: It does not throw exceptions on load, just skips erroneous (NotFound or Unauthorized) ContentInfo items.

+

Note: It doesn't throw exceptions on load, just skips erroneous (NotFound or Unauthorized) ContentInfo items.

Parameters

@@ -39151,7 +39177,7 @@

Parameters

$contentIds
-
public find(Filter $filter[, array<string|int, string> $languages = null ]) : ContentList
+
public find(Filter $filter[, array<int, string> $languages = null ]) : ContentList
- array<string|int, string> + array<int, string> null
-

a list of language codes to be added as additional constraints. +

A list of language codes to be added as additional constraints. If skipped, by default, unless SiteAccessAware layer has been disabled, languages set for a SiteAccess in a current context will be used.

@@ -38042,7 +38064,7 @@

ContentService.php : - 550 + 488
@@ -38069,8 +38091,8 @@

-

It does not persist hidden state on Location object itself.

-

Content hidden by this API can be revealed by revealContent API.

+

It doesn't persist hidden state on Location object itself.

+

Content hidden by this API can be revealed by ContentService::revealContent() API.

Parameters

@@ -38123,7 +38145,7 @@

ContentService.php : - 165 + 144
@@ -38140,7 +38162,7 @@

-
public loadContent(mixed $contentId[, array<string|int, string> $languages = null ][, int|null $versionNo = null ][, bool $useAlwaysAvailable = true ]) : Content
+
public loadContent(int $contentId[, array<int, string> $languages = null ][, int|null $versionNo = null ][, bool $useAlwaysAvailable = true ]) : Content
- mixed + int - @@ -38183,7 +38205,7 @@

Parameters

$languages
- array<string|int, string> + array<int, string> null @@ -38209,7 +38231,7 @@

Parameters

-

the version number. If not given the current version is returned

+

The version number. If not given the current version is returned.

@@ -38227,7 +38249,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38250,7 +38272,7 @@
NotFoundException
-

if the content or version with the given id and languages does not exist

+

if the content or version with the given id and languages doesn't exist.

@@ -38261,7 +38283,13 @@
UnauthorizedException
-

If the user has no access to read content and in case of un-published content: read versions

+

if the user lacks:

+
    +
  • +content/read permission for published content, or
  • +
  • +content/read and content/versionread permissions for draft content.
  • +
@@ -38275,7 +38303,7 @@

ContentService.php : - 133 + 116
@@ -38292,7 +38320,7 @@

-
public loadContentByContentInfo(ContentInfo $contentInfo[, array<string|int, mixed> $languages = null ][, int|null $versionNo = null ][, bool $useAlwaysAvailable = true ]) : Content
+
public loadContentByContentInfo(ContentInfo $contentInfo[, array<int, string> $languages = null ][, int|null $versionNo = null ][, bool $useAlwaysAvailable = true ]) : Content
- array<string|int, mixed> + array<int, string> null @@ -38361,7 +38389,7 @@

Parameters

-

the version number. If not given the current version is returned from $contentInfo

+

The version number. If not given the current version is returned from $contentInfo.

@@ -38379,7 +38407,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38402,9 +38430,7 @@
NotFoundException
-
    -
  • if version with the given number does not exist
  • -
+

if version with the given number doesn't exist.

@@ -38415,7 +38441,7 @@
UnauthorizedException
-

if the user is not allowed to load this version

+

if the user is not allowed to load this version.

@@ -38429,7 +38455,7 @@

ContentService.php : - 183 + 161
@@ -38533,7 +38559,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38556,9 +38582,7 @@
NotFoundException
-
    -
  • if the content or version with the given remote id does not exist
  • -
+

if the content or version with the given remote id doesn't exist.

@@ -38569,7 +38593,13 @@
UnauthorizedException
-

If the user has no access to read content and in case of un-published content: read versions

+

if the user lacks:

+
    +
  • +content/read permission for published content, or
  • +
  • +content/read and content/versionread permissions for draft content.
  • +
@@ -38583,7 +38613,7 @@

ContentService.php : - 147 + 127
@@ -38665,7 +38695,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38688,7 +38718,7 @@
UnauthorizedException
-

if the user is not allowed to load this version

+

if the user is not allowed to load this version.

@@ -38702,7 +38732,7 @@

ContentService.php : - 317 + 283
@@ -38729,7 +38759,7 @@

-

If no user is given the drafts for the authenticated user are returned

+

If no user is given the drafts for the authenticated user are returned.

Parameters

@@ -38755,7 +38785,7 @@

Parameters

-

The user to load drafts for, if defined, otherwise drafts for current-user

+

The user to load drafts for, if defined; otherwise drafts for current user.

@@ -38802,7 +38832,7 @@

ContentService.php : - 302 + 272
@@ -38819,7 +38849,7 @@

-
public loadContentDrafts([User $user = null ]) : array<string|int, VersionInfo>
+
public loadContentDrafts([User|null $user = null ]) : array<string|int, VersionInfo>
- User + User|null null
-

The user to load drafts for, if defined, otherwise drafts for current-user

+

The user to load drafts for. If null, the current user's drafts are loaded.

@@ -38866,7 +38896,7 @@

Parameters

Return values

array<string|int, VersionInfo>

-

the drafts (VersionInfo) owned by the given user

+

The drafts owned by the given user.

@@ -38893,7 +38923,7 @@
UnauthorizedException
-

if the current-user is not allowed to load the draft list

+

if the current user is not allowed to load the draft list

@@ -38907,7 +38937,7 @@

ContentService.php : - 47 + 43
@@ -38979,7 +39009,7 @@

UnauthorizedException
-

if the user is not allowed to read the content

+

if the user is not allowed to read the content.

@@ -38990,9 +39020,7 @@
NotFoundException
-
    -
  • if the content with the given id does not exist
  • -
+

if the content with the given id doesn't exist.

@@ -39006,7 +39034,7 @@

ContentService.php : - 72 + 64
@@ -39078,7 +39106,7 @@

UnauthorizedException
-

if the user is not allowed to read the content

+

if the user is not allowed to read the content.

@@ -39089,9 +39117,7 @@
NotFoundException
-
    -
  • if the content with the given remote id does not exist
  • -
+

if the content with the given remote id doesn't exist.

@@ -39105,7 +39131,7 @@

ContentService.php : - 58 + 54
@@ -39122,7 +39148,7 @@

-
public loadContentInfoList(array<string|int, int> $contentIds) : array<string|int, ContentInfo>
+
public loadContentInfoList(array<int, int> $contentIds) : array<int, ContentInfo>
- array<string|int, int> + array<int, int> - @@ -39163,9 +39189,9 @@

Parameters

Return values

-

array<string|int, ContentInfo>

+

array<int, ContentInfo>

-

list of ContentInfo with Content Ids as keys

+

List of ContentInfo with content ids as keys

@@ -39178,7 +39204,7 @@

ContentService.php : - 200 + 178

@@ -39195,7 +39221,7 @@

-
public loadContentListByContentInfo(array<string|int, ContentInfo$contentInfoList[, array<string|int, string> $languages = [] ][, bool $useAlwaysAvailable = true ]) : array<string|int, Content>
+
public loadContentListByContentInfo(array<int, ContentInfo$contentInfoList[, array<int, string> $languages = [] ][, bool $useAlwaysAvailable = true ]) : array<int, Content>
- array<string|int, ContentInfo> + array<int, ContentInfo> - @@ -39240,7 +39266,7 @@

Parameters

$languages
- array<string|int, string> + array<int, string> [] @@ -39266,7 +39292,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true, +

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true, unless all languages have been asked for.

@@ -39276,9 +39302,9 @@

Parameters

Return values

-

array<string|int, Content>

+

array<int, Content>

-

list of Content items with Content Ids as keys

+

List of Content items with Content Ids as keys

@@ -39291,7 +39317,7 @@

ContentService.php : - 419 + 371

@@ -39415,7 +39441,7 @@

ContentService.php : - 407 + 359
@@ -39432,7 +39458,7 @@

-
public loadRelations(VersionInfo $versionInfo) : array<string|int, Relation>
+
public loadRelations(VersionInfo $versionInfo) : array<int, Relation>
@@ -39469,7 +39495,7 @@

Parameters

Return values

-

array<string|int, Relation>

+

array<int, Relation>

Tags @@ -39483,7 +39509,7 @@
UnauthorizedException
-

if the user is not allowed to read this version

+

if the user is not allowed to read this version.

@@ -39494,7 +39520,7 @@
4.5.7
-

The "ContentService::loadRelations()" method is deprecated, will be removed in 5.0.

+

It will be removed in 5.0. Use ContentService::loadRelationList() instead.

@@ -39508,7 +39534,7 @@

ContentService.php : - 468 + 409
@@ -39536,8 +39562,7 @@

The relations come only from published versions of the source content objects. -If the user is not allowed to read specific version then UnauthorizedRelationListItem is returned -UnauthorizedRelationListItem

+If the user is not allowed to read specific version then UnauthorizedRelationListItem is returned

Parameters

@@ -39606,7 +39631,7 @@

ContentService.php : - 453 + 401
@@ -39623,7 +39648,7 @@

-
public loadReverseRelations(ContentInfo $contentInfo) : array<string|int, Relation>
+
public loadReverseRelations(ContentInfo $contentInfo) : array<int, Relation>
@@ -39664,7 +39689,7 @@

Parameters

Return values

-

array<string|int, Relation>

+

array<int, Relation>

Tags @@ -39678,7 +39703,7 @@
UnauthorizedException
-

if the user is not allowed to read this version

+

if the user is not allowed to read this version.

@@ -39692,7 +39717,7 @@

ContentService.php : - 87 + 76
@@ -39719,7 +39744,7 @@

-

If no version number is given, the method returns the current version

+

If no version number is given, the method returns the current version.

Parameters

@@ -39782,9 +39807,7 @@
NotFoundException
-
    -
  • if the version with the given number does not exist
  • -
+

if the version with the given number doesn't exist.

@@ -39795,7 +39818,7 @@
UnauthorizedException
-

if the user is not allowed to load this version

+

if the user is not allowed to load this version.

@@ -39809,7 +39832,7 @@

ContentService.php : - 102 + 88
@@ -39836,7 +39859,7 @@

-

If no version number is given, the method returns the current version

+

If no version number is given, the method returns the current version.

Parameters

@@ -39899,9 +39922,7 @@
NotFoundException
-
    -
  • if the version with the given number does not exist
  • -
+

if the version with the given number doesn't exist.

@@ -39912,7 +39933,7 @@
UnauthorizedException
-

if the user is not allowed to load this version

+

if the user is not allowed to load this version.

@@ -39926,7 +39947,7 @@

ContentService.php : - 115 + 101
@@ -39943,7 +39964,7 @@

-
public loadVersionInfoListByContentInfo(array<string|int, ContentInfo$contentInfoList) : array<int, VersionInfo>
+
public loadVersionInfoListByContentInfo(array<int, ContentInfo$contentInfoList) : array<int, VersionInfo>
@@ -39968,7 +39989,7 @@

Parameters

$contentInfoList - array<string|int, ContentInfo> + array<int, ContentInfo> - @@ -40023,7 +40044,7 @@

ContentService.php : - 382 + 338
@@ -40040,7 +40061,7 @@

-
public loadVersions(ContentInfo $contentInfo[, int|null $status = null ]) : array<string|int, VersionInfo>
+
public loadVersions(ContentInfo $contentInfo[, int|null $status = null ]) : array<int, VersionInfo>
@@ -40091,9 +40112,9 @@

Parameters

Return values

-

array<string|int, VersionInfo>

+

array<int, VersionInfo>

-

an array of VersionInfo sorted by creation date

+

An array of VersionInfo sorted by creation date.

@@ -40110,7 +40131,7 @@
UnauthorizedException
-

if the user is not allowed to list versions

+

if the user is not allowed to list versions.

@@ -40121,7 +40142,7 @@
InvalidArgumentException
-

if the given status is invalid

+

if the given status is invalid.

@@ -40135,7 +40156,7 @@

ContentService.php : - 572 + 504
@@ -40162,7 +40183,7 @@

-

alwaysAvailable is set to the ContentType's defaultAlwaysAvailable

+

ContentCreateStruct::$alwaysAvailable is set to the ContentType::$defaultAlwaysAvailable.

Parameters

@@ -40217,7 +40238,7 @@

ContentService.php : - 579 + 509
@@ -40254,7 +40275,7 @@

ContentService.php : - 586 + 514
@@ -40291,7 +40312,7 @@

ContentService.php : - 358 + 319
@@ -40308,7 +40329,7 @@

-
public publishVersion(VersionInfo $versionInfo[, array<string|int, string> $translations = Language::ALL ]) : Content
+
public publishVersion(VersionInfo $versionInfo[, array<int, string> $translations = Language::ALL ]) : Content
@@ -40352,7 +40373,7 @@

Parameters

$translations - array<string|int, string> + array<int, string> Language::ALL @@ -40361,8 +40382,8 @@

Parameters

List of language codes of translations which will be included in a published version. -By default all translations from the current version will be published. -If the list is provided but does not cover all currently published translations, +By default, all translations from the current version will be published. +If the list is provided but doesn't cover all currently published translations, the missing ones will be copied from the currently published version, overriding those in the current version.

@@ -40387,7 +40408,7 @@
UnauthorizedException
-

if the user is not allowed to publish this version

+

if the user is not allowed to publish this version.

@@ -40398,7 +40419,7 @@
BadStateException
-

if the version is not a draft

+

if the version is not a draft.

@@ -40412,7 +40433,7 @@

ContentService.php : - 560 + 497
@@ -40492,7 +40513,7 @@

ContentService.php : - 335 + 299
@@ -40509,7 +40530,7 @@

-
public updateContent(VersionInfo $versionInfo, ContentUpdateStruct $contentUpdateStruct[, array<string|int, string>|null $fieldIdentifiersToValidate = null ]) : Content
+
public updateContent(VersionInfo $versionInfo, ContentUpdateStruct $contentUpdateStruct[, array<int, string>|null $fieldIdentifiersToValidate = null ]) : Content
@@ -40562,7 +40583,7 @@

Parameters

$fieldIdentifiersToValidate - array<string|int, string>|null + array<int, string>|null null @@ -40581,7 +40602,7 @@

Parameters

Return values

Content

-

the content draft with the updated fields

+

The content draft with the updated fields.

@@ -40598,7 +40619,7 @@
UnauthorizedException
-

if the user is not allowed to update this version

+

if the user is not allowed to update this version.

@@ -40609,7 +40630,7 @@
BadStateException
-

if the version is not a draft

+

if the version is not a draft.

@@ -40620,7 +40641,7 @@
ContentFieldValidationException
-

if a field in the $contentUpdateStruct is not valid

+

if a field in the $contentUpdateStruct is not valid.

@@ -40631,7 +40652,7 @@
ContentValidationException
-

if a required field is set to an empty value

+

if a required field is set to an empty value.

@@ -40642,7 +40663,7 @@
InvalidArgumentException
-

if a field value is not accepted by the field type

+

if a field value is not accepted by the field type.

@@ -40656,7 +40677,7 @@

ContentService.php : - 240 + 214
@@ -40683,7 +40704,7 @@

-

See ContentMetadataUpdateStruct of a content object - to update fields use updateContent

+

To update fields, use ContentService::updateContent().

Parameters

@@ -40730,7 +40751,7 @@

Parameters

Return values

Content

-

the content with the updated attributes

+

The content with the updated attributes.

@@ -40747,7 +40768,7 @@
UnauthorizedException
-

if the user is not allowed to update the content meta data

+

if the user is not allowed to update the content metadata.

@@ -40758,7 +40779,7 @@
InvalidArgumentException
-

if the remoteId in $contentMetadataUpdateStruct is set but already exists

+

if the remoteId in $contentMetadataUpdateStruct is set but already exists.

@@ -40772,7 +40793,7 @@

ContentService.php : - 600 + 528
@@ -40789,7 +40810,7 @@

-
public validate(ValueObject $object, array<string|int, mixed> $context[, array<string|int, string>|null $fieldIdentifiersToValidate = null ]) : array<string|int, mixed>
+
public validate(ValueObject $object, array<string|int, mixed> $context[, array<int, string>|null $fieldIdentifiersToValidate = null ]) : array<string|int, mixed>
@@ -40846,14 +40867,14 @@

Parameters

$fieldIdentifiersToValidate - array<string|int, string>|null + array<int, string>|null null
-

List of field identifiers for partial validation or null +

List of field identifiers for partial validation, or null for case of full validation. Empty identifiers array is equal to no validation.

diff --git a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html index 9e9993c643..88cd3d7658 100644 --- a/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html +++ b/docs/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html @@ -36594,7 +36594,7 @@

-

Adds a relation of type common.

+

Adds a common relation.

@@ -36618,7 +36618,7 @@

The source of the relation is the content and version -referenced by $versionInfo.

+referenced by $sourceVersion.

Parameters

@@ -36642,8 +36642,12 @@

Parameters

- @@ -36658,7 +36662,7 @@

Parameters

@@ -38966,7 +38974,7 @@

Parameters

- - - + +
+

The source content's version in relation with the destination.

+ +
+
-

the destination of the relation

+

The destination of the relation.

@@ -36669,7 +36673,7 @@

Parameters

Return values

Relation

-

the newly created relation

+

The newly created relation.

@@ -36746,7 +36750,7 @@

Parameters

-

the target location where the content is copied to

+

The target location where the content is copied to.

@@ -36783,7 +36787,7 @@

-

Count total number of items returned by {@see ContentService::find()} method.

+

Gets the total number of fetchable Content items.

@@ -36805,6 +36809,10 @@

+
+

Counts total number of items returned by ContentService::find() with the same parameters.

+ +

Parameters

@@ -36842,7 +36850,7 @@

Parameters

- @@ -37298,9 +37308,7 @@

Parameters

Return values

Content

-
    -
  • the newly created content draft
  • -
+

The newly created content draft.

@@ -37330,7 +37338,7 @@

@@ -37367,9 +37375,9 @@

Parameters

-

a list of language codes to be added as additional constraints. +

A list of language codes to be added as additional constraints. If skipped, by default, unless SiteAccessAware layer has been disabled, languages set for a SiteAccess in a current context will be used.

@@ -36890,7 +36898,7 @@

-

If no user is given the number of drafts for the authenticated user are returned

+

If no user is given the number of drafts for the authenticated user are returned.

Parameters

@@ -36916,7 +36924,7 @@

Parameters

-

The user to load drafts for, if defined, otherwise drafts for current-user

+

The user to load drafts for, if defined, otherwise drafts for current user.

@@ -36927,7 +36935,7 @@

Parameters

Return values

int

-

The number of drafts (VersionInfo) owned by the given user

+

The number of drafts (VersionInfo) owned by the given user.

@@ -37060,7 +37068,7 @@

Parameters

Return values

int

-

The number of reverse relations (Relation)

+

The number of reverse relations (Relation).

@@ -37102,7 +37110,7 @@

If a different userId is given in $contentCreateStruct it is assigned to the given user but this required special rights for the authenticated user -(this is useful for content staging where the transfer process does not +(this is useful for content staging where the transfer process doesn't have to authenticate with the user which created the content object in the source server). The user has to publish the draft if it should be visible.

@@ -37144,7 +37152,7 @@

Parameters

-

an array of LocationCreateStruct for each location parent under which a location should be created for the content +

An array of LocationCreateStruct for each location parent under which a location should be created for the content. While optional, it's highly recommended to use Locations for content as a lot of features in the system is usually tied to the tree structure (including default Role policies).

@@ -37175,9 +37183,7 @@

Parameters

Return values

Content

-
    -
  • the newly created content draft
  • -
+

The newly created content draft.

@@ -37273,7 +37279,7 @@

Parameters

-

Used as creator of the draft if given - otherwise uses current-user

+

Used as creator of the draft if given; otherwise uses current user.

@@ -37289,8 +37295,12 @@

Parameters

null - - + +
+

If not set the draft is created with the initialLanguage code of the source version or if not present with the main language.

+ +
+
-
public deleteContent(ContentInfo $contentInfo) : array<string|int, int>
+
public deleteContent(ContentInfo $contentInfo) : array<int, int>

Return values

-

array<string|int, int>

+

array<int, int>

-

Affected Location Id's (List of Locations of the Content that was deleted)

+

Affected Location IDs (List of Location IDs of the Content that was deleted).

@@ -37386,7 +37394,7 @@

-

Removes a relation of type COMMON from a draft.

+

Removes a common relation from a draft.

@@ -37565,7 +37573,7 @@

-

When using together with ContentService::publishVersion() method, make sure to not provide deleted translation +

When using together with ContentService::publishVersion() method, make sure to not provide deleted translation in translations array, as it is going to be copied again from published version.

@@ -37592,7 +37600,7 @@

Parameters

@@ -38730,7 +38738,7 @@

-

Note: it does not throw exceptions on load, just ignores erroneous Content item. +

Note: it doesn't throw exceptions on load, just ignores erroneous Content item. Moreover, since the method works on pre-loaded ContentInfo list, it is assumed that user is allowed to access every Content on the list.

@@ -38791,7 +38799,7 @@

Parameters

-

Content Version Draft

+

Content Version Draft.

@@ -37610,7 +37618,7 @@

Parameters

-

Language code of the Translation to be removed

+

Language code of the Translation to be removed.

@@ -37621,7 +37629,7 @@

Parameters

Return values

Content

-

Content Draft w/o the specified Translation

+

Content Draft without the specified Translation.

@@ -37700,7 +37708,7 @@

-

Fetch Content items from the Repository filtered by the given conditions.

+

Fetches Content items from the Repository filtered by the given conditions.

@@ -37759,7 +37767,7 @@

Parameters

@@ -38657,7 +38665,7 @@

-

Note: It does not throw exceptions on load, just skips erroneous (NotFound or Unauthorized) ContentInfo items.

+

Note: It doesn't throw exceptions on load, just skips erroneous (NotFound or Unauthorized) ContentInfo items.

Parameters

@@ -38688,9 +38696,9 @@

Parameters

-

a list of language codes to be added as additional constraints. +

A list of language codes to be added as additional constraints. If skipped, by default, unless SiteAccessAware layer has been disabled, languages set for a SiteAccess in a current context will be used.

@@ -37807,8 +37815,8 @@

-

It does not persist hidden state on Location object itself.

-

Content hidden by this API can be revealed by revealContent API.

+

It doesn't persist hidden state on Location object itself.

+

Content hidden by this API can be revealed by ContentService::revealContent() API.

Parameters

@@ -37933,7 +37941,7 @@

Parameters

-

the version number. If not given the current version is returned

+

The version number. If not given the current version is returned.

@@ -37951,7 +37959,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38056,7 +38064,7 @@

Parameters

-

the version number. If not given the current version is returned from $contentInfo

+

The version number. If not given the current version is returned from $contentInfo.

@@ -38074,7 +38082,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38197,7 +38205,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38298,7 +38306,7 @@

Parameters

-

Add Main language to $languages if true (default) and if alwaysAvailable is true

+

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true.

@@ -38344,7 +38352,7 @@

-

If no user is given the drafts for the authenticated user are returned

+

If no user is given the drafts for the authenticated user are returned.

Parameters

@@ -38370,7 +38378,7 @@

Parameters

-

The user to load drafts for, if defined, otherwise drafts for current-user

+

The user to load drafts for, if defined; otherwise drafts for current user.

@@ -38444,7 +38452,7 @@

-

If no user is given the drafts for the authenticated user are returned

+

If no user is given the drafts for the authenticated user are returned.

Parameters

@@ -38470,7 +38478,7 @@

Parameters

-

The user to load drafts for, if defined, otherwise drafts for current-user

+

The user to load drafts for. If null, the current user's drafts are loaded.

@@ -38481,7 +38489,7 @@

Parameters

Return values

array<string|int, VersionInfo>

-

the drafts (VersionInfo) owned by the given user

+

The drafts owned by the given user.

@@ -38647,7 +38655,7 @@

-
public loadContentInfoList(array<string|int, mixed> $contentIds) : array<string|int, ContentInfo>
+
public loadContentInfoList(array<string|int, mixed> $contentIds) : array<int, ContentInfo>

Return values

-

array<string|int, ContentInfo>

+

array<int, ContentInfo>

-

list of ContentInfo with Content Ids as keys

+

List of ContentInfo with content ids as keys

@@ -38720,7 +38728,7 @@

-
public loadContentListByContentInfo(array<string|int, mixed> $contentInfoList[, array<string|int, mixed> $languages = [] ][, bool $useAlwaysAvailable = true ]) : array<string|int, Content>
+
public loadContentListByContentInfo(array<string|int, mixed> $contentInfoList[, array<string|int, mixed> $languages = [] ][, bool $useAlwaysAvailable = true ]) : array<int, Content>
-

Add Main language to $languages if true (default) and if alwaysAvailable is true, +

Add Main language to $languages if true (default) and if ContentInfo::$alwaysAvailable is true, unless all languages have been asked for.

@@ -38801,9 +38809,9 @@

Parameters

Return values

-

array<string|int, Content>

+

array<int, Content>

-

list of Content items with Content Ids as keys

+

List of Content items with Content Ids as keys

@@ -38929,7 +38937,7 @@

-
public loadRelations(VersionInfo $versionInfo) : array<string|int, Relation>
+
public loadRelations(VersionInfo $versionInfo) : array<int, Relation>

Return values

-

array<string|int, Relation>

+

array<int, Relation>

@@ -39004,8 +39012,7 @@

The relations come only from published versions of the source content objects. -If the user is not allowed to read specific version then UnauthorizedRelationListItem is returned -UnauthorizedRelationListItem

+If the user is not allowed to read specific version then UnauthorizedRelationListItem is returned

Parameters

@@ -39091,7 +39098,7 @@

-
public loadReverseRelations(ContentInfo $contentInfo) : array<string|int, Relation>
+
public loadReverseRelations(ContentInfo $contentInfo) : array<int, Relation>
@@ -39132,7 +39139,7 @@

Parameters

Return values

-

array<string|int, Relation>

+

array<int, Relation>

@@ -39169,7 +39176,7 @@

-

If no version number is given, the method returns the current version

+

If no version number is given, the method returns the current version.

Parameters

@@ -39255,7 +39262,7 @@

-

If no version number is given, the method returns the current version

+

If no version number is given, the method returns the current version.

Parameters

@@ -39400,7 +39407,7 @@

-
public loadVersions(ContentInfo $contentInfo[, int|null $status = null ]) : array<string|int, VersionInfo>
+
public loadVersions(ContentInfo $contentInfo[, int|null $status = null ]) : array<int, VersionInfo>
@@ -39451,9 +39458,9 @@

Parameters

Return values

-

array<string|int, VersionInfo>

+

array<int, VersionInfo>

-

an array of VersionInfo sorted by creation date

+

An array of VersionInfo sorted by creation date.

@@ -39493,7 +39500,7 @@

-

alwaysAvailable is set to the ContentType's defaultAlwaysAvailable

+

ContentCreateStruct::$alwaysAvailable is set to the ContentType::$defaultAlwaysAvailable.

Parameters

@@ -39692,8 +39699,8 @@

Parameters

List of language codes of translations which will be included in a published version. -By default all translations from the current version will be published. -If the list is provided but does not cover all currently published translations, +By default, all translations from the current version will be published. +If the list is provided but doesn't cover all currently published translations, the missing ones will be copied from the currently published version, overriding those in the current version.

@@ -39869,7 +39876,7 @@

Parameters

Return values

Content

-

the content draft with the updated fields

+

The content draft with the updated fields.

@@ -39909,7 +39916,7 @@

-

See ContentMetadataUpdateStruct of a content object - to update fields use updateContent

+

To update fields, use ContentService::updateContent().

Parameters

@@ -39956,7 +39963,7 @@

Parameters

Return values

Content

-

the content with the updated attributes

+

The content with the updated attributes.

@@ -40050,7 +40057,7 @@

Parameters

-

List of field identifiers for partial validation or null +

List of field identifiers for partial validation, or null for case of full validation. Empty identifiers array is equal to no validation.

diff --git a/docs/api/php_api/php_api_reference/js/searchIndex.js b/docs/api/php_api/php_api_reference/js/searchIndex.js index 823e97a8f3..4d11976cb7 100644 --- a/docs/api/php_api/php_api_reference/js/searchIndex.js +++ b/docs/api/php_api/php_api_reference/js/searchIndex.js @@ -9628,12 +9628,12 @@ Search.appendIndex( }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\ContentService\u003A\u003AaddRelation\u0028\u0029", "name": "addRelation", - "summary": "Adds\u0020a\u0020relation\u0020of\u0020type\u0020common.", + "summary": "Adds\u0020a\u0020common\u0020relation.", "url": "classes/Ibexa-Contracts-Core-Repository-ContentService.html#method_addRelation" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\ContentService\u003A\u003AdeleteRelation\u0028\u0029", "name": "deleteRelation", - "summary": "Removes\u0020a\u0020relation\u0020of\u0020type\u0020COMMON\u0020from\u0020a\u0020draft.", + "summary": "Removes\u0020a\u0020common\u0020relation\u0020from\u0020a\u0020draft.", "url": "classes/Ibexa-Contracts-Core-Repository-ContentService.html#method_deleteRelation" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\ContentService\u003A\u003AdeleteTranslation\u0028\u0029", @@ -9678,12 +9678,12 @@ Search.appendIndex( }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\ContentService\u003A\u003Afind\u0028\u0029", "name": "find", - "summary": "Fetch\u0020Content\u0020items\u0020from\u0020the\u0020Repository\u0020filtered\u0020by\u0020the\u0020given\u0020conditions.", + "summary": "Fetches\u0020Content\u0020items\u0020from\u0020the\u0020Repository\u0020filtered\u0020by\u0020the\u0020given\u0020conditions.", "url": "classes/Ibexa-Contracts-Core-Repository-ContentService.html#method_find" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\ContentService\u003A\u003Acount\u0028\u0029", "name": "count", - "summary": "Count\u0020total\u0020number\u0020of\u0020items\u0020returned\u0020by\u0020\u007B\u0040see\u0020ContentService\u003A\u003Afind\u0028\u0029\u007D\u0020method.", + "summary": "Gets\u0020the\u0020total\u0020number\u0020of\u0020fetchable\u0020Content\u0020items.", "url": "classes/Ibexa-Contracts-Core-Repository-ContentService.html#method_count" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\ContentService\u003A\u003ADEFAULT_PAGE_SIZE", @@ -10048,12 +10048,12 @@ Search.appendIndex( }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\Decorator\\ContentServiceDecorator\u003A\u003AaddRelation\u0028\u0029", "name": "addRelation", - "summary": "Adds\u0020a\u0020relation\u0020of\u0020type\u0020common.", + "summary": "Adds\u0020a\u0020common\u0020relation.", "url": "classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html#method_addRelation" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\Decorator\\ContentServiceDecorator\u003A\u003AdeleteRelation\u0028\u0029", "name": "deleteRelation", - "summary": "Removes\u0020a\u0020relation\u0020of\u0020type\u0020COMMON\u0020from\u0020a\u0020draft.", + "summary": "Removes\u0020a\u0020common\u0020relation\u0020from\u0020a\u0020draft.", "url": "classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html#method_deleteRelation" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\Decorator\\ContentServiceDecorator\u003A\u003AdeleteTranslation\u0028\u0029", @@ -10098,12 +10098,12 @@ Search.appendIndex( }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\Decorator\\ContentServiceDecorator\u003A\u003Afind\u0028\u0029", "name": "find", - "summary": "Fetch\u0020Content\u0020items\u0020from\u0020the\u0020Repository\u0020filtered\u0020by\u0020the\u0020given\u0020conditions.", + "summary": "Fetches\u0020Content\u0020items\u0020from\u0020the\u0020Repository\u0020filtered\u0020by\u0020the\u0020given\u0020conditions.", "url": "classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html#method_find" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\Decorator\\ContentServiceDecorator\u003A\u003Acount\u0028\u0029", "name": "count", - "summary": "Count\u0020total\u0020number\u0020of\u0020items\u0020returned\u0020by\u0020\u007B\u0040see\u0020ContentService\u003A\u003Afind\u0028\u0029\u007D\u0020method.", + "summary": "Gets\u0020the\u0020total\u0020number\u0020of\u0020fetchable\u0020Content\u0020items.", "url": "classes/Ibexa-Contracts-Core-Repository-Decorator-ContentServiceDecorator.html#method_count" }, { "fqsen": "\\Ibexa\\Contracts\\Core\\Repository\\Decorator\\ContentServiceDecorator\u003A\u003A\u0024innerService", diff --git a/docs/api/php_api/php_api_reference/reports/deprecated.html b/docs/api/php_api/php_api_reference/reports/deprecated.html index 4bd88c8180..20783b13f8 100644 --- a/docs/api/php_api/php_api_reference/reports/deprecated.html +++ b/docs/api/php_api/php_api_reference/reports/deprecated.html @@ -36872,15 +36872,15 @@

Reason - 302 + 272 ContentService::loadContentDrafts()

Please use ContentService::loadContentDraftList() instead to avoid risking loading too much data.

- 407 + 359 ContentService::loadRelations() -

The "ContentService::loadRelations()" method is deprecated, will be removed in 5.0.

+

It will be removed in 5.0. Use ContentService::loadRelationList() instead.

diff --git a/docs/api/php_api/php_api_reference/reports/markers.html b/docs/api/php_api/php_api_reference/reports/markers.html index 140df8c7ed..0a1c199593 100644 --- a/docs/api/php_api/php_api_reference/reports/markers.html +++ b/docs/api/php_api/php_api_reference/reports/markers.html @@ -36680,7 +36680,7 @@

TODO - 358 + 319 Introduce null|int ContentType->versionArchiveLimit to be able to let admins override this per type.