kernel/content/ezcontentoperationcollection.php
File containing the eZContentOperationCollection class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
-
eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZContentOperationCollection
Package: kernelFile containing the eZContentOperationCollection class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
-
eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Methods



UpdateMainAssignment(
int $mainAssignmentID, $ObjectID, int $mainAssignmentParentID
)
:
array
staticUpdate a node's main assignment
Parameters
Name |
Type |
Description |
$mainAssignmentID |
int |
|
$ObjectID |
|
|
$mainAssignmentParentID |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



addAssignment(
int $nodeID, $objectID, array $selectedNodeIDArray
)
:
array
staticAdds a new nodeAssignment
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
$objectID |
|
|
$selectedNodeIDArray |
array |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



changeHideStatus(
int $nodeID
)
:
array
staticChanges an contentobject's status
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



changeSortOrder(
int $nodeID, string $sortingField, bool $sortingOrder
=
false
)
:
array
staticChanges the sort order for a node
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
$sortingField |
string |
|
$sortingOrder |
bool |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



changeTranslationAvailableStatus(
int $objectID, int $status
=
false
)
:
array
staticChanges the status of a translation
Parameters
Name |
Type |
Description |
$objectID |
int |
|
$status |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



createFeedForNode(
int $nodeID
)
:
void
staticCreates a RSS/ATOM Feed export for a node
Parameters
Name |
Type |
Description |
$nodeID |
int |
Node ID |
Details
- Since
- 4.3



deleteObject(
array $deleteIDArray, bool $moveToTrash
=
false
)
:
array
staticDeletes a content object, or a list of content objects
Parameters
Name |
Type |
Description |
$deleteIDArray |
array |
|
$moveToTrash |
bool |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



executePrePublishTrigger(
int $objectID, int $version
)
:
void
staticExecutes the pre-publish trigger for this object, and handles
specific return statuses from the workflow
Parameters
Name |
Type |
Description |
$objectID |
int |
Object ID |
$version |
int |
Version number |
Details
- Since
- 4.2



registerSearchObject(
int $objectID, int $versionNum
)
:
void
staticRegisters the object in search engine.
Parameters
Name |
Type |
Description |
$objectID |
int |
Id of the object. |
$versionNum |
int |
Version of the object. |
Details
- Note
- Transaction unsafe. If you call several transaction unsafe methods you must enclose
the calls within a db transaction; thus within db->begin and db->commit.



removeAssignment(
int $nodeID, int $objectID, array $removeList, bool $moveToTrash
)
:
array
staticRemoves a nodeAssignment or a list of nodeAssigments
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
$objectID |
int |
|
$removeList |
array |
|
$moveToTrash |
bool |
|
Returns
Type |
Description |
array |
An array with operation status, always true |
Details
- Deprecated
- since 4.3



removeFeedForNode(
int $nodeID
)
:
void
staticRemoves a RSS/ATOM Feed export for a node
Parameters
Name |
Type |
Description |
$nodeID |
int |
Node ID |
Details
- Since
- 4.3



removeNodes(
array $removeNodeIdList
)
:
array
This function does not check about permissions, this is the responsibility of the caller!
Parameters
Name |
Type |
Description |
$removeNodeIdList |
array |
Array of Node ID to remove |
Returns
Type |
Description |
array |
An array with operation status, always true |



removeTranslation(
int $objectID, $languageIDArray
)
:
array
staticRemoves a translation for a contentobject
Parameters
Name |
Type |
Description |
$objectID |
int |
|
$languageIDArray |
|
array |
Returns
Type |
Description |
array |
An array with operation status, always true |



sendToPublishingQueue(
int $objectId, int $version
)
:
\array(
staticSends the published object/version for publishing to the queue
Used by the content/publish operation
Parameters
Name |
Type |
Description |
$objectId |
int |
|
$version |
int |
|
Returns
Type |
Description |
\array( |
status => int ) |
Details
- Since
- 4.5



swapNode(
int $nodeID, int $selectedNodeID, array $nodeIdList
=
array()
)
:
array
staticSwap a node with another one
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
$selectedNodeID |
int |
|
$nodeIdList |
array |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



updateAlwaysAvailable(
int $objectID, int $newAlwaysAvailable
)
:
array
staticSet the always available flag for a content object
Parameters
Name |
Type |
Description |
$objectID |
int |
|
$newAlwaysAvailable |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



updateInitialLanguage(
int $objectID, int $newInitialLanguageID
)
:
array
staticUpdates an contentobject's initial language
Parameters
Name |
Type |
Description |
$objectID |
int |
|
$newInitialLanguageID |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



updateObjectState(
int $objectID, int $selectedStateIDList
)
:
array
staticUpdate a contentobject's state
Parameters
Name |
Type |
Description |
$objectID |
int |
|
$selectedStateIDList |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |



updatePriority(
int $nodeID, array | array $priorityArray
=
array(), $priorityIDArray
=
array()
)
:
array
staticUpdates the priority of a node
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
$priorityArray |
array | array |
|
$priorityIDArray |
|
|
Returns
Type |
Description |
array |
An array with operation status, always true |



updateSection(
int $nodeID, int $selectedSectionID
)
:
array
staticAssigns a node to a section
Parameters
Name |
Type |
Description |
$nodeID |
int |
|
$selectedSectionID |
int |
|
Returns
Type |
Description |
array |
An array with operation status, always true |