Class

eZContentOperationCollection

class eZContentOperationCollection

Methods

static  readNode($nodeID)

static  readObject($nodeID, $userID, $languageCode)

static  loopNodes($nodeID)

static  loopNodeAssignment($objectID, $versionNum)

publishObjectExtensionHandler($contentObjectID, $contentObjectVersion)

static  beginTransaction()

Starts a database transaction.

static  commitTransaction()

Commit a previously started database transaction.

static  setVersionStatus($objectID, $versionNum, $status)

static  setObjectStatusPublished($objectID, $versionNum)

static  attributePublishAction($objectID, $versionNum)

static  generateObjectViewCache($objectID)

static  clearObjectViewCache($objectID, $versionNum = true, $additionalNodeList = false)

static  publishNode($parentNodeID, $objectID, $versionNum, $mainNodeID)

static  updateSectionID($objectID, $versionNum)

static  removeOldNodes($objectID, $versionNum)

static  resetNodeassignmentOpcodes($objectID, $versionNum)

static  registerSearchObject(int $objectID, int $version = null, bool $isMoved = false)

Registers the object in search engine.

static  createNotificationEvent($objectID, $versionNum)

static  copyTranslations($objectID, $versionNum)

static  updateNontranslatableAttributes($objectID, $versionNum)

static  removeTemporaryDrafts($objectID, $versionNum)

static array moveNode(int $nodeID, int $objectID, int $newParentNodeID)

Moves a node

static array addAssignment($nodeID, $objectID, $selectedNodeIDArray)

Adds a new nodeAssignment

static array removeNodes(array $removeNodeIdList)

Removes nodes

static array deleteObject(array $deleteIDArray, bool $moveToTrash = false)

Deletes a content object, or a list of content objects

static array changeHideStatus(int $nodeID)

Changes an contentobject's status

static array swapNode(int $nodeID, int $selectedNodeID, array $nodeIdList = array())

Swap a node with another one

static array updateSection(int $nodeID, int $selectedSectionID)

Assigns a node to a section

static array changeTranslationAvailableStatus(int $objectID, int $status = false)

Changes the status of a translation

static array changeSortOrder(int $nodeID, string $sortingField, bool $sortingOrder = false)

Changes the sort order for a node

static array updatePriority(int $parentNodeID, array $priorityArray = array(), array $priorityIDArray = array())

Updates the priority of a node

static array updateMainAssignment($mainAssignmentID, $ObjectID, $mainAssignmentParentID)

Update a node's main assignment

static array updateInitialLanguage(int $objectID, int $newInitialLanguageID)

Updates an contentobject's initial language

static array updateAlwaysAvailable(int $objectID, int $newAlwaysAvailable)

Set the always available flag for a content object

static array removeTranslation(int $objectID, array $languageIDArray)

Removes a translation for a contentobject

static array updateObjectState(int $objectID, int $selectedStateIDList)

Update a contentobject's state

static  executePrePublishTrigger(int $objectID, int $version)

Executes the pre-publish trigger for this object, and handles specific return statuses from the workflow

static  createFeedForNode(int $nodeID)

Creates a RSS/ATOM Feed export for a node

static  removeFeedForNode(int $nodeID)

Removes a RSS/ATOM Feed export for a node

static array( sendToPublishingQueue(int $objectId, int $version)

Sends the published object/version for publishing to the queue Used by the content/publish operation

Details

at line 24
static public readNode($nodeID)

Parameters

$nodeID

at line 29
static public readObject($nodeID, $userID, $languageCode)

Parameters

$nodeID
$userID
$languageCode

at line 63
static public loopNodes($nodeID)

Parameters

$nodeID

at line 70
static public loopNodeAssignment($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 100
public publishObjectExtensionHandler($contentObjectID, $contentObjectVersion)

Parameters

$contentObjectID
$contentObjectVersion

at line 108
static public beginTransaction()

Starts a database transaction.

at line 120
static public commitTransaction()

Commit a previously started database transaction.

at line 128
static public setVersionStatus($objectID, $versionNum, $status)

Parameters

$objectID
$versionNum
$status

at line 144
static public setObjectStatusPublished($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 203
static public attributePublishAction($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 222
static public generateObjectViewCache($objectID)

Parameters

$objectID

at line 236
static public clearObjectViewCache($objectID, $versionNum = true, $additionalNodeList = false)

Parameters

$objectID
$versionNum
$additionalNodeList

at line 242
static public publishNode($parentNodeID, $objectID, $versionNum, $mainNodeID)

Parameters

$parentNodeID
$objectID
$versionNum
$mainNodeID

at line 398
static public updateSectionID($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 483
static public removeOldNodes($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 539
static public resetNodeassignmentOpcodes($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 564
static public registerSearchObject(int $objectID, int $version = null, bool $isMoved = false)

Registers the object in search engine.

Parameters

int $objectID Id of the object.
int $version Operation collection passes this default param. Not used in the method
bool $isMoved true if node is being moved

at line 619
static public createNotificationEvent($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 629
static public copyTranslations($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 671
static public updateNontranslatableAttributes($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 705
static public removeTemporaryDrafts($objectID, $versionNum)

Parameters

$objectID
$versionNum

at line 720
static public array moveNode(int $nodeID, int $objectID, int $newParentNodeID)

Moves a node

Parameters

int $nodeID
int $objectID
int $newParentNodeID

Return Value

array An array with operation status, always true

at line 749
static public array addAssignment($nodeID, $objectID, $selectedNodeIDArray)

Adds a new nodeAssignment

Parameters

$nodeID
$objectID
$selectedNodeIDArray

Return Value

array An array with operation status, always true

at line 838
static public array removeNodes(array $removeNodeIdList)

Removes nodes

This function does not check about permissions, this is the responsibility of the caller!

Parameters

array $removeNodeIdList Array of Node ID to remove

Return Value

array An array with operation status, always true

at line 922
static public array deleteObject(array $deleteIDArray, bool $moveToTrash = false)

Deletes a content object, or a list of content objects

Parameters

array $deleteIDArray
bool $moveToTrash

Return Value

array An array with operation status, always true

at line 1004
static public array changeHideStatus(int $nodeID)

Changes an contentobject's status

Parameters

int $nodeID

Return Value

array An array with operation status, always true

at line 1035
static public array swapNode(int $nodeID, int $selectedNodeID, array $nodeIdList = array())

Swap a node with another one

Parameters

int $nodeID
int $selectedNodeID
array $nodeIdList

Return Value

array An array with operation status, always true

at line 1142
static public array updateSection(int $nodeID, int $selectedSectionID)

Assigns a node to a section

Parameters

int $nodeID
int $selectedSectionID

Return Value

array An array with operation status, always true

at line 1155
static public array changeTranslationAvailableStatus(int $objectID, int $status = false)

Changes the status of a translation

Parameters

int $objectID
int $status

Return Value

array An array with operation status, always true

at line 1184
static public array changeSortOrder(int $nodeID, string $sortingField, bool $sortingOrder = false)

Changes the sort order for a node

Parameters

int $nodeID
string $sortingField
bool $sortingOrder

Return Value

array An array with operation status, always true

at line 1210
static public array updatePriority(int $parentNodeID, array $priorityArray = array(), array $priorityIDArray = array())

Updates the priority of a node

Parameters

int $parentNodeID
array $priorityArray
array $priorityIDArray

Return Value

array An array with operation status, always true

at line 1259
static public array updateMainAssignment($mainAssignmentID, $ObjectID, $mainAssignmentParentID)

Update a node's main assignment

Parameters

$mainAssignmentID
$ObjectID
$mainAssignmentParentID

Return Value

array An array with operation status, always true

at line 1276
static public array updateInitialLanguage(int $objectID, int $newInitialLanguageID)

Updates an contentobject's initial language

Parameters

int $objectID
int $newInitialLanguageID

Return Value

array An array with operation status, always true

at line 1311
static public array updateAlwaysAvailable(int $objectID, int $newAlwaysAvailable)

Set the always available flag for a content object

Parameters

int $objectID
int $newAlwaysAvailable

Return Value

array An array with operation status, always true

at line 1345
static public array removeTranslation(int $objectID, array $languageIDArray)

Removes a translation for a contentobject

Parameters

int $objectID
array $languageIDArray

Return Value

array An array with operation status, always true

at line 1373
static public array updateObjectState(int $objectID, int $selectedStateIDList)

Update a contentobject's state

Parameters

int $objectID
int $selectedStateIDList

Return Value

array An array with operation status, always true

at line 1414
static public executePrePublishTrigger(int $objectID, int $version)

Executes the pre-publish trigger for this object, and handles specific return statuses from the workflow

Parameters

int $objectID Object ID
int $version Version number

at line 1426
static public createFeedForNode(int $nodeID)

Creates a RSS/ATOM Feed export for a node

Parameters

int $nodeID Node ID

at line 1512
static public removeFeedForNode(int $nodeID)

Removes a RSS/ATOM Feed export for a node

Parameters

int $nodeID Node ID

at line 1549
static public array( sendToPublishingQueue(int $objectId, int $version)

Sends the published object/version for publishing to the queue Used by the content/publish operation

Parameters

int $objectId
int $version

Return Value

array( status => int )