|
eZ Publish
[trunk]
|
Handles eZ Publish content objects. More...
Inheritance diagram for eZContentObject:
Collaboration diagram for eZContentObject:Public Member Functions | |
| __clone () | |
| accessList ($function) | |
| addContentObjectRelation ($toObjectID, $fromObjectVersion=false, $attributeID=0, $relationType=eZContentObject::RELATION_COMMON) | |
| addLocation ($parentNodeID, $asObject=false) | |
| allContentObjectAttributes ($contentObjectID, $asObject=true) | |
| allLanguages () | |
| allowedAssignSectionList () | |
| allowedAssignStateIDList (eZUser $user=null) | |
| Gets a list of states a user is allowed to put the content object in. | |
| allowedAssignStateList (eZUser $user=null) | |
| appendInputRelationList ($addingIDList, $relationType) | |
| assignDefaultStates () | |
| Sets the default states of a content object. | |
| assignedNodes ($asObject=true) | |
| assignState (eZContentObjectState $state) | |
| Sets the state of a content object. | |
| authorArray () | |
| availableLanguages () | |
| availableLanguagesJsArray () | |
| cacheInfo ($Params) | |
| canCreate () | |
| canCreateClassList ($asObject=false, $includeFilter=true, $groupList=false, $fetchID=false) | |
| canCreateLanguages () | |
| canDiff () | |
| canEdit ($originalClassID=false, $parentClassID=false, $returnAccessList=false, $language=false) | |
| canEditLanguages () | |
| canMove () | |
| canMoveFrom () | |
| canPdf () | |
| canRead () | |
| canRemove () | |
| canTranslate () | |
| canViewEmbed () | |
| checkAccess ($functionName, $originalClassID=false, $parentClassID=false, $returnAccessList=false, $language=false) | |
| checkGroupLimitationAccess ($limitationValueList, $userID, $contentObjectID=false) | |
| classListFromPolicy ($policy, $allowedLanguageCodes=false) | |
| className () | |
| cleanupInternalDrafts ($userID=false, $timeDuration=86400) | |
| commitInputRelations ($editVersion) | |
| contentActionList () | |
| contentClass () | |
| contentClassGroupIDList () | |
| contentClassIdentifier () | |
| contentObjectAttributes ($asObject=true, $version=false, $language=false, $contentObjectAttributeID=false, $distinctItemsOnly=false) | |
| contentObjectListRelatingThis ($version=false) | |
| copy ($allVersions=true) | |
| copyContentObjectRelations ($currentVersion, $newVersion, $newObjectID=false) | |
| copyRevertTo ($version, $language=false) | |
| copyVersion (&$newObject, &$version, $newVersionNumber, $contentObjectID=false, $status=eZContentObjectVersion::STATUS_DRAFT, $languageCode=false, $copyFromLanguageCode=false) | |
| createInitialVersion ($userID, $initialLanguageCode=false) | |
| createNewVersion ($copyFromVersion=false, $versionCheck=true, $languageCode=false, $copyFromLanguageCode=false, $status=eZContentObjectVersion::STATUS_DRAFT) | |
| createNewVersionIn ($languageCode, $copyFromLanguageCode=false, $copyFromVersion=false, $versionCheck=true, $status=eZContentObjectVersion::STATUS_DRAFT) | |
| createNodeAssignment ($parentNodeID, $isMain, $remoteID=false, $sortField=eZContentObjectTreeNode::SORT_FIELD_PUBLISHED, $sortOrder=eZContentObjectTreeNode::SORT_ORDER_DESC) | |
| currentLanguage () | |
| currentLanguageObject () | |
| currentVersion ($asObject=true) | |
| dataMap () | |
| embeddedContentObjectCount ($fromObjectVersion=false) | |
| embeddedContentObjectList ($fromObjectVersion=false, $fromObjectID=false) | |
| eZContentObject ($row) | |
| fetchAttributesByIdentifier ($identifierArray, $version=false, $languageArray=false, $asObject=true) | |
| fetchClassAttributes ($version=0, $asObject=true) | |
| fetchDataMap ($version=false, $language=false) | |
| fetchInput ($contentObjectAttributes, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters) | |
| fixupInput ($contentObjectAttributes, $attributeDataBaseName) | |
| getVersionCount () | |
| groupedDataMap () | |
| Generates a map with all the content object attributes where the keys are the attribute identifiers grouped by class attribute category. | |
| handleAllCustomHTTPActions ($attributeDataBaseName, $customActionAttributeArray, $customActionParameters, $objectVersion=false) | |
| handleCustomHTTPActions ($contentObjectAttribute, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters) | |
| hasContentAction ($name) | |
| hasRemainingVersions () | |
| initialLanguage () | |
| initialLanguageCode () | |
| isAlwaysAvailable () | |
| languages () | |
| linkedContentObjectCount ($fromObjectVersion=false) | |
| linkedContentObjectList ($fromObjectVersion=false, $fromObjectID=false) | |
| mainNode () | |
| mainNodeID () | |
| mainParentNodeID () | |
| matchIngroupIDList () | |
| name ($version=false, $lang=false) | |
| names () | |
| nextVersion () | |
| owner () | |
| parentNodeIDArray () | |
| parentNodes ($version=false, $asObject=true) | |
| permissions () | |
| postUnserialize ($package) | |
| previousVersion () | |
| publishContentObjectRelations ($version) | |
| purge () | |
| relatedContentObjectArray ($fromObjectVersion=false, $fromObjectID=false, $attributeID=0, $params=false) | |
| relatedContentObjectCount ($fromObjectVersion=false, $attributeID=0, $params=false) | |
| relatedContentObjectList ($fromObjectVersion=false, $fromObjectID=false, $attributeID=0, $groupByAttribute=false, $params=false) | |
| relatedObjectCount ($version=false, $attributeID=0, $reverseRelatedObjects=false, $params=false) | |
| Fetch the number of (reverse) related objects. | |
| relatedObjects ($fromObjectVersion=false, $objectID=false, $attributeID=0, $groupByAttribute=false, $params=false, $reverseRelatedObjects=false) | |
| remoteID () | |
| removeContentObjectRelation ($toObjectID=false, $fromObjectVersion=false, $attributeID=0, $relationType=eZContentObject::RELATION_COMMON) | |
| removeReverseRelations ($objectID) | |
| removeThis ($nodeID=null) | |
| removeTranslation ($languageID) | |
| rename ($newName) | |
| resetDataMap () | |
| resetInputRelationList () | |
| restoreObjectAttributes () | |
| Restores attributes for current content object when it's being restored from trash. | |
| reverseEmbeddedObjectCount ($fromObjectVersion=false) | |
| reverseEmbeddedObjectList ($fromObjectVersion=false, $fromObjectID=false) | |
| reverseLinkedObjectCount ($fromObjectVersion=false) | |
| reverseLinkedObjectList ($fromObjectVersion=false, $fromObjectID=false) | |
| reverseRelatedObjectCount ($version=false, $attributeID=0, $params=false) | |
| reverseRelatedObjectList ($version=false, $attributeID=0, $groupByAttribute=false, $params=false) | |
| revertTo ($version) | |
| serialize ($package, $specificVersion=false, $options=false, $contentNodeIDArray=false, $topNodeIDArray=false) | |
| setAlwaysAvailableLanguageID ($languageID, $version=false) | |
| setCachedName ($name) | |
| setClassName ($name) | |
| setContentObjectAttributes (&$attributes, $version, $language) | |
| setCurrentLanguage ($lang) | |
| setName ($objectName, $versionNum=false, $languageCode=false) | |
| setPermissions ($permissionArray) | |
| stateIDArray ($refreshCache=false) | |
| Gets the current states of the content object. | |
| stateIdentifierArray () | |
| store ($fieldFilters=null) | |
| storeInput ($contentObjectAttributes, $attributeInputMap) | |
| storeNodeModified () | |
| validateInput ($contentObjectAttributes, $attributeDataBaseName, $inputParameters=false, $parameters=array()) | |
| version ($version, $asObject=true) | |
| versionLanguageName ($version, $lang=false) | |
| versions ($asObject=true, $parameters=array()) | |
| Returns an array of eZContentObjectVersion for the current object according to the conditions in $parameters. | |
Static Public Member Functions | |
| static | cleanupAllInternalDrafts ($userID=false, $timeDuration=86400) |
| static | clearCache ($idArray=array()) |
| static | create ($name, $contentclassID, $userID, $sectionID=1, $version=1, $languageCode=false) |
| static | createFetchSQLString ($id) |
| static | createFilterByVisibilitySQLString ($IgnoreVisibility=false, $ezcontentobjectTable= 'ezcontentobject') |
| Creates the SQL for filtering objects by visibility, used by IgnoreVisibility on some fetches. | |
| static | createGroupedDataMap ($contentObjectAttributes) |
| Generates a map with all the content object attributes where the keys are the attribute identifiers grouped by class attribute category. | |
| static | createWithNodeAssignment ($parentNode, $contentClassID, $languageCode, $remoteID=false) |
| static | defaultLanguage () |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | exists ($id) |
| static | expireAllCache () |
| static | expireAllViewCache () |
| static | expireComplexViewModeCache () |
| static | expireTemplateBlockCache () |
| static | expireTemplateBlockCacheIfNeeded () |
| static | fetch ($id, $asObject=true) |
| Fetches a content object by ID. | |
| static | fetchByNodeID ($nodeID, $asObject=true) |
| Fetches the contentobject which has a node with ID $nodeID $nodeID can also be an array of NodeIDs. | |
| static | fetchByRemoteID ($remoteID, $asObject=true) |
| static | fetchFilteredList ($conditions=null, $offset=false, $limit=false, $asObject=true) |
| static | fetchIDArray ($idArray, $asObject=true) |
| Fetches a content object list based on an array of content object ids. | |
| static | fetchList ($asObject=true, $conditions=null, $offset=false, $limit=false) |
| static | fetchListCount ($conditions=null) |
| static | fetchObjectCountByUserID ($classID, $userID, $status=false) |
| static | fetchSameClassList ($contentClassID, $asObject=true, $offset=false, $limit=false) |
| static | fetchSameClassListCount ($contentClassID) |
| static | fillNodeListAttributes ($objList, $asObject=true) |
| static | fixReverseRelations ($objectID, $mode=false) |
| static | isCacheExpired ($timestamp) |
| static | isComplexViewMode ($viewMode) |
| static | isComplexViewModeCacheExpired ($viewMode, $timestamp) |
| static | isObjectRelationTyped () |
| static | recursionProtect ($id) |
| static | recursionProtectionEnd () |
| static | recursionProtectionStart () |
| static | relationTypeMask ($allRelations=false) |
| static | removeVersions ($versionStatus=false) |
| static | setDefaultLanguage ($lang) |
| static | translationList () |
| static | translationStringList () |
| static | unserialize ($package, $domNode, &$options, $ownerID=false, $handlerType= 'ezcontentobject') |
Public Attributes | |
| $ClassIdentifier | |
| Cached class identifier. | |
| $ClassName | |
| Stores the current class name. | |
| $ContentActionList = false | |
| Contains an array of the content object actions for the current object. | |
| $ContentObjectAttributes = array() | |
| Contains a cached version of the content object attributes for the given version and language. | |
| $CurrentLanguage | |
| Stores the current language. | |
| $DataMap = array() | |
| Contains the datamap for content object attributes. | |
| $ID | |
| $InputRelationList = array() | |
| Contains the arrays of relatedobject id by fetching input for this object. | |
| $MainNodeID = false | |
| Contains the main node id for this object. | |
| $Name | |
| const | PACKAGE_DELETE = 4 |
| const | PACKAGE_ERROR_EXISTS = 2 |
| const | PACKAGE_ERROR_HAS_CHILDREN = 102 |
| const | PACKAGE_ERROR_MODIFIED = 101 |
| const | PACKAGE_ERROR_NO_CLASS = 1 |
| const | PACKAGE_ERROR_NODE_EXISTS = 3 |
| const | PACKAGE_KEEP = 5 |
| const | PACKAGE_NEW = 3 |
| const | PACKAGE_REPLACE = 1 |
| const | PACKAGE_SKIP = 2 |
| const | PACKAGE_UPDATE = 6 |
| const | RELATION_ATTRIBUTE = 8 |
| const | RELATION_COMMON = 1 |
| const | RELATION_EMBED = 2 |
| const | RELATION_LINK = 4 |
| const | STATUS_ARCHIVED = 2 |
| const | STATUS_DRAFT = 0 |
| const | STATUS_PUBLISHED = 1 |
Static Private Member Functions | |
| static | mapLanguage ($language, $options) |
Private Attributes | |
| $StateIDArray = false | |
Handles eZ Publish content objects.
It encapsulates the data for an object and provides lots of functions for dealing with versions, translations and attributes.
Definition at line 22 of file ezcontentobject.php.
Definition at line 1445 of file ezcontentobject.php.
| eZContentObject::accessList | ( | $ | function | ) |
Get accesslist for specified function
| function |
Definition at line 4578 of file ezcontentobject.php.
| eZContentObject::addContentObjectRelation | ( | $ | toObjectID, |
| $ | fromObjectVersion = false, |
||
| $ | attributeID = 0, |
||
| $ | relationType = eZContentObject::RELATION_COMMON |
||
| ) |
Adds a link to the given content object id.
Definition at line 2572 of file ezcontentobject.php.
Referenced by commitInputRelations().
| eZContentObject::addLocation | ( | $ | parentNodeID, |
| $ | asObject = false |
||
| ) |
Adds a new location (node) to the current object.
| $parenNodeID | The id of the node to use as parent. |
| $asObject | If true it will return the new child-node as an object, if not it returns the ID. |
Definition at line 2545 of file ezcontentobject.php.
| eZContentObject::allContentObjectAttributes | ( | $ | contentObjectID, |
| $ | asObject = true |
||
| ) |
Definition at line 1944 of file ezcontentobject.php.
Referenced by purge(), restoreObjectAttributes(), and revertTo().
Definition at line 4855 of file ezcontentobject.php.
Definition at line 5864 of file ezcontentobject.php.
| eZContentObject::allowedAssignStateIDList | ( | eZUser $ | user = null | ) |
Gets a list of states a user is allowed to put the content object in.
| eZUser | $user | the user to check the policies of, when omitted the currently logged in user will be used |
Definition at line 5888 of file ezcontentobject.php.
Referenced by allowedAssignStateList().
| eZContentObject::allowedAssignStateList | ( | eZUser $ | user = null | ) |
Definition at line 5983 of file ezcontentobject.php.
| eZContentObject::appendInputRelationList | ( | $ | addingIDList, |
| $ | relationType | ||
| ) |
Definition at line 2136 of file ezcontentobject.php.
Sets the default states of a content object.
This function is called upon instantiating a content object with eZContentClass::instantiate(), so should normally not be called by any other code.
Definition at line 6118 of file ezcontentobject.php.
| eZContentObject::assignedNodes | ( | $ | asObject = true | ) |
Returns the node assignments for the current object.
Definition at line 3543 of file ezcontentobject.php.
Referenced by copy(), createNewVersion(), removeTranslation(), and storeNodeModified().
| eZContentObject::assignState | ( | eZContentObjectState $ | state | ) |
Sets the state of a content object.
Changes are stored immediately in the database, does not require a store() of the content object. Should only be called on instances of eZContentObject that have a ID (that were stored already before).
| eZContentObjectState | $state |
Definition at line 6087 of file ezcontentobject.php.
Returns a list of all the authors for this object. The returned value is an array of eZ user objects.
Definition at line 5550 of file ezcontentobject.php.
Returns an array with the language codes.
It uses the attribute avail_lang as the source for the language list.
Definition at line 4830 of file ezcontentobject.php.
Referenced by canCreateLanguages(), canEditLanguages(), copyVersion(), and ezpContentFieldSet\fromContentObject().
Definition at line 4843 of file ezcontentobject.php.
| eZContentObject::cacheInfo | ( | $ | Params | ) |
Definition at line 5420 of file ezcontentobject.php.
Definition at line 4644 of file ezcontentobject.php.
| eZContentObject::canCreateClassList | ( | $ | asObject = false, |
| $ | includeFilter = true, |
||
| $ | groupList = false, |
||
| $ | fetchID = false |
||
| ) |
Finds all classes that the current user can create objects from and returns. It is also possible to filter the list event more with $includeFilter and $groupList.
| $asObject | If true then it return eZContentClass objects, if not it will be an associative array with name and id keys. |
| $includeFilter | If true then it will include only from class groups defined in $groupList, if not it will exclude those groups. |
| $groupList | An array with class group IDs that should be used in filtering, use false if you do not wish to filter at all. |
| $fetchID | A unique name for the current fetch, this must be supplied when filtering is used if you want caching to work. |
Definition at line 4436 of file ezcontentobject.php.
Definition at line 3627 of file ezcontentobject.php.
true if the current user can diff this content object. Definition at line 4635 of file ezcontentobject.php.
| eZContentObject::canEdit | ( | $ | originalClassID = false, |
| $ | parentClassID = false, |
||
| $ | returnAccessList = false, |
||
| $ | language = false |
||
| ) |
Definition at line 4653 of file ezcontentobject.php.
Referenced by canEditLanguages().
Definition at line 3609 of file ezcontentobject.php.
Check if the object can be moved. (actually checks 'edit' and 'remove' permissions)
true if the object can be moved by the current user. Definition at line 4721 of file ezcontentobject.php.
Check if the object can be moved. (actually checks 'edit' and 'remove' permissions)
true if the object can be moved by the current user. Definition at line 4731 of file ezcontentobject.php.
Referenced by canMove().
true if the current user can create a pdf of this content object. Definition at line 4610 of file ezcontentobject.php.
true if the current user can read this content object. Definition at line 4598 of file ezcontentobject.php.
Definition at line 4705 of file ezcontentobject.php.
Definition at line 4684 of file ezcontentobject.php.
true if the node can be viewed as embeded object by the current user. Definition at line 4623 of file ezcontentobject.php.
| eZContentObject::checkAccess | ( | $ | functionName, |
| $ | originalClassID = false, |
||
| $ | parentClassID = false, |
||
| $ | returnAccessList = false, |
||
| $ | language = false |
||
| ) |
Check access for the current object
| function | name ( edit, read, remove, etc. ) |
| original | class ID ( used to check access for object creation ), default false |
| parent | class id ( used to check access for object creation ), default false |
| return | access list instead of access result (optional, default false ) |
Definition at line 3702 of file ezcontentobject.php.
Referenced by accessList(), canCreate(), canCreateLanguages(), canDiff(), canEdit(), canMoveFrom(), canPdf(), canRead(), canRemove(), canTranslate(), canViewEmbed(), and removeTranslation().
| eZContentObject::checkGroupLimitationAccess | ( | $ | limitationValueList, |
| $ | userID, | ||
| $ | contentObjectID = false |
||
| ) |
Definition at line 3644 of file ezcontentobject.php.
Referenced by allowedAssignStateIDList(), checkAccess(), and classListFromPolicy().
| eZContentObject::classListFromPolicy | ( | $ | policy, |
| $ | allowedLanguageCodes = false |
||
| ) |
Definition at line 4258 of file ezcontentobject.php.
Referenced by canCreateClassList().
Definition at line 4746 of file ezcontentobject.php.
| static eZContentObject::cleanupAllInternalDrafts | ( | $ | userID = false, |
| $ | timeDuration = 86400 |
||
| ) | [static] |
Removes all old internal drafts by the specified user. Only internal drafts older than 1 day will be considered.
| $userID | The ID of the user to cleanup for, if false it will use the current user. |
Definition at line 1914 of file ezcontentobject.php.
| eZContentObject::cleanupInternalDrafts | ( | $ | userID = false, |
| $ | timeDuration = 86400 |
||
| ) |
Removes old internal drafts by the specified user associated with this content object. Only internal drafts older than 1 day will be considered.
| $userID | The ID of the user to cleanup for, if false it will use the current user. |
Definition at line 1881 of file ezcontentobject.php.
| static eZContentObject::clearCache | ( | $ | idArray = array() | ) | [static] |
Clear in-memory caches.
| $idArray | objects to clear caches for. |
If the parameter is ommitted the caches are cleared for all objects.
Definition at line 255 of file ezcontentobject.php.
Referenced by eZContentObjectTreeNode\assignSectionToSubTree(), eZContentClassAttribute\initializeObjectAttributes(), eZContentObjectPackageHandler\installContentObjects(), eZNotificationEventFilter\process(), eZCache\purgeImageAlias(), eZContentObjectTreeNode\removeSubtrees(), eZScriptTrashPurge\run(), eZContentObjectVersion\store(), and eZContentObjectPackageHandler\uninstall().
| eZContentObject::commitInputRelations | ( | $ | editVersion | ) |
Definition at line 2161 of file ezcontentobject.php.
Referenced by validateInput().
Returns an array of the content actions which can be performed on the current object.
Definition at line 4771 of file ezcontentobject.php.
Definition at line 736 of file ezcontentobject.php.
Referenced by contentClassGroupIDList(), copyVersion(), matchIngroupIDList(), and rename().
Definition at line 706 of file ezcontentobject.php.
Definition at line 717 of file ezcontentobject.php.
| eZContentObject::contentObjectAttributes | ( | $ | asObject = true, |
| $ | version = false, |
||
| $ | language = false, |
||
| $ | contentObjectAttributeID = false, |
||
| $ | distinctItemsOnly = false |
||
| ) |
Fetches the attributes for the current published version of the object. TODO: fix using of $asObject parameter, fix condition for getting attribute from cache, probably need to move method to eZContentObjectVersion class
Definition at line 1960 of file ezcontentobject.php.
Referenced by contentActionList(), fetchDataMap(), and handleAllCustomHTTPActions().
| eZContentObject::contentObjectListRelatingThis | ( | $ | version = false | ) |
Returns the related objects.
Definition at line 3364 of file ezcontentobject.php.
| eZContentObject::copy | ( | $ | allVersions = true | ) |
Makes a copy of the object which is stored and then returns it.
Definition at line 1458 of file ezcontentobject.php.
| eZContentObject::copyContentObjectRelations | ( | $ | currentVersion, |
| $ | newVersion, | ||
| $ | newObjectID = false |
||
| ) |
Definition at line 2745 of file ezcontentobject.php.
Referenced by copyVersion().
| eZContentObject::copyRevertTo | ( | $ | version, |
| $ | language = false |
||
| ) |
Copies the given version of the object and creates a new current version.
Definition at line 1598 of file ezcontentobject.php.
| eZContentObject::copyVersion | ( | &$ | newObject, |
| &$ | version, | ||
| $ | newVersionNumber, | ||
| $ | contentObjectID = false, |
||
| $ | status = eZContentObjectVersion::STATUS_DRAFT, |
||
| $ | languageCode = false, |
||
| $ | copyFromLanguageCode = false |
||
| ) |
Creates a new version and returns it as an eZContentObjectVersion object. If version number is given as argument that version is used to create a copy.
| $languageCode | If false all languages will be copied, otherwise only specified by the locale code string or an array of the locale code strings. |
Definition at line 1296 of file ezcontentobject.php.
Referenced by copy(), and createNewVersion().
| static eZContentObject::create | ( | $ | name, |
| $ | contentclassID, | ||
| $ | userID, | ||
| $ | sectionID = 1, |
||
| $ | version = 1, |
||
| $ | languageCode = false |
||
| ) | [static] |
Creates a new content object instance and stores it.
Definition at line 1420 of file ezcontentobject.php.
Referenced by addLocation(), createInitialVersion(), and createNodeAssignment().
| static eZContentObject::createFetchSQLString | ( | $ | id | ) | [static] |
Creates the SQL for fetching the object with ID $id and returns the string.
Definition at line 880 of file ezcontentobject.php.
| static eZContentObject::createFilterByVisibilitySQLString | ( | $ | IgnoreVisibility = false, |
| $ | ezcontentobjectTable = 'ezcontentobject' |
||
| ) | [static] |
Creates the SQL for filtering objects by visibility, used by IgnoreVisibility on some fetches.
The object is visible if 1 or more assigned nodes are visible.
| bool | $IgnoreVisibility | ignores visibility if true |
| string | $ezcontentobjectTable | name of ezcontentobject table used in sql |
Definition at line 909 of file ezcontentobject.php.
Referenced by relatedObjectCount(), and relatedObjects().
| static eZContentObject::createGroupedDataMap | ( | $ | contentObjectAttributes | ) | [static] |
Generates a map with all the content object attributes where the keys are the attribute identifiers grouped by class attribute category.
| array | $contentObjectAttributes | Array of eZContentObjectAttribute objects |
Definition at line 522 of file ezcontentobject.php.
Referenced by groupedDataMap().
| eZContentObject::createInitialVersion | ( | $ | userID, |
| $ | initialLanguageCode = false |
||
| ) |
Definition at line 1176 of file ezcontentobject.php.
| eZContentObject::createNewVersion | ( | $ | copyFromVersion = false, |
| $ | versionCheck = true, |
||
| $ | languageCode = false, |
||
| $ | copyFromLanguageCode = false, |
||
| $ | status = eZContentObjectVersion::STATUS_DRAFT |
||
| ) |
Creates a new version and returns it as an eZContentObjectVersion object. If version number is given as argument that version is used to create a copy.
| $versionCheck | If true it will check if there are too many version and remove some of them to make room for a new. |
Definition at line 1195 of file ezcontentobject.php.
Referenced by createNewVersionIn(), rename(), and eZContentFunctions\updateAndPublishObject().
| eZContentObject::createNewVersionIn | ( | $ | languageCode, |
| $ | copyFromLanguageCode = false, |
||
| $ | copyFromVersion = false, |
||
| $ | versionCheck = true, |
||
| $ | status = eZContentObjectVersion::STATUS_DRAFT |
||
| ) |
Definition at line 1181 of file ezcontentobject.php.
Referenced by copyRevertTo().
| eZContentObject::createNodeAssignment | ( | $ | parentNodeID, |
| $ | isMain, | ||
| $ | remoteID = false, |
||
| $ | sortField = eZContentObjectTreeNode::SORT_FIELD_PUBLISHED, |
||
| $ | sortOrder = eZContentObjectTreeNode::SORT_ORDER_DESC |
||
| ) |
Creates a new node assignment that will place the object as child of node $nodeID.
| $parentNodeID | The node ID of the parent node |
| $isMain | true if the created node is the main node of the object |
| $remoteID | A string denoting the unique remote ID of the assignment or false for no remote id. |
| $sortField | |
| $sortOrder |
Definition at line 3495 of file ezcontentobject.php.
| static eZContentObject::createWithNodeAssignment | ( | $ | parentNode, |
| $ | contentClassID, | ||
| $ | languageCode, | ||
| $ | remoteID = false |
||
| ) | [static] |
Definition at line 3514 of file ezcontentobject.php.
Referenced by eZWebDAVContentServer\createFolder(), and eZWebDAVContentBackend\createFolder().
Definition at line 2501 of file ezcontentobject.php.
Definition at line 2506 of file ezcontentobject.php.
| eZContentObject::currentVersion | ( | $ | asObject = true | ) |
Returns the current version of this document.
Definition at line 1094 of file ezcontentobject.php.
Referenced by copy(), createNewVersion(), removeTranslation(), serialize(), and setAlwaysAvailableLanguageID().
Definition at line 495 of file ezcontentobject.php.
| static eZContentObject::defaultLanguage | ( | ) | [static] |
Definition at line 4861 of file ezcontentobject.php.
Referenced by eZContentObjectAttribute\create(), eZContentObjectVersion\create(), create(), eZWebDAVContentServer\createFolder(), eZWebDAVContentBackend\createFolder(), eZContentUpload\handleLocalFile(), eZContentUpload\handleUpload(), and eZContentClass\instantiate().
| static eZContentObject::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 78 of file ezcontentobject.php.
Referenced by eZMultiplexerType\attribute(), eZSection\canBeRemoved(), fetchFilteredList(), fetchList(), fetchListCount(), eZSectionFunctionCollection\fetchObjectList(), eZSectionFunctionCollection\fetchObjectListCount(), fetchSameClassListCount(), and importRSSItem().
| eZContentObject::embeddedContentObjectCount | ( | $ | fromObjectVersion = false | ) |
Returns the xml-embedded objects count.
Definition at line 3194 of file ezcontentobject.php.
| eZContentObject::embeddedContentObjectList | ( | $ | fromObjectVersion = false, |
| $ | fromObjectID = false |
||
| ) |
Returns the xml-embedded objects.
Definition at line 3076 of file ezcontentobject.php.
| static eZContentObject::exists | ( | $ | id | ) | [static] |
Tests for the existance of a content object by using the ID $id.
true if the object exists, false otherwise. Definition at line 854 of file ezcontentobject.php.
| static eZContentObject::expireAllCache | ( | ) | [static] |
Sets all content cache files to be expired. Both view cache and cache blocks are expired.
Definition at line 5456 of file ezcontentobject.php.
Referenced by eZContentCacheManager\clearAllContentCache().
| static eZContentObject::expireAllViewCache | ( | ) | [static] |
Sets all view cache files to be expired
Definition at line 5443 of file ezcontentobject.php.
Referenced by eZContentCacheManager\clearObjectViewCache(), eZContentObjectOperations\remove(), and eZContentClassOperations\remove().
| static eZContentObject::expireComplexViewModeCache | ( | ) | [static] |
Sets all complex viewmode content cache files to be expired.
Definition at line 5496 of file ezcontentobject.php.
Referenced by eZContentCacheManager\clearObjectViewCache().
| static eZContentObject::expireTemplateBlockCache | ( | ) | [static] |
Expires all template block cache. This should be expired anytime any content is published/modified or removed.
Definition at line 5472 of file ezcontentobject.php.
Referenced by eZContentCacheManager\clearTemplateBlockCache(), and expireTemplateBlockCacheIfNeeded().
| static eZContentObject::expireTemplateBlockCacheIfNeeded | ( | ) | [static] |
Callse eZContentObject::xpireTemplateBlockCache() unless template caching is disabled.
Definition at line 5484 of file ezcontentobject.php.
| eZContentObject::eZContentObject | ( | $ | row | ) |
Definition at line 47 of file ezcontentobject.php.
Referenced by create(), fetch(), fetchIDArray(), and relatedObjects().
| static eZContentObject::fetch | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Fetches a content object by ID.
| int | $id | ID of the content object to fetch |
| bool | $asObject | Return the result as an object (true) or an assoc. array (false) |
Definition at line 806 of file ezcontentobject.php.
Referenced by eZContentOperationCollection\addAssignment(), eZShopOperationCollection\addToBasket(), eZObjectRelationListType\appendObject(), eZContentOperationCollection\attributePublishAction(), eZContentOperationCollection\changeTranslationAvailableStatus(), checkAccess(), checkGroupLimitationAccess(), classListFromPolicy(), eZContentCacheManager\clearTemplateBlockCache(), contentClass(), eZInformationCollectionAttribute\contentObject(), copyPublishContentObject(), eZContentOperationCollection\copyTranslations(), createWithNodeAssignment(), eZObjectRelationListType\customObjectAttributeHTTPAction(), updateNodeAssignment\execute(), eZFinishUserRegisterType\execute(), eZWaitUntilDateType\execute(), eZApproveType\execute(), eZMultiplexerType\execute(), eZShopFunctionCollection\fetchBestSellList(), fetchByRemoteID(), eZContentFunctionCollection\fetchContentObject(), eZApproveType\fetchHTTPInput(), eZContentFunctionCollection\fetchObject(), eZContentFunctionCollection\fetchRelatedObjects(), eZContentFunctionCollection\fetchRelatedObjectsCount(), eZShopFunctionCollection\fetchRelatedPurchaseList(), eZContentFunctionCollection\fetchReverseRelatedObjects(), eZContentFunctionCollection\fetchReverseRelatedObjectsCount(), ezpContent\fromObjectId(), eZObjectRelationType\fromString(), eZObjectRelationListType\fromString(), eZContentObjectPackageHandler\generateFetchAliasArray(), eZContentCacheManager\generateObjectViewCache(), eZObjectRelationListType\handleCustomObjectHTTPActions(), importRSSItem(), eZImageAliasHandler\initializeFromFile(), eZObjectRelationListType\initializeObjectAttribute(), initialLanguage(), eZContentObjectPackageHandler\installSuspendedNodeAssignment(), eZContentOperationCollection\loopNodeAssignment(), eZObjectRelationListType\metaData(), eZContentCacheManager\nodeList(), eZContentCacheManager\nodeListForObject(), eZObjectRelationType\objectAttributeContent(), eZObjectRelationListType\onPublish(), owner(), parentNodes(), eZContentOperationCollection\publishNode(), eZContentUpload\publishObject(), eZUserOperationCollection\publishUserContentObject(), eZContentOperationCollection\registerSearchObject(), eZContentObjectOperations\remove(), eZContentOperationCollection\removeAssignment(), eZObjectRelationType\removeContentObjectRelation(), eZContentOperationCollection\removeNodes(), eZContentOperationCollection\removeOldNodes(), eZContentOperationCollection\removeTemporaryDrafts(), removeThis(), eZContentOperationCollection\removeTranslation(), removeTranslation(), eZSiteInstaller\renameContentObject(), eZContentOperationCollection\resetNodeassignmentOpcodes(), eZUserOperationCollection\sendActivationEmail(), eZObjectRelationType\serializeContentObjectAttribute(), eZObjectRelationListType\serializeContentObjectAttribute(), eZContentOperationCollection\setObjectStatusPublished(), eZContentOperationCollection\setVersionStatus(), eZObjectRelationType\storeObjectAttribute(), eZObjectRelationListType\storeObjectAttribute(), eZObjectRelationListType\title(), eZXMLTextType\transformLinksToRemoteLinks(), unserialize(), eZContentOperationCollection\updateAlwaysAvailable(), eZSiteInstaller\updateContentObjectAttributes(), eZContentOperationCollection\updateInitialLanguage(), eZContentOperationCollection\updateNontranslatableAttributes(), eZSiteInstaller\updateObjectAttributeFromString(), eZContentOperationCollection\updateObjectState(), eZContentOperationCollection\updateSectionID(), eZApproveType\validateGroupIDList(), eZObjectRelationListType\validateObjectAttributeHTTPInput(), eZApproveType\validateUserIDList(), and versionLanguageName().
| eZContentObject::fetchAttributesByIdentifier | ( | $ | identifierArray, |
| $ | version = false, |
||
| $ | languageArray = false, |
||
| $ | asObject = true |
||
| ) |
Fetch a set of content object attributes by their class identifiers.
Definition at line 609 of file ezcontentobject.php.
| static eZContentObject::fetchByNodeID | ( | $ | nodeID, |
| $ | asObject = true |
||
| ) | [static] |
Fetches the contentobject which has a node with ID $nodeID $nodeID can also be an array of NodeIDs.
In this case, an array of content objects will be returned
| int | array | $nodeID | Single nodeID or array of NodeIDs |
| bool | $asObject | If results have to be returned as eZContentObject instances or not |
Definition at line 924 of file ezcontentobject.php.
Referenced by eZNodeAssignment\getParentObject(), eZContentCacheManager\nodeListForObject(), and eZContentObjectTreeNode\updateMainNodeID().
| static eZContentObject::fetchByRemoteID | ( | $ | remoteID, |
| $ | asObject = true |
||
| ) | [static] |
Fetches contentobject by remote ID, returns null if none exist
Definition at line 786 of file ezcontentobject.php.
Referenced by eZContentFunctionCollection\fetchContentObject(), eZContentObjectPackageHandler\installContentObjects(), eZContentObjectPackageHandler\installFetchAliases(), eZContentObjectPackageHandler\installOverrides(), eZContentObjectPackageHandler\installSuspendedObjectRelations(), eZTextFileUser\loginUser(), eZObjectRelationType\postUnserializeContentObjectAttribute(), eZObjectRelationListType\postUnserializeContentObjectAttribute(), eZXMLTextType\transformRemoteLinksToLinks(), eZContentObjectPackageHandler\uninstall(), eZContentObjectVersion\unserialize(), unserialize(), and eZObjectRelationType\unserializeContentObjectAttribute().
| eZContentObject::fetchClassAttributes | ( | $ | version = 0, |
| $ | asObject = true |
||
| ) |
Returns the attributes for the content object version $version and content object $contentObjectID. $language defines the language to fetch.
Definition at line 4947 of file ezcontentobject.php.
Referenced by serialize().
| eZContentObject::fetchDataMap | ( | $ | version = false, |
| $ | language = false |
||
| ) |
Definition at line 550 of file ezcontentobject.php.
Referenced by dataMap(), fetchInput(), ezpContentFieldSet\fromContentObject(), and groupedDataMap().
| static eZContentObject::fetchFilteredList | ( | $ | conditions = null, |
| $ | offset = false, |
||
| $ | limit = false, |
||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 1044 of file ezcontentobject.php.
Referenced by allowedAssignSectionList(), and fetchSameClassList().
| static eZContentObject::fetchIDArray | ( | $ | idArray, |
| $ | asObject = true |
||
| ) | [static] |
Fetches a content object list based on an array of content object ids.
| array | $idArray | array of content object ids |
| bool | $asObject | Wether to get the result as an array of eZContentObject or an array of associative arrays |
Definition at line 982 of file ezcontentobject.php.
Referenced by eZXMLOutputHandler\prefetch().
| eZContentObject::fetchInput | ( | $ | contentObjectAttributes, |
| $ | attributeDataBaseName, | ||
| $ | customActionAttributeArray, | ||
| $ | customActionParameters | ||
| ) |
Definition at line 2317 of file ezcontentobject.php.
| static eZContentObject::fetchList | ( | $ | asObject = true, |
| $ | conditions = null, |
||
| $ | offset = false, |
||
| $ | limit = false |
||
| ) | [static] |
| $asObject | Whether to return objects or not |
| $conditions | Optional conditions to limit the fetch, set to null to skip it. |
| $offset | Where to start fetch from, set to false to skip it. |
| $limit | Maximum number of objects to fetch, set false to skip it. |
Definition at line 1031 of file ezcontentobject.php.
Referenced by allowedAssignSectionList(), eZContentCacheManager\clearContentCacheIfNeededBySectionID(), eZSiteInstaller\contentObjectByName(), eZOrder\orderStatistics(), translationList(), and translationStringList().
| static eZContentObject::fetchListCount | ( | $ | conditions = null | ) | [static] |
Definition at line 1060 of file ezcontentobject.php.
| static eZContentObject::fetchObjectCountByUserID | ( | $ | classID, |
| $ | userID, | ||
| $ | status = false |
||
| ) | [static] |
Definition at line 5570 of file ezcontentobject.php.
| static eZContentObject::fetchSameClassList | ( | $ | contentClassID, |
| $ | asObject = true, |
||
| $ | offset = false, |
||
| $ | limit = false |
||
| ) | [static] |
Definition at line 1073 of file ezcontentobject.php.
Referenced by eZSiteInstaller\addClassAttributes(), eZContentClassAttribute\initializeObjectAttributes(), eZContentClass\objectList(), and eZContentClassOperations\remove().
| static eZContentObject::fetchSameClassListCount | ( | $ | contentClassID | ) | [static] |
Definition at line 1079 of file ezcontentobject.php.
Referenced by eZContentClassPackageHandler\install(), and eZContentClassPackageHandler\uninstall().
| static eZContentObject::fillNodeListAttributes | ( | $ | objList, |
| $ | asObject = true |
||
| ) | [static] |
Fetches the attributes for an array of objects. The objList parameter contains an array of objects ( instanceOf eZContentObject or a object that is or extends eZContentObjectTreeNode ) to fetch attributes from.
Definition at line 2056 of file ezcontentobject.php.
Referenced by eZTreeMenuOperator\modify(), relatedObjects(), and eZContentObjectTreeNode\subTreeByNodeID().
| static eZContentObject::fixReverseRelations | ( | $ | objectID, |
| $ | mode = false |
||
| ) | [static] |
Definition at line 1605 of file ezcontentobject.php.
Referenced by eZContentOperationCollection\moveNode(), purge(), removeThis(), and eZContentOperationCollection\swapNode().
| eZContentObject::fixupInput | ( | $ | contentObjectAttributes, |
| $ | attributeDataBaseName | ||
| ) |
Definition at line 2308 of file ezcontentobject.php.
Returns number of exist versions.
Definition at line 2492 of file ezcontentobject.php.
Referenced by createNewVersion().
Generates a map with all the content object attributes where the keys are the attribute identifiers grouped by class attribute category.
Definition at line 508 of file ezcontentobject.php.
| eZContentObject::handleAllCustomHTTPActions | ( | $ | attributeDataBaseName, |
| $ | customActionAttributeArray, | ||
| $ | customActionParameters, | ||
| $ | objectVersion = false |
||
| ) |
Definition at line 2392 of file ezcontentobject.php.
| eZContentObject::handleCustomHTTPActions | ( | $ | contentObjectAttribute, |
| $ | attributeDataBaseName, | ||
| $ | customActionAttributeArray, | ||
| $ | customActionParameters | ||
| ) |
Definition at line 2376 of file ezcontentobject.php.
Referenced by fetchInput().
| eZContentObject::hasContentAction | ( | $ | name | ) |
Definition at line 4807 of file ezcontentobject.php.
Referenced by contentActionList().
true if the object has any versions remaining. Definition at line 1165 of file ezcontentobject.php.
Definition at line 2526 of file ezcontentobject.php.
Referenced by createNewVersion(), initialLanguageCode(), and setName().
Definition at line 2531 of file ezcontentobject.php.
Referenced by contentActionList(), fetchInput(), and validateInput().
Definition at line 5800 of file ezcontentobject.php.
Referenced by copyVersion().
| static eZContentObject::isCacheExpired | ( | $ | timestamp | ) | [static] |
Definition at line 5507 of file ezcontentobject.php.
Referenced by eZNodeviewfunctions\contentViewRetrieve(), eZContentCache\exists(), and eZContentCache\restore().
| static eZContentObject::isComplexViewMode | ( | $ | viewMode | ) | [static] |
Definition at line 5522 of file ezcontentobject.php.
Referenced by isComplexViewModeCacheExpired().
| static eZContentObject::isComplexViewModeCacheExpired | ( | $ | viewMode, |
| $ | timestamp | ||
| ) | [static] |
Definition at line 5532 of file ezcontentobject.php.
Referenced by eZContentCache\exists(), and eZContentCache\restore().
| static eZContentObject::isObjectRelationTyped | ( | ) | [static] |
Definition at line 2777 of file ezcontentobject.php.
Referenced by eZContentFunctionCollection\fetchRelatedObjectsID(), eZContentFunctionCollection\fetchReverseRelatedObjectsID(), handleRelationTemplate(), and relationTypeMask().
Definition at line 4848 of file ezcontentobject.php.
Referenced by availableLanguages().
| eZContentObject::linkedContentObjectCount | ( | $ | fromObjectVersion = false | ) |
Returns the xml-linked objects count.
Definition at line 3183 of file ezcontentobject.php.
| eZContentObject::linkedContentObjectList | ( | $ | fromObjectVersion = false, |
| $ | fromObjectID = false |
||
| ) |
Returns the xml-linked objects.
Definition at line 3064 of file ezcontentobject.php.
Definition at line 3588 of file ezcontentobject.php.
Referenced by eZNodeviewfunctions\generateNodeViewData().
Returns the main node id for the current object.
Definition at line 3578 of file ezcontentobject.php.
Definition at line 777 of file ezcontentobject.php.
| static eZContentObject::mapLanguage | ( | $ | language, |
| $ | options | ||
| ) | [static, private] |
Maps input lange to another one if defined in $options['language_map']. If it cannot map it returns the original language.
Definition at line 4958 of file ezcontentobject.php.
Referenced by unserialize().
Get class groups this object's class belongs to if match for class groups is enabled.
Definition at line 214 of file ezcontentobject.php.
| eZContentObject::name | ( | $ | version = false, |
| $ | lang = false |
||
| ) |
Definition at line 303 of file ezcontentobject.php.
Definition at line 323 of file ezcontentobject.php.
Returns the next available version number for this object.
Definition at line 2461 of file ezcontentobject.php.
Referenced by createNewVersion().
Returns the owner of the object as a content object.
Definition at line 694 of file ezcontentobject.php.
Get parent node IDs
Definition at line 3446 of file ezcontentobject.php.
| eZContentObject::parentNodes | ( | $ | version = false, |
| $ | asObject = true |
||
| ) |
| $version | No longer in use, published nodes are used instead. |
| $asObject | If true it fetches PHP objects, otherwise it fetches IDs. |
Definition at line 3456 of file ezcontentobject.php.
Referenced by parentNodeIDArray().
Returns the permission for the current object.
Definition at line 3604 of file ezcontentobject.php.
| eZContentObject::postUnserialize | ( | $ | package | ) |
Performs additional unserialization actions that need to be performed when all objects contained in the package are already installed. (maintain objects' cross-relations)
Definition at line 5302 of file ezcontentobject.php.
Returns the previous available version number for this object, if existing, false otherwise ( if the object has only one version )
Definition at line 2473 of file ezcontentobject.php.
| eZContentObject::publishContentObjectRelations | ( | $ | version | ) |
Definition at line 3369 of file ezcontentobject.php.
If nodeID is not given, this function will remove object from database. All versions and translations of this object will be lost. Otherwise, it will check node assignment and only delete the object from this node if it was assigned to other nodes as well.
Definition at line 1673 of file ezcontentobject.php.
| static eZContentObject::recursionProtect | ( | $ | id | ) | [static] |
Definition at line 2420 of file ezcontentobject.php.
Referenced by eZObjectRelationListType\handleCustomObjectHTTPActions(), eZObjectRelationType\metaData(), and eZObjectRelationListType\metaData().
| static eZContentObject::recursionProtectionEnd | ( | ) | [static] |
Definition at line 2433 of file ezcontentobject.php.
Referenced by eZSearchEngine\addObject().
| static eZContentObject::recursionProtectionStart | ( | ) | [static] |
Definition at line 2415 of file ezcontentobject.php.
Referenced by eZSearchEngine\addObject().
| eZContentObject::relatedContentObjectArray | ( | $ | fromObjectVersion = false, |
| $ | fromObjectID = false, |
||
| $ | attributeID = 0, |
||
| $ | params = false |
||
| ) |
Definition at line 3112 of file ezcontentobject.php.
| eZContentObject::relatedContentObjectCount | ( | $ | fromObjectVersion = false, |
| $ | attributeID = 0, |
||
| $ | params = false |
||
| ) |
| $attributeID | : ( makes sense only when $params['AllRelations'] not set or eZContentObject::RELATION_ATTRIBUTE ) >0 - return relations made with attribute ID ( "related object(s)" datatype ) 0 or false ( $params['AllRelations'] is eZContentObject::RELATION_ATTRIBUTE )
|
| $params | : other parameters from template fetch function : $params['AllRelations'] - relation type filter : true - return ALL relations, including attribute-level false - return object-level relations >0 - bit mask of EZ_CONTENT_OBJECT_RELATION_* values $params['SortBy'] - related objects sorting mode. Supported modes: class_identifier, class_name, modified, name, published, section $params['IgnoreVisibility'] - ignores 'hidden' state of related objects if true |
Definition at line 3141 of file ezcontentobject.php.
| eZContentObject::relatedContentObjectList | ( | $ | fromObjectVersion = false, |
| $ | fromObjectID = false, |
||
| $ | attributeID = 0, |
||
| $ | groupByAttribute = false, |
||
| $ | params = false |
||
| ) |
Returns the related objects.
| $attributeID | : ( makes sense only when $params['AllRelations'] not set or eZContentObject::RELATION_ATTRIBUTE ) >0 - return relations made with attribute ID ( "related object(s)" datatype ) 0 or false ( $params['AllRelations'] is eZContentObject::RELATION_ATTRIBUTE )
|
| $groupByAttribute | : false - return all relations as an array of content objects true - return all relations groupped by attribute ID This parameter makes sense only when $attributeID == false or $params['AllRelations'] = true |
| $params | : other parameters from template fetch function : $params['AllRelations'] - relation type filter : true - return ALL relations, including attribute-level false - return object-level relations >0 - bit mask of EZ_CONTENT_OBJECT_RELATION_* values $params['SortBy'] - related objects sorting mode. Supported modes: class_identifier, class_name, modified, name, published, section $params['IgnoreVisibility'] - ignores 'hidden' state of related objects if true $params['RelatedClassIdentifiers'] - limit returned relations to objects of the specified class identifiers |
Definition at line 3051 of file ezcontentobject.php.
Referenced by relatedContentObjectArray().
| eZContentObject::relatedObjectCount | ( | $ | version = false, |
| $ | attributeID = 0, |
||
| $ | reverseRelatedObjects = false, |
||
| $ | params = false |
||
| ) |
Fetch the number of (reverse) related objects.
| int | $version | |
| int | $attributeID | This parameter only makes sense if $params[AllRelations] is unset, set to false, or matches eZContentObject::RELATION_ATTRIBUTE Possible values:
|
| int | false | $reverseRelatedObjects | Wether to count related objects (false) or reverse related objects (false) |
| array | false | $params | Various params, as an associative array. Possible values:
|
Definition at line 3251 of file ezcontentobject.php.
Referenced by embeddedContentObjectCount(), linkedContentObjectCount(), relatedContentObjectCount(), reverseEmbeddedObjectCount(), reverseLinkedObjectCount(), and reverseRelatedObjectCount().
| eZContentObject::relatedObjects | ( | $ | fromObjectVersion = false, |
| $ | objectID = false, |
||
| $ | attributeID = 0, |
||
| $ | groupByAttribute = false, |
||
| $ | params = false, |
||
| $ | reverseRelatedObjects = false |
||
| ) |
Returns the related or reverse related objects:
| $attributeID | : ( makes sense only when $params['AllRelations'] not set or eZContentObject::RELATION_ATTRIBUTE ) >0 - return relations made with attribute ID ( "related object(s)" datatype ) 0 or false ( $params['AllRelations'] is eZContentObject::RELATION_ATTRIBUTE )
|
| $groupByAttribute | : false - return all relations as an array of content objects true - return all relations groupped by attribute ID This parameter makes sense only when $attributeID == false or $params['AllRelations'] = true |
| $params | : other parameters from template fetch function : $params['AllRelations'] - relation type filter : true - return ALL relations, including attribute-level false - return object-level relations >0 - bit mask of EZ_CONTENT_OBJECT_RELATION_* values $params['SortBy'] - related objects sorting mode. Supported modes: class_identifier, class_name, modified, name, published, section $params['IgnoreVisibility'] - ignores 'hidden' state of related objects if true $params['RelatedClassIdentifiers'] - limit returned relations to objects of the specified class identifiers |
| $reverseRelatedObjects | : if "true" returns reverse related contentObjects if "false" returns related contentObjects |
Definition at line 2831 of file ezcontentobject.php.
Referenced by commitInputRelations(), embeddedContentObjectList(), linkedContentObjectList(), relatedContentObjectList(), reverseEmbeddedObjectList(), reverseLinkedObjectList(), and reverseRelatedObjectList().
| static eZContentObject::relationTypeMask | ( | $ | allRelations = false | ) | [static] |
Definition at line 2790 of file ezcontentobject.php.
Referenced by eZContentFunctionCollection\contentobjectRelationTypeMask(), relatedObjectCount(), and relatedObjects().
Get remote id of content object
Definition at line 750 of file ezcontentobject.php.
| eZContentObject::removeContentObjectRelation | ( | $ | toObjectID = false, |
| $ | fromObjectVersion = false, |
||
| $ | attributeID = 0, |
||
| $ | relationType = eZContentObject::RELATION_COMMON |
||
| ) |
Removes a link to the given content object id.
| $toObjectID | If false it will delete relations to all the objects. |
| $attributeID | ID of class attribute. IF it is > 0 we remove relations created by a specific objectrelation[list] attribute. If it is set to 0 we remove relations created without using of objectrelation[list] attribute. If it is set to false, we remove all relations, no matter how were they created: using objectrelation[list] attribute or using "Add related objects" functionality in obect editing mode. |
Definition at line 2667 of file ezcontentobject.php.
Referenced by commitInputRelations().
| eZContentObject::removeReverseRelations | ( | $ | objectID | ) |
Definition at line 1630 of file ezcontentobject.php.
| eZContentObject::removeThis | ( | $ | nodeID = null | ) |
Definition at line 1799 of file ezcontentobject.php.
| eZContentObject::removeTranslation | ( | $ | languageID | ) |
Definition at line 5682 of file ezcontentobject.php.
| static eZContentObject::removeVersions | ( | $ | versionStatus = false | ) | [static] |
Definition at line 5590 of file ezcontentobject.php.
| eZContentObject::rename | ( | $ | newName | ) |
Sets the object's name to $newName: tries to find attributes that are in 'object pattern name' and updates them.
true if object's name was changed, otherwise false. Definition at line 5600 of file ezcontentobject.php.
Definition at line 598 of file ezcontentobject.php.
Referenced by __clone().
Definition at line 2130 of file ezcontentobject.php.
Referenced by appendInputRelationList(), and validateInput().
Restores attributes for current content object when it's being restored from trash.
Definition at line 6136 of file ezcontentobject.php.
| eZContentObject::reverseEmbeddedObjectCount | ( | $ | fromObjectVersion = false | ) |
Returns the reverse xml-embedded objects count.
Definition at line 3216 of file ezcontentobject.php.
| eZContentObject::reverseEmbeddedObjectList | ( | $ | fromObjectVersion = false, |
| $ | fromObjectID = false |
||
| ) |
Returns the reverse xml-embedded objects.
Definition at line 3101 of file ezcontentobject.php.
| eZContentObject::reverseLinkedObjectCount | ( | $ | fromObjectVersion = false | ) |
Returns the reverse xml-linked objects count.
Definition at line 3205 of file ezcontentobject.php.
| eZContentObject::reverseLinkedObjectList | ( | $ | fromObjectVersion = false, |
| $ | fromObjectID = false |
||
| ) |
Returns the reverse xml-linked objects.
Definition at line 3088 of file ezcontentobject.php.
| eZContentObject::reverseRelatedObjectCount | ( | $ | version = false, |
| $ | attributeID = 0, |
||
| $ | params = false |
||
| ) |
Returns the number of objects to which this object is related.
| $attributeID | : ( makes sense only when $params['AllRelations'] not set or eZContentObject::RELATION_ATTRIBUTE ) >0 - return relations made with attribute ID ( "related object(s)" datatype ) 0 or false ( $params['AllRelations'] is eZContentObject::RELATION_ATTRIBUTE )
|
| $params | : other parameters from template fetch function : $params['AllRelations'] - relation type filter : true - return ALL relations, including attribute-level false - return object-level relations >0 - bit mask of EZ_CONTENT_OBJECT_RELATION_* values |
Definition at line 3355 of file ezcontentobject.php.
| eZContentObject::reverseRelatedObjectList | ( | $ | version = false, |
| $ | attributeID = 0, |
||
| $ | groupByAttribute = false, |
||
| $ | params = false |
||
| ) |
Returns the objects to which this object are related .
| $attributeID | : ( makes sense only when $params['AllRelations'] not set or eZContentObject::RELATION_ATTRIBUTE ) >0 - return relations made with attribute ID ( "related object(s)" datatype ) 0 or false ( $params['AllRelations'] is eZContentObject::RELATION_ATTRIBUTE )
|
| $groupByAttribute | : false - return all relations as an array of content objects true - return all relations groupped by attribute ID This parameter makes sense only when $attributeID == false or $params['AllRelations'] = true |
| $params | : other parameters from template fetch function : $params['AllRelations'] - relation type filter : true - return ALL relations, including attribute-level false - return object-level relations >0 - bit mask of EZ_CONTENT_OBJECT_RELATION_* values $params['SortBy'] - related objects sorting mode. Supported modes: class_identifier, class_name, modified, name, published, section $params['IgnoreVisibility'] - ignores 'hidden' state of related objects if true |
Definition at line 3172 of file ezcontentobject.php.
Referenced by contentObjectListRelatingThis(), and removeReverseRelations().
| eZContentObject::revertTo | ( | $ | version | ) |
Reverts the object to the given version. All versions newer then the given version will be deleted.
Definition at line 1561 of file ezcontentobject.php.
| eZContentObject::serialize | ( | $ | package, |
| $ | specificVersion = false, |
||
| $ | options = false, |
||
| $ | contentNodeIDArray = false, |
||
| $ | topNodeIDArray = false |
||
| ) |
| package | |
| Content | object version, true for current version, false for all, else array containing specific versions. |
| package | options ( optianal ) |
| array | of allowed nodes ( optional ) |
| array | of top nodes in current package export (optional ) |
Definition at line 5322 of file ezcontentobject.php.
| eZContentObject::setAlwaysAvailableLanguageID | ( | $ | languageID, |
| $ | version = false |
||
| ) |
Definition at line 5805 of file ezcontentobject.php.
| eZContentObject::setCachedName | ( | $ | name | ) |
Sets the name of the object, in memory only. Use setName() to change it.
Definition at line 417 of file ezcontentobject.php.
| eZContentObject::setClassName | ( | $ | name | ) |
Definition at line 4901 of file ezcontentobject.php.
| eZContentObject::setContentObjectAttributes | ( | &$ | attributes, |
| $ | version, | ||
| $ | language | ||
| ) |
Initializes the cached copy of the content object attributes for the given version and language
Definition at line 2045 of file ezcontentobject.php.
| eZContentObject::setCurrentLanguage | ( | $ | lang | ) |
Definition at line 2520 of file ezcontentobject.php.
| static eZContentObject::setDefaultLanguage | ( | $ | lang | ) | [static] |
Set default language. Checks if default language is valid.
| default | language. |
Definition at line 4893 of file ezcontentobject.php.
| eZContentObject::setName | ( | $ | objectName, |
| $ | versionNum = false, |
||
| $ | languageCode = false |
||
| ) |
Sets the name of the object in all translations.
Definition at line 427 of file ezcontentobject.php.
| eZContentObject::setPermissions | ( | $ | permissionArray | ) |
Sets the permissions for this object.
Definition at line 3596 of file ezcontentobject.php.
| eZContentObject::stateIDArray | ( | $ | refreshCache = false | ) |
Gets the current states of the content object.
Uses a member variable that caches the result.
| boolean | $refreshCache | if the cache in the member variable needs to be refreshed |
Definition at line 6031 of file ezcontentobject.php.
Referenced by assignState().
Definition at line 6056 of file ezcontentobject.php.
| eZContentObject::store | ( | $ | fieldFilters = null | ) |
Store the object
Reimplemented from eZPersistentObject.
Definition at line 231 of file ezcontentobject.php.
Referenced by removeThis(), removeTranslation(), revertTo(), serialize(), setAlwaysAvailableLanguageID(), and eZContentFunctions\updateAndPublishObject().
| eZContentObject::storeInput | ( | $ | contentObjectAttributes, |
| $ | attributeInputMap | ||
| ) |
Definition at line 2442 of file ezcontentobject.php.
Update all nodes to set modified_subnode value
Definition at line 287 of file ezcontentobject.php.
Referenced by store().
| static eZContentObject::translationList | ( | ) | [static] |
Definition at line 4929 of file ezcontentobject.php.
Referenced by eZContentFunctionCollection\fetchTranslationList(), eZContentObjectPackageCreator\initializeObjectLimits(), and eZContentObjectPackageCreator\loadObjectLimits().
| static eZContentObject::translationStringList | ( | ) | [static] |
Definition at line 4911 of file ezcontentobject.php.
| static eZContentObject::unserialize | ( | $ | package, |
| $ | domNode, | ||
| &$ | options, | ||
| $ | ownerID = false, |
||
| $ | handlerType = 'ezcontentobject' |
||
| ) | [static] |
Unserialize xml structure. Create object from xml input.
| package | |
| XML | DOM Node |
| parent | node object. |
| Options | |
| owner | ID, override owner ID, null to use XML owner id (optional) |
Definition at line 4981 of file ezcontentobject.php.
Referenced by checkAccess(), classListFromPolicy(), and eZContentObjectPackageHandler\installContentObjects().
| eZContentObject::validateInput | ( | $ | contentObjectAttributes, |
| $ | attributeDataBaseName, | ||
| $ | inputParameters = false, |
||
| $ | parameters = array() |
||
| ) |
Definition at line 2185 of file ezcontentobject.php.
| eZContentObject::version | ( | $ | version, |
| $ | asObject = true |
||
| ) |
Returns the given object version. False is returned if the versions does not exist.
Definition at line 1102 of file ezcontentobject.php.
Referenced by createNewVersion(), and serialize().
| eZContentObject::versionLanguageName | ( | $ | version, |
| $ | lang = false |
||
| ) |
Definition at line 339 of file ezcontentobject.php.
Referenced by name().
| eZContentObject::versions | ( | $ | asObject = true, |
| $ | parameters = array() |
||
| ) |
Returns an array of eZContentObjectVersion for the current object according to the conditions in $parameters.
| boolean | $asObject | |
| array | $parameters |
Definition at line 1135 of file ezcontentobject.php.
Referenced by cleanupInternalDrafts(), copy(), createNewVersion(), hasRemainingVersions(), postUnserialize(), removeTranslation(), and serialize().
| eZContentObject::$ClassIdentifier |
Cached class identifier.
Definition at line 6166 of file ezcontentobject.php.
| eZContentObject::$ClassName |
Stores the current class name.
Definition at line 6163 of file ezcontentobject.php.
| eZContentObject::$ContentActionList = false |
Contains an array of the content object actions for the current object.
Definition at line 6172 of file ezcontentobject.php.
| eZContentObject::$ContentObjectAttributes = array() |
Contains a cached version of the content object attributes for the given version and language.
Definition at line 6175 of file ezcontentobject.php.
| eZContentObject::$CurrentLanguage |
Stores the current language.
Definition at line 6160 of file ezcontentobject.php.
| eZContentObject::$DataMap = array() |
Contains the datamap for content object attributes.
Definition at line 6169 of file ezcontentobject.php.
| eZContentObject::$ID |
Definition at line 6156 of file ezcontentobject.php.
| eZContentObject::$InputRelationList = array() |
Contains the arrays of relatedobject id by fetching input for this object.
Definition at line 6181 of file ezcontentobject.php.
| eZContentObject::$MainNodeID = false |
Contains the main node id for this object.
Definition at line 6178 of file ezcontentobject.php.
| eZContentObject::$Name |
Definition at line 6157 of file ezcontentobject.php.
eZContentObject::$StateIDArray = false [private] |
Definition at line 6189 of file ezcontentobject.php.
| const eZContentObject::PACKAGE_DELETE = 4 |
Definition at line 39 of file ezcontentobject.php.
Referenced by eZContentObjectPackageHandler\uninstall().
| const eZContentObject::PACKAGE_ERROR_EXISTS = 2 |
Definition at line 29 of file ezcontentobject.php.
Referenced by eZContentObjectTreeNode\unserialize().
| const eZContentObject::PACKAGE_ERROR_HAS_CHILDREN = 102 |
Definition at line 32 of file ezcontentobject.php.
Referenced by eZContentObjectPackageHandler\uninstall().
| const eZContentObject::PACKAGE_ERROR_MODIFIED = 101 |
Definition at line 31 of file ezcontentobject.php.
Referenced by eZContentObjectPackageHandler\uninstall().
| const eZContentObject::PACKAGE_ERROR_NO_CLASS = 1 |
Definition at line 28 of file ezcontentobject.php.
Definition at line 30 of file ezcontentobject.php.
Referenced by eZContentObjectTreeNode\unserialize().
| const eZContentObject::PACKAGE_KEEP = 5 |
Definition at line 40 of file ezcontentobject.php.
Referenced by eZContentObjectPackageHandler\uninstall().
| const eZContentObject::PACKAGE_NEW = 3 |
Definition at line 36 of file ezcontentobject.php.
Referenced by eZContentObjectTreeNode\unserialize().
| const eZContentObject::PACKAGE_REPLACE = 1 |
Definition at line 34 of file ezcontentobject.php.
| const eZContentObject::PACKAGE_SKIP = 2 |
Definition at line 35 of file ezcontentobject.php.
| const eZContentObject::PACKAGE_UPDATE = 6 |
Definition at line 37 of file ezcontentobject.php.
Referenced by eZContentObjectTreeNode\unserialize().
| const eZContentObject::RELATION_ATTRIBUTE = 8 |
Definition at line 45 of file ezcontentobject.php.
Referenced by addContentObjectRelation(), eZContentCacheManager\appendRelatingNodeIDs(), eZContentFunctionCollection\contentobjectRelationTypeMask(), relatedObjectCount(), relatedObjects(), relationTypeMask(), eZObjectRelationType\removeContentObjectRelation(), removeContentObjectRelation(), eZObjectRelationType\storeObjectAttribute(), and eZObjectRelationListType\storeObjectAttribute().
| const eZContentObject::RELATION_COMMON = 1 |
Definition at line 42 of file ezcontentobject.php.
Referenced by addContentObjectRelation(), eZContentCacheManager\appendRelatingNodeIDs(), checkRelationAssignments(), eZContentFunctionCollection\contentobjectRelationTypeMask(), handleRelationTemplate(), relationTypeMask(), and eZContentObjectVersion\serialize().
| const eZContentObject::RELATION_EMBED = 2 |
Definition at line 43 of file ezcontentobject.php.
Referenced by addContentObjectRelation(), eZContentCacheManager\appendRelatingNodeIDs(), eZContentFunctionCollection\contentobjectRelationTypeMask(), embeddedContentObjectCount(), embeddedContentObjectList(), handleRelationTemplate(), relationTypeMask(), resetInputRelationList(), reverseEmbeddedObjectCount(), reverseEmbeddedObjectList(), eZXMLTextType\transformRemoteLinksToLinks(), and eZSimplifiedXMLInput\validateInput().
| const eZContentObject::RELATION_LINK = 4 |
Definition at line 44 of file ezcontentobject.php.
Referenced by addContentObjectRelation(), eZContentCacheManager\appendRelatingNodeIDs(), eZContentFunctionCollection\contentobjectRelationTypeMask(), handleRelationTemplate(), linkedContentObjectCount(), linkedContentObjectList(), relationTypeMask(), resetInputRelationList(), reverseLinkedObjectCount(), reverseLinkedObjectList(), eZXMLTextType\transformRemoteLinksToLinks(), and eZSimplifiedXMLInput\validateInput().
| const eZContentObject::STATUS_ARCHIVED = 2 |
Definition at line 26 of file ezcontentobject.php.
Referenced by eZSectionFunctionCollection\fetchObjectList(), eZSectionFunctionCollection\fetchObjectListCount(), and removeThis().
| const eZContentObject::STATUS_DRAFT = 0 |
Definition at line 24 of file ezcontentobject.php.
Referenced by checkNodeActions(), checkNodeAssignments(), checkNodeMovements(), copy(), storeNodeAssignments(), and eZObjectRelationListType\storeObjectAttribute().
| const eZContentObject::STATUS_PUBLISHED = 1 |
Definition at line 25 of file ezcontentobject.php.
Referenced by eZUser\_loginUser(), copyVersion(), updateNodeAssignment\execute(), eZUser\fetchContentList(), eZSectionFunctionCollection\fetchObjectList(), eZSectionFunctionCollection\fetchObjectListCount(), fetchPathIdentificationStringChunk(), fetchPathIdentificationStringCount(), eZXHTMLXMLOutput\initHandlerEmbed(), eZLDAPUser\loginUser(), eZTextFileUser\loginUser(), eZContentClass\objectCount(), eZObjectRelationListType\onPublish(), relatedObjectCount(), relatedObjects(), and eZContentOperationCollection\setObjectStatusPublished().