kernel/content/ezcontentoperationcollection.php
\eZContentOperationCollection
Methods


UpdateMainAssignment(
int $mainAssignmentID, $ObjectID, int $mainAssignmentParentID
)
:
array
Update a node's main assignement
Name | Type | Description |
---|---|---|
$mainAssignmentID | int | |
$ObjectID | ||
$mainAssignmentParentID | int |
Type | Description |
---|---|
array | An array with operation status, always true |


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


attributePublishAction(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


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


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


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


clearObjectViewCache(
$objectID, $versionNum
=
true, $additionalNodeList
=
false
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum | ||
$additionalNodeList |


copyTranslations(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


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


createNotificationEvent(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


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


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


loopNodeAssignment(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


moveNode(
int $nodeID, int $objectID, int $newParentNodeID
)
:
array
Moves a node
Name | Type | Description |
---|---|---|
$nodeID | int | |
$objectID | int | |
$newParentNodeID | int |
Type | Description |
---|---|
array | An array with operation status, always true |


publishNode(
$parentNodeID, $objectID, $versionNum, $mainNodeID
)
:
void
Name | Type | Description |
---|---|---|
$parentNodeID | ||
$objectID | ||
$versionNum | ||
$mainNodeID |


publishObjectExtensionHandler(
$contentObjectID, $contentObjectVersion
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectID | ||
$contentObjectVersion |


readObject(
$nodeID, $userID, $languageCode
)
:
void
Name | Type | Description |
---|---|---|
$nodeID | ||
$userID | ||
$languageCode |


registerSearchObject(
int $objectID, int $versionNum
)
:
void
Registers the object in search engine.
Name | Type | Description |
---|---|---|
$objectID | int | Id of the object. |
$versionNum | int | Version of the object. |
- 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
Removes a nodeAssignment or a list of nodeAssigments
Name | Type | Description |
---|---|---|
$nodeID | int | |
$objectID | int | |
$removeList | array | |
$moveToTrash | bool |
Type | Description |
---|---|
array | An array with operation status, always true |
- Deprecated


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


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


removeOldNodes(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


removeTemporaryDrafts(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


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


resetNodeassignmentOpcodes(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


setObjectStatusPublished(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


setVersionStatus(
$objectID, $versionNum, $status
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum | ||
$status |


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


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


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


updateNontranslatableAttributes(
$objectID, $versionNum
)
:
void
Name | Type | Description |
---|---|---|
$objectID | ||
$versionNum |


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


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


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