kernel/content/ezcontentoperationcollection.php
\eZContentOperationCollection
Methods

UpdateMainAssignment(
int $mainAssignmentID, $ObjectID, int $mainAssignmentParentID
)
:
arrayUpdate 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
)
:
arrayAdds 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
)
:
arrayChanges 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
)
:
arrayChanges 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
)
:
arrayChanges 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
)
:
voidCreates 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
)
:
arrayDeletes 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
)
:
voidExecutes 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
)
:
arrayMoves 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
)
:
voidRegisters 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
)
:
arrayRemoves 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
)
:
voidRemoves a RSS/ATOM Feed export for a node
| Name | Type | Description |
|---|---|---|
| $nodeID | int | Node ID |
- Since
- 4.3

removeNodes(
array $removeNodeIdList
)
:
arrayRemoves 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
)
:
arrayRemoves 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()
)
:
arraySwap 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
)
:
arraySet 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
)
:
arrayUpdates 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
)
:
arrayUpdate 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()
)
:
arrayUpdates 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
)
:
arrayAssigns a node to a section
| Name | Type | Description |
|---|---|---|
| $nodeID | int | |
| $selectedSectionID | int |
| Type | Description |
|---|---|
| array | An array with operation status, always true |