PHP 클래스 eZContentOperationCollection

파일 보기 프로젝트 열기: ezsystems/ezpublish-legacy 1 사용 예제들

공개 메소드들

메소드 설명
addAssignment ( integer $nodeID, $objectID, array $selectedNodeIDArray ) : array Adds a new nodeAssignment
attributePublishAction ( $objectID, $versionNum )
beginTransaction ( ) Starts a database transaction.
changeHideStatus ( integer $nodeID ) : array Changes an contentobject's status
changeSortOrder ( integer $nodeID, string $sortingField, boolean $sortingOrder = false ) : array Changes the sort order for a node
changeTranslationAvailableStatus ( integer $objectID, integer $status = false ) : array Changes the status of a translation
clearObjectViewCache ( $objectID, $versionNum = true, $additionalNodeList = false ) *! \static Clears the related viewcaches for the content object using the smart viewcache system.
commitTransaction ( ) Commit a previously started database transaction.
copyTranslations ( $objectID, $versionNum ) *! Copies missing translations from published version to the draft.
createFeedForNode ( integer $nodeID ) Creates a RSS/ATOM Feed export for a node
createNotificationEvent ( $objectID, $versionNum ) *! \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.
deleteObject ( array $deleteIDArray, boolean $moveToTrash = false ) : array Deletes a content object, or a list of content objects
eZContentOperationCollection ( ) *! Constructor
executePrePublishTrigger ( integer $objectID, integer $version ) Executes the pre-publish trigger for this object, and handles specific return statuses from the workflow
generateObjectViewCache ( $objectID ) *! \static Generates the related viewcaches (PreGeneration) for the content object.
loopNodeAssignment ( $objectID, $versionNum )
loopNodes ( $nodeID )
moveNode ( integer $nodeID, integer $objectID, integer $newParentNodeID ) : array Moves a node
publishNode ( $parentNodeID, $objectID, $versionNum, $mainNodeID )
publishObjectExtensionHandler ( $contentObjectID, $contentObjectVersion )
readNode ( $nodeID )
readObject ( $nodeID, $userID, $languageCode )
registerSearchObject ( integer $objectID, integer $version = null, boolean $isMoved = false ) Registers the object in search engine.
removeFeedForNode ( integer $nodeID ) Removes a RSS/ATOM Feed export for a node
removeNodes ( array $removeNodeIdList ) : array Removes nodes
removeOldNodes ( $objectID, $versionNum )
removeTemporaryDrafts ( $objectID, $versionNum )
removeTranslation ( integer $objectID, $languageIDArray ) : array Removes a translation for a contentobject
resetNodeassignmentOpcodes ( $objectID, $versionNum ) New function which resets the op_code field when the object is published.
sendToPublishingQueue ( integer $objectId, integer $version ) : array( Sends the published object/version for publishing to the queue Used by the content/publish operation
setObjectStatusPublished ( $objectID, $versionNum )
setVersionStatus ( $objectID, $versionNum, $status )
swapNode ( integer $nodeID, integer $selectedNodeID, array $nodeIdList = [] ) : array Swap a node with another one
updateAlwaysAvailable ( integer $objectID, integer $newAlwaysAvailable ) : array Set the always available flag for a content object
updateInitialLanguage ( integer $objectID, integer $newInitialLanguageID ) : array Updates an contentobject's initial language
updateMainAssignment ( integer $mainAssignmentID, $ObjectID, integer $mainAssignmentParentID ) : array Update a node's main assignment
updateNontranslatableAttributes ( $objectID, $versionNum ) *! Updates non-translatable attributes.
updateObjectState ( integer $objectID, integer $selectedStateIDList ) : array Update a contentobject's state
updatePriority ( integer $parentNodeID, array $priorityArray = [], array $priorityIDArray = [] ) : array Updates the priority of a node
updateSection ( integer $nodeID, integer $selectedSectionID ) : array Assigns a node to a section
updateSectionID ( $objectID, $versionNum )

메소드 상세

addAssignment() 공개 정적인 메소드

Adds a new nodeAssignment
public static addAssignment ( integer $nodeID, $objectID, array $selectedNodeIDArray ) : array
$nodeID integer
$selectedNodeIDArray array
리턴 array An array with operation status, always true

attributePublishAction() 공개 정적인 메소드

public static attributePublishAction ( $objectID, $versionNum )

beginTransaction() 공개 정적인 메소드

Starts a database transaction.
public static beginTransaction ( )

changeHideStatus() 공개 정적인 메소드

Changes an contentobject's status
public static changeHideStatus ( integer $nodeID ) : array
$nodeID integer
리턴 array An array with operation status, always true

changeSortOrder() 공개 정적인 메소드

Changes the sort order for a node
public static changeSortOrder ( integer $nodeID, string $sortingField, boolean $sortingOrder = false ) : array
$nodeID integer
$sortingField string
$sortingOrder boolean
리턴 array An array with operation status, always true

changeTranslationAvailableStatus() 공개 정적인 메소드

Changes the status of a translation
public static changeTranslationAvailableStatus ( integer $objectID, integer $status = false ) : array
$objectID integer
$status integer
리턴 array An array with operation status, always true

clearObjectViewCache() 공개 정적인 메소드

\param $objectID The ID of the content object to clear caches for \param $versionNum The version of the object to use or \c true for current version \param $additionalNodeList An array with node IDs to add to clear list, or \c false for no additional nodes.
public static clearObjectViewCache ( $objectID, $versionNum = true, $additionalNodeList = false )

commitTransaction() 공개 정적인 메소드

Commit a previously started database transaction.
public static commitTransaction ( )

copyTranslations() 공개 정적인 메소드

*! Copies missing translations from published version to the draft.
public static copyTranslations ( $objectID, $versionNum )

createFeedForNode() 공개 정적인 메소드

Creates a RSS/ATOM Feed export for a node
부터: 4.3
public static createFeedForNode ( integer $nodeID )
$nodeID integer Node ID

createNotificationEvent() 공개 정적인 메소드

*! \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.
public static createNotificationEvent ( $objectID, $versionNum )

deleteObject() 공개 정적인 메소드

Deletes a content object, or a list of content objects
public static deleteObject ( array $deleteIDArray, boolean $moveToTrash = false ) : array
$deleteIDArray array
$moveToTrash boolean
리턴 array An array with operation status, always true

eZContentOperationCollection() 공개 메소드

*! Constructor

executePrePublishTrigger() 공개 정적인 메소드

Executes the pre-publish trigger for this object, and handles specific return statuses from the workflow
부터: 4.2
public static executePrePublishTrigger ( integer $objectID, integer $version )
$objectID integer Object ID
$version integer Version number

generateObjectViewCache() 공개 정적인 메소드

It will only do this if [ContentSettings]/PreViewCache in site.ini is enabled. \param $objectID The ID of the content object to generate caches for.
public static generateObjectViewCache ( $objectID )

loopNodeAssignment() 공개 정적인 메소드

public static loopNodeAssignment ( $objectID, $versionNum )

loopNodes() 공개 정적인 메소드

public static loopNodes ( $nodeID )

moveNode() 공개 정적인 메소드

Moves a node
public static moveNode ( integer $nodeID, integer $objectID, integer $newParentNodeID ) : array
$nodeID integer
$objectID integer
$newParentNodeID integer
리턴 array An array with operation status, always true

publishNode() 공개 정적인 메소드

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

publishObjectExtensionHandler() 공개 메소드

public publishObjectExtensionHandler ( $contentObjectID, $contentObjectVersion )

readNode() 공개 정적인 메소드

public static readNode ( $nodeID )

readObject() 공개 정적인 메소드

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

registerSearchObject() 공개 정적인 메소드

Registers the object in search engine.
public static registerSearchObject ( integer $objectID, integer $version = null, boolean $isMoved = false )
$objectID integer Id of the object.
$version integer Operation collection passes this default param. Not used in the method
$isMoved boolean true if node is being moved

removeFeedForNode() 공개 정적인 메소드

Removes a RSS/ATOM Feed export for a node
부터: 4.3
public static removeFeedForNode ( integer $nodeID )
$nodeID integer Node ID

removeNodes() 공개 정적인 메소드

This function does not check about permissions, this is the responsibility of the caller!
public static removeNodes ( array $removeNodeIdList ) : array
$removeNodeIdList array Array of Node ID to remove
리턴 array An array with operation status, always true

removeOldNodes() 공개 정적인 메소드

public static removeOldNodes ( $objectID, $versionNum )

removeTemporaryDrafts() 공개 정적인 메소드

public static removeTemporaryDrafts ( $objectID, $versionNum )

removeTranslation() 공개 정적인 메소드

Removes a translation for a contentobject
public static removeTranslation ( integer $objectID, $languageIDArray ) : array
$objectID integer
리턴 array An array with operation status, always true

resetNodeassignmentOpcodes() 공개 정적인 메소드

New function which resets the op_code field when the object is published.
public static resetNodeassignmentOpcodes ( $objectID, $versionNum )

sendToPublishingQueue() 공개 정적인 메소드

Sends the published object/version for publishing to the queue Used by the content/publish operation
부터: 4.5
public static sendToPublishingQueue ( integer $objectId, integer $version ) : array(
$objectId integer
$version integer
리턴 array(

setObjectStatusPublished() 공개 정적인 메소드

public static setObjectStatusPublished ( $objectID, $versionNum )

setVersionStatus() 공개 정적인 메소드

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

swapNode() 공개 정적인 메소드

Swap a node with another one
public static swapNode ( integer $nodeID, integer $selectedNodeID, array $nodeIdList = [] ) : array
$nodeID integer
$selectedNodeID integer
$nodeIdList array
리턴 array An array with operation status, always true

updateAlwaysAvailable() 공개 정적인 메소드

Set the always available flag for a content object
public static updateAlwaysAvailable ( integer $objectID, integer $newAlwaysAvailable ) : array
$objectID integer
$newAlwaysAvailable integer
리턴 array An array with operation status, always true

updateInitialLanguage() 공개 정적인 메소드

Updates an contentobject's initial language
public static updateInitialLanguage ( integer $objectID, integer $newInitialLanguageID ) : array
$objectID integer
$newInitialLanguageID integer
리턴 array An array with operation status, always true

updateMainAssignment() 공개 정적인 메소드

Update a node's main assignment
public static updateMainAssignment ( integer $mainAssignmentID, $ObjectID, integer $mainAssignmentParentID ) : array
$mainAssignmentID integer
$mainAssignmentParentID integer
리턴 array An array with operation status, always true

updateNontranslatableAttributes() 공개 정적인 메소드

*! Updates non-translatable attributes.
public static updateNontranslatableAttributes ( $objectID, $versionNum )

updateObjectState() 공개 정적인 메소드

Update a contentobject's state
public static updateObjectState ( integer $objectID, integer $selectedStateIDList ) : array
$objectID integer
$selectedStateIDList integer
리턴 array An array with operation status, always true

updatePriority() 공개 정적인 메소드

Updates the priority of a node
public static updatePriority ( integer $parentNodeID, array $priorityArray = [], array $priorityIDArray = [] ) : array
$parentNodeID integer
$priorityArray array
$priorityIDArray array
리턴 array An array with operation status, always true

updateSection() 공개 정적인 메소드

Assigns a node to a section
public static updateSection ( integer $nodeID, integer $selectedSectionID ) : array
$nodeID integer
$selectedSectionID integer
리턴 array An array with operation status, always true

updateSectionID() 공개 정적인 메소드

public static updateSectionID ( $objectID, $versionNum )