eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZContentOperationCollection

class eZContentOperationCollection

Methods

eZContentOperationCollection()

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)

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($parentNodeID, $priorityArray = 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 22
public eZContentOperationCollection()

at line 26
static public readNode($nodeID)

Parameters

$nodeID

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

Parameters

$nodeID
$userID
$languageCode

at line 65
static public loopNodes($nodeID)

Parameters

$nodeID

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

Parameters

$objectID
$versionNum

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

Parameters

$contentObjectID
$contentObjectVersion

at line 110
static public beginTransaction()

Starts a database transaction.

at line 118
static public commitTransaction()

Commit a previously started database transaction.

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

Parameters

$objectID
$versionNum
$status

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

Parameters

$objectID
$versionNum

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

Parameters

$objectID
$versionNum

at line 217
static public generateObjectViewCache($objectID)

Parameters

$objectID

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

Parameters

$objectID
$versionNum
$additionalNodeList

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

Parameters

$parentNodeID
$objectID
$versionNum
$mainNodeID

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

Parameters

$objectID
$versionNum

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

Parameters

$objectID
$versionNum

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

Parameters

$objectID
$versionNum

at line 541
static public registerSearchObject(int $objectID)

Registers the object in search engine.

Parameters

int $objectID Id of the object.

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

Parameters

$objectID
$versionNum

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

Parameters

$objectID
$versionNum

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

Parameters

$objectID
$versionNum

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

Parameters

$objectID
$versionNum

at line 695
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 719
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 808
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 887
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 958
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 989
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 1096
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 1109
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 1138
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 1164
static public array updatePriority($parentNodeID, $priorityArray = array(), $priorityIDArray = array())

Updates the priority of a node

Parameters

$parentNodeID
$priorityArray
$priorityIDArray

Return Value

array An array with operation status, always true

at line 1197
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 1212
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 1247
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 1281
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 1309
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 1343
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 1355
static public createFeedForNode(int $nodeID)

Creates a RSS/ATOM Feed export for a node

Parameters

int $nodeID Node ID

at line 1441
static public removeFeedForNode(int $nodeID)

Removes a RSS/ATOM Feed export for a node

Parameters

int $nodeID Node ID

at line 1478
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 )