kernel/classes/ezcontentobject.php

Show: inherited
Table of Contents

File containing the eZContentObject class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Version
4.6.0  

\eZContentObject

Package: kernel

File containing the eZContentObject class.

Parent(s)
\eZPersistentObject
Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Version
4.6.0  

Constants

Constant  STATUS_DRAFT = 0
Constant  STATUS_PUBLISHED = 1
Constant  STATUS_ARCHIVED = 2
Constant  PACKAGE_ERROR_NO_CLASS = 1
Constant  PACKAGE_ERROR_EXISTS = 2
Constant  PACKAGE_ERROR_NODE_EXISTS = 3
Constant  PACKAGE_ERROR_MODIFIED = 101
Constant  PACKAGE_ERROR_HAS_CHILDREN = 102
Constant  PACKAGE_REPLACE = 1
Constant  PACKAGE_SKIP = 2
Constant  PACKAGE_NEW = 3
Constant  PACKAGE_UPDATE = 6
Constant  PACKAGE_DELETE = 4
Constant  PACKAGE_KEEP = 5
Constant  RELATION_COMMON = 1
Constant  RELATION_EMBED = 2
Constant  RELATION_LINK = 4
Constant  RELATION_ATTRIBUTE = 8

Properties

Propertypublic  $ClassIdentifier= ''
Details
Type
n/a
Propertypublic  $ClassName= ''
Details
Type
n/a
Propertypublic  $ContentActionList= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $ContentObjectAttributes= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $CurrentLanguage= ''
Details
Type
n/a
Propertypublic  $DataMap= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $ID= ''
Details
Type
n/a
Propertypublic  $InputRelationList= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $MainNodeID= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $Name= ''
Details
Type
n/a
Propertypublic  $PersistentDataDirty= ''
Details
Type
n/a
Inherited_from
\eZPersistentObject::$$PersistentDataDirty  
Propertyprivatearray  $StateIDArray= 'false'

Cache for the state ID array

Default valuefalseDetails
Type
array
See
\eZContentObject::stateIDArray()  

Methods

methodpublic__clone( ) : void

methodpublicaccessList(  $function ) : void

Parameters
Name Type Description
$function
methodpublicaddContentObjectRelation(  $toObjectID,  $fromObjectVersion = false,  $attributeID = 0,  $relationType = eZContentObject::RELATION_COMMON ) : void

Parameters
Name Type Description
$toObjectID
$fromObjectVersion
$attributeID
$relationType
methodpublicaddLocation(  $parentNodeID,  $asObject = false ) : void

Parameters
Name Type Description
$parentNodeID
$asObject
methodpublicallContentObjectAttributes(  $contentObjectID,  $asObject = true ) : void

Parameters
Name Type Description
$contentObjectID
$asObject
methodpublicallLanguages( ) : void

methodpublicallowedAssignSectionList( ) : void

methodpublicallowedAssignStateIDList( \eZUser $user = null ) : array

Gets a list of states a user is allowed to put the content object in.

Parameters
Name Type Description
$user \eZUser

the user to check the policies of, when omitted the currently logged in user will be used

Returns
Type Description
array the IDs of all states we are allowed to set
methodpublicallowedAssignStateList(  $user = null ) : void

Parameters
Name Type Description
$user
methodpublicappendInputRelationList(  $addingIDList,  $relationType ) : void

Parameters
Name Type Description
$addingIDList
$relationType
methodpublicassignDefaultStates( ) : void

Sets the default states of a content object.

This function is called upon instantiating a content object with {@link eZContentClass::instantiate()}, so should normally not be called by any other code.

methodpublicassignState( \eZContentObjectState $state ) : boolean

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).

Parameters
Name Type Description
$state \eZContentObjectState
Returns
Type Description
boolean true when the state was set, false if the state equals the current state
methodpublicassignedNodes(  $asObject = true ) : void

Parameters
Name Type Description
$asObject
methodpublicattribute(  $attr,  $noFunction = false ) : void
inherited

Inherited from: \eZPersistentObject::attribute()
Parameters
Name Type Description
$attr
$noFunction
methodpublicattributes( ) : void
inherited

Inherited from: \eZPersistentObject::attributes()
methodpublicauthorArray( ) : void

methodpublicavailableLanguages( ) : void

methodpublicavailableLanguagesJsArray( ) : void

methodpubliccacheInfo(  $Params ) : void

Parameters
Name Type Description
$Params
methodpubliccanCreate( ) : void

methodpubliccanCreateClassList(  $asObject = false,  $includeFilter = true,  $groupList = false,  $fetchID = false ) : void

Parameters
Name Type Description
$asObject
$includeFilter
$groupList
$fetchID
methodpubliccanCreateLanguages( ) : void

methodpubliccanDiff( ) : void

methodpubliccanEdit(  $originalClassID = false,  $parentClassID = false,  $returnAccessList = false,  $language = false ) : void

Parameters
Name Type Description
$originalClassID
$parentClassID
$returnAccessList
$language
methodpubliccanEditLanguages( ) : void

methodpubliccanMove( ) : void

methodpubliccanMoveFrom( ) : void

methodpubliccanPdf( ) : void

methodpubliccanRead( ) : void

methodpubliccanRemove( ) : void

methodpubliccanTranslate( ) : void

methodpubliccanViewEmbed( ) : void

methodpubliccheckAccess(  $functionName,  $originalClassID = false,  $parentClassID = false,  $returnAccessList = false,  $language = false ) : void

Parameters
Name Type Description
$functionName
$originalClassID
$parentClassID
$returnAccessList
$language
methodpubliccheckGroupLimitationAccess(  $limitationValueList,  $userID,  $contentObjectID = false ) : void

Parameters
Name Type Description
$limitationValueList
$userID
$contentObjectID
methodpublicclassListFromPolicy(  $policy,  $allowedLanguageCodes = false ) : void

Parameters
Name Type Description
$policy
$allowedLanguageCodes
methodpublicclassName( ) : void

methodpubliccleanupAllInternalDrafts(  $userID = false,  $timeDuration = 86400 ) : void
static

Parameters
Name Type Description
$userID
$timeDuration
methodpubliccleanupInternalDrafts(  $userID = false,  $timeDuration = 86400 ) : void

Parameters
Name Type Description
$userID
$timeDuration
methodpublicclearCache(  $idArray = array() ) : void
static

Parameters
Name Type Description
$idArray
methodpubliccommitInputRelations(  $editVersion ) : void

Parameters
Name Type Description
$editVersion
methodpublicconditionText(  $conditions ) : void
staticinherited

Inherited from: \eZPersistentObject::conditionText()
Parameters
Name Type Description
$conditions
methodpublicconditionTextByRow(  $conditions,  $row ) : void
staticinherited

Inherited from: \eZPersistentObject::conditionTextByRow()
Parameters
Name Type Description
$conditions
$row
methodpubliccontentActionList( ) : void

methodpubliccontentClass( ) : void

methodpubliccontentClassGroupIDList( ) : void

methodpubliccontentClassIdentifier( ) : void

methodpubliccontentObjectAttributes(  $asObject = true,  $version = false,  $language = false,  $contentObjectAttributeID = false,  $distinctItemsOnly = false ) : void

Parameters
Name Type Description
$asObject
$version
$language
$contentObjectAttributeID
$distinctItemsOnly
methodpubliccontentObjectListRelatingThis(  $version = false ) : void

Parameters
Name Type Description
$version
methodpubliccopy(  $allVersions = true ) : void

Parameters
Name Type Description
$allVersions
methodpubliccopyContentObjectRelations(  $currentVersion,  $newVersion,  $newObjectID = false ) : void

Parameters
Name Type Description
$currentVersion
$newVersion
$newObjectID
methodpubliccopyRevertTo(  $version,  $language = false ) : void

Parameters
Name Type Description
$version
$language
methodpubliccopyVersion(  $newObject,  $version,  $newVersionNumber,  $contentObjectID = false,  $status = eZContentObjectVersion::STATUS_DRAFT,  $languageCode = false,  $copyFromLanguageCode = false ) : void

Parameters
Name Type Description
$newObject
$version
$newVersionNumber
$contentObjectID
$status
$languageCode
$copyFromLanguageCode
methodpubliccount(  $def,  $conds = null,  $field = null ) : void
staticinherited

Inherited from: \eZPersistentObject::count()
Parameters
Name Type Description
$def
$conds
$field
methodpubliccreate(  $name,  $contentclassID,  $userID,  $sectionID = 1,  $version = 1,  $languageCode = false ) : void
static

Parameters
Name Type Description
$name
$contentclassID
$userID
$sectionID
$version
$languageCode
methodpubliccreateFetchSQLString(  $id ) : void
static

Parameters
Name Type Description
$id
methodpubliccreateFilterByVisibilitySQLString( bool $IgnoreVisibility = false, string $ezcontentobjectTable = 'ezcontentobject' ) : string
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.

Parameters
Name Type Description
$IgnoreVisibility bool

ignores visibility if true

$ezcontentobjectTable string

name of ezcontentobject table used in sql

Returns
Type Description
string with sql condition for node filtering by visibility
Details
Since
Version 4.1  
Static
 
methodpubliccreateGroupedDataMap( array $contentObjectAttributes ) : array
static

Generates a map with all the content object attributes where the keys are the attribute identifiers grouped by class attribute category.

Parameters
Name Type Description
$contentObjectAttributes array

Array of eZContentObjectAttribute objects

Returns
Type Description
array
Details
Note
Result is not cached, so make sure you don't call this over and over.  
methodpubliccreateInitialVersion(  $userID,  $initialLanguageCode = false ) : void

Parameters
Name Type Description
$userID
$initialLanguageCode
methodpubliccreateNewVersion(  $copyFromVersion = false,  $versionCheck = true,  $languageCode = false,  $copyFromLanguageCode = false,  $status = eZContentObjectVersion::STATUS_DRAFT ) : void

Parameters
Name Type Description
$copyFromVersion
$versionCheck
$languageCode
$copyFromLanguageCode
$status
methodpubliccreateNewVersionIn(  $languageCode,  $copyFromLanguageCode = false,  $copyFromVersion = false,  $versionCheck = true,  $status = eZContentObjectVersion::STATUS_DRAFT ) : void

Parameters
Name Type Description
$languageCode
$copyFromLanguageCode
$copyFromVersion
$versionCheck
$status
methodpubliccreateNodeAssignment(  $parentNodeID,  $isMain,  $remoteID = false,  $sortField = eZContentObjectTreeNode::SORT_FIELD_PUBLISHED,  $sortOrder = eZContentObjectTreeNode::SORT_ORDER_DESC ) : void

Parameters
Name Type Description
$parentNodeID
$isMain
$remoteID
$sortField
$sortOrder
methodpubliccreateWithNodeAssignment(  $parentNode,  $contentClassID,  $languageCode,  $remoteID = false ) : void
static

Parameters
Name Type Description
$parentNode
$contentClassID
$languageCode
$remoteID
methodpubliccurrentLanguage( ) : void

methodpubliccurrentLanguageObject( ) : void

methodpubliccurrentVersion(  $asObject = true ) : void

Parameters
Name Type Description
$asObject
methodpublicdataMap( ) : void

methodpublicdefaultLanguage( ) : void
static

methodpublicdefinition( ) : void
static

methodpubliceZContentObject(  $row ) : void

Parameters
Name Type Description
$row
methodpubliceZPersistentObject(  $row ) : void
inherited

Inherited from: \eZPersistentObject::eZPersistentObject()
Parameters
Name Type Description
$row
methodpublicembeddedContentObjectCount(  $fromObjectVersion = false ) : void

Parameters
Name Type Description
$fromObjectVersion
methodpublicembeddedContentObjectList(  $fromObjectVersion = false,  $fromObjectID = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$fromObjectID
methodpublicescapeArray(  $array ) : void
staticinherited

Inherited from: \eZPersistentObject::escapeArray()
Parameters
Name Type Description
$array
methodpublicexists(  $id ) : void
static

Parameters
Name Type Description
$id
methodpublicexpireAllCache( ) : void
static

methodpublicexpireAllViewCache( ) : void
static

methodpublicexpireComplexViewModeCache( ) : void
static

methodpublicexpireTemplateBlockCache( ) : void
static

methodpublicexpireTemplateBlockCacheIfNeeded( ) : void
static

methodpublicfetch( int $id, bool $asObject = true ) : \eZContentObject
static

Fetches a content object by ID

Parameters
Name Type Description
$id int

ID of the content object to fetch

$asObject bool

Return the result as an object (true) or an assoc. array (false)

Returns
Type Description
\eZContentObject
methodpublicfetchAttributesByIdentifier(  $identifierArray,  $version = false,  $languageArray = false,  $asObject = true ) : void

Parameters
Name Type Description
$identifierArray
$version
$languageArray
$asObject
methodpublicfetchByNodeID( int | array $nodeID, bool $asObject = true ) : mixed
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

Parameters
Name Type Description
$nodeID int | array

Single nodeID or array of NodeIDs

$asObject bool

If results have to be returned as eZContentObject instances or not

Returns
Type Description
mixed Content object or array of content objects. Content objects can be eZContentObject instances or array result sets
methodpublicfetchByRemoteID(  $remoteID,  $asObject = true ) : void
static

Parameters
Name Type Description
$remoteID
$asObject
methodpublicfetchClassAttributes(  $version = 0,  $asObject = true ) : void

Parameters
Name Type Description
$version
$asObject
methodpublicfetchDataMap(  $version = false,  $language = false ) : void

Parameters
Name Type Description
$version
$language
methodpublicfetchFilteredList(  $conditions = null,  $offset = false,  $limit = false,  $asObject = true ) : void
static

Parameters
Name Type Description
$conditions
$offset
$limit
$asObject
methodpublicfetchIDArray( array $idArray, bool $asObject = true ) : \array(contentObjectID
static

Fetches a content object list based on an array of content object ids

Parameters
Name Type Description
$idArray array

array of content object ids

$asObject bool

Wether to get the result as an array of eZContentObject or an array of associative arrays

Returns
Type Description
\array(contentObjectID => eZContentObject|array) array of eZContentObject (if $asObject = true) or array of associative arrays (if $asObject = false)
methodpublicfetchInput(  $contentObjectAttributes,  $attributeDataBaseName,  $customActionAttributeArray,  $customActionParameters ) : void

Parameters
Name Type Description
$contentObjectAttributes
$attributeDataBaseName
$customActionAttributeArray
$customActionParameters
methodpublicfetchList(  $asObject = true,  $conditions = null,  $offset = false,  $limit = false ) : void
static

Parameters
Name Type Description
$asObject
$conditions
$offset
$limit
methodpublicfetchListCount(  $conditions = null ) : void
static

Parameters
Name Type Description
$conditions
methodpublicfetchObject(  $def,  $field_filters,  $conds,  $asObject = true,  $grouping = null,  $custom_fields = null ) : void
staticinherited

Inherited from: \eZPersistentObject::fetchObject()
Parameters
Name Type Description
$def
$field_filters
$conds
$asObject
$grouping
$custom_fields
methodpublicfetchObjectCountByUserID(  $classID,  $userID,  $status = false ) : void
static

Parameters
Name Type Description
$classID
$userID
$status
methodpublicfetchObjectList(  $def,  $field_filters = null,  $conds = null,  $sorts = null,  $limit = null,  $asObject = true,  $grouping = false,  $custom_fields = null,  $custom_tables = null,  $custom_conds = null ) : void
staticinherited

Inherited from: \eZPersistentObject::fetchObjectList()
Parameters
Name Type Description
$def
$field_filters
$conds
$sorts
$limit
$asObject
$grouping
$custom_fields
$custom_tables
$custom_conds
methodpublicfetchSameClassList(  $contentClassID,  $asObject = true,  $offset = false,  $limit = false ) : void
static

Parameters
Name Type Description
$contentClassID
$asObject
$offset
$limit
methodpublicfetchSameClassListCount(  $contentClassID ) : void
static

Parameters
Name Type Description
$contentClassID
methodpublicfill(  $row ) : void
inherited

Inherited from: \eZPersistentObject::fill()
Parameters
Name Type Description
$row
methodpublicfillNodeListAttributes(  $objList,  $asObject = true ) : void
static

Parameters
Name Type Description
$objList
$asObject
methodpublicfixReverseRelations(  $objectID,  $mode = false ) : void
static

Parameters
Name Type Description
$objectID
$mode
methodpublicfixupInput(  $contentObjectAttributes,  $attributeDataBaseName ) : void

Parameters
Name Type Description
$contentObjectAttributes
$attributeDataBaseName
methodpublicgetShortAttributeName(  $db,  $def,  $attrName ) : void
staticinherited

Inherited from: \eZPersistentObject::getShortAttributeName()
Parameters
Name Type Description
$db
$def
$attrName
methodpublicgetVersionCount( ) : void

methodpublicgroupedDataMap( ) : array

Generates a map with all the content object attributes where the keys are the attribute identifiers grouped by class attribute category.

Returns
Type Description
array
Details
Note
Result is not cached, so make sure you don't call this over and over.  
methodpublichandleAllCustomHTTPActions(  $attributeDataBaseName,  $customActionAttributeArray,  $customActionParameters,  $objectVersion = false ) : void

Parameters
Name Type Description
$attributeDataBaseName
$customActionAttributeArray
$customActionParameters
$objectVersion
methodpublichandleCustomHTTPActions(  $contentObjectAttribute,  $attributeDataBaseName,  $customActionAttributeArray,  $customActionParameters ) : void

Parameters
Name Type Description
$contentObjectAttribute
$attributeDataBaseName
$customActionAttributeArray
$customActionParameters
methodpublichandleRows(  $rows,  $class_name,  $asObject ) : void
staticinherited

Inherited from: \eZPersistentObject::handleRows()
Parameters
Name Type Description
$rows
$class_name
$asObject
methodpublichasAttribute(  $attr ) : void
inherited

Inherited from: \eZPersistentObject::hasAttribute()
Parameters
Name Type Description
$attr
methodpublichasContentAction(  $name ) : void

Parameters
Name Type Description
$name
methodpublichasDirtyData( ) : void
inherited

Inherited from: \eZPersistentObject::hasDirtyData()
methodpublichasRemainingVersions( ) : void

methodpublicinitialLanguage( ) : void

methodpublicinitialLanguageCode( ) : void

methodpublicisAlwaysAvailable( ) : void

methodpublicisCacheExpired(  $timestamp ) : void
static

Parameters
Name Type Description
$timestamp
methodpublicisComplexViewMode(  $viewMode ) : void
static

Parameters
Name Type Description
$viewMode
methodpublicisComplexViewModeCacheExpired(  $viewMode,  $timestamp ) : void
static

Parameters
Name Type Description
$viewMode
$timestamp
methodpublicisObjectRelationTyped( ) : void
static

methodpubliclanguages( ) : void

methodpubliclinkedContentObjectCount(  $fromObjectVersion = false ) : void

Parameters
Name Type Description
$fromObjectVersion
methodpubliclinkedContentObjectList(  $fromObjectVersion = false,  $fromObjectID = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$fromObjectID
methodpublicmainNode( ) : void

methodpublicmainNodeID( ) : void

methodpublicmainParentNodeID( ) : void

methodpublicmapLanguage(  $language,  $options ) : void
static

Parameters
Name Type Description
$language
$options
methodpublicmatchIngroupIDList( ) : void

methodpublicname(  $version = false,  $lang = false ) : void

Parameters
Name Type Description
$version
$lang
methodpublicnames( ) : void

methodpublicnewObjectOrder(  $def,  $orderField,  $conditions ) : void
staticinherited

Inherited from: \eZPersistentObject::newObjectOrder()
Parameters
Name Type Description
$def
$orderField
$conditions
methodpublicnextVersion( ) : void

methodpublicowner( ) : void

methodpublicparentNodeIDArray( ) : void

methodpublicparentNodes(  $version = false,  $asObject = true ) : void

Parameters
Name Type Description
$version
$asObject
methodpublicpermissions( ) : void

methodpublicpostUnserialize(  $package ) : void

Parameters
Name Type Description
$package
methodpublicpreviousVersion( ) : void

methodpublicpublishContentObjectRelations(  $version ) : void

Parameters
Name Type Description
$version
methodpublicpurge( ) : void

methodpublicrecursionProtect(  $id ) : void
static

Parameters
Name Type Description
$id
methodpublicrecursionProtectionEnd( ) : void
static

methodpublicrecursionProtectionStart( ) : void
static

methodpublicrelatedContentObjectArray(  $fromObjectVersion = false,  $fromObjectID = false,  $attributeID = 0,  $params = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$fromObjectID
$attributeID
$params
methodpublicrelatedContentObjectCount(  $fromObjectVersion = false,  $attributeID = 0,  $params = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$attributeID
$params
methodpublicrelatedContentObjectList(  $fromObjectVersion = false,  $fromObjectID = false,  $attributeID = 0,  $groupByAttribute = false,  $params = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$fromObjectID
$attributeID
$groupByAttribute
$params
methodpublicrelatedObjectCount( int $version = false, int $attributeID = 0, int | false $reverseRelatedObjects = false, array | false $params = false ) : int

Fetch the number of (reverse) related objects

Parameters
Name Type Description
$version int
$attributeID int

This parameter only makes sense if $params[AllRelations] is unset, set to false, or matches eZContentObject::RELATION_ATTRIBUTE Possible values: - 0 or false: Count relations made with any attribute - >0 Count relations made with attribute $attributeID

$reverseRelatedObjects int | false

Wether to count related objects (false) or reverse related objects (false)

$params array | false

Various params, as an associative array. Possible values: - AllRelations (bool|int) true: count ALL relations, object and attribute level false: only count object level relations other: bit mask of eZContentObject::RELATION_* constants - IgnoreVisibility (bool) If true, 'hidden' status will be ignored

Returns
Type Description
int The number of (reverse) related objects for the object
methodpublicrelatedObjects(  $fromObjectVersion = false,  $objectID = false,  $attributeID = 0,  $groupByAttribute = false,  $params = false,  $reverseRelatedObjects = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$objectID
$attributeID
$groupByAttribute
$params
$reverseRelatedObjects
methodpublicrelationTypeMask(  $allRelations = false ) : void
static

Parameters
Name Type Description
$allRelations
methodpublicremoteID( ) : void

methodpublicremove(  $conditions = null,  $extraConditions = null ) : void
inherited

Inherited from: \eZPersistentObject::remove()
Parameters
Name Type Description
$conditions
$extraConditions
methodpublicremoveContentObjectRelation(  $toObjectID = false,  $fromObjectVersion = false,  $attributeID = 0,  $relationType = eZContentObject::RELATION_COMMON ) : void

Parameters
Name Type Description
$toObjectID
$fromObjectVersion
$attributeID
$relationType
methodpublicremoveObject(  $def,  $conditions = null,  $extraConditions = null ) : void
staticinherited

Inherited from: \eZPersistentObject::removeObject()
Parameters
Name Type Description
$def
$conditions
$extraConditions
methodpublicremoveReverseRelations(  $objectID ) : void

Parameters
Name Type Description
$objectID
methodpublicremoveThis(  $nodeID = null ) : void

Parameters
Name Type Description
$nodeID
methodpublicremoveTranslation(  $languageID ) : void

Parameters
Name Type Description
$languageID
methodpublicremoveVersions(  $versionStatus = false ) : void
static

Parameters
Name Type Description
$versionStatus
methodpublicrename(  $newName ) : void

Parameters
Name Type Description
$newName
methodpublicreorderObject(  $def,  $orderField,  $conditions,  $down = true ) : void
staticinherited

Inherited from: \eZPersistentObject::reorderObject()
Parameters
Name Type Description
$def
$orderField
$conditions
$down
methodpublicreplaceFieldsWithShortNames(  $db,  $fieldDefs,  $fields ) : void
staticinherited

Inherited from: \eZPersistentObject::replaceFieldsWithShortNames()
Parameters
Name Type Description
$db
$fieldDefs
$fields
methodpublicresetDataMap( ) : void

methodpublicresetInputRelationList( ) : void

methodpublicrestoreObjectAttributes( ) : void

Restores attributes for current content object when it's being restored from trash

methodpublicreverseEmbeddedObjectCount(  $fromObjectVersion = false ) : void

Parameters
Name Type Description
$fromObjectVersion
methodpublicreverseEmbeddedObjectList(  $fromObjectVersion = false,  $fromObjectID = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$fromObjectID
methodpublicreverseLinkedObjectCount(  $fromObjectVersion = false ) : void

Parameters
Name Type Description
$fromObjectVersion
methodpublicreverseLinkedObjectList(  $fromObjectVersion = false,  $fromObjectID = false ) : void

Parameters
Name Type Description
$fromObjectVersion
$fromObjectID
methodpublicreverseRelatedObjectCount(  $version = false,  $attributeID = 0,  $params = false ) : void

Parameters
Name Type Description
$version
$attributeID
$params
methodpublicreverseRelatedObjectList(  $version = false,  $attributeID = 0,  $groupByAttribute = false,  $params = false ) : void

Parameters
Name Type Description
$version
$attributeID
$groupByAttribute
$params
methodpublicrevertTo(  $version ) : void

Parameters
Name Type Description
$version
methodpublicserialize(  $package,  $specificVersion = false,  $options = false,  $contentNodeIDArray = false,  $topNodeIDArray = false ) : void

Parameters
Name Type Description
$package
$specificVersion
$options
$contentNodeIDArray
$topNodeIDArray
methodpublicsetAlwaysAvailableLanguageID(  $languageID,  $version = false ) : void

Parameters
Name Type Description
$languageID
$version
methodpublicsetAttribute(  $attr,  $val ) : void
inherited

Inherited from: \eZPersistentObject::setAttribute()
Parameters
Name Type Description
$attr
$val
methodpublicsetCachedName(  $name ) : void

Parameters
Name Type Description
$name
methodpublicsetClassName(  $name ) : void

Parameters
Name Type Description
$name
methodpublicsetContentObjectAttributes(  $attributes,  $version,  $language ) : void

Parameters
Name Type Description
$attributes
$version
$language
methodpublicsetCurrentLanguage(  $lang ) : void

Parameters
Name Type Description
$lang
methodpublicsetDefaultLanguage(  $lang ) : void
static

Parameters
Name Type Description
$lang
methodpublicsetHasDirtyData(  $hasDirtyData ) : void
inherited

Inherited from: \eZPersistentObject::setHasDirtyData()
Parameters
Name Type Description
$hasDirtyData
methodpublicsetName(  $objectName,  $versionNum = false,  $languageCode = false ) : void

Parameters
Name Type Description
$objectName
$versionNum
$languageCode
methodpublicsetPermissions(  $permissionArray ) : void

Parameters
Name Type Description
$permissionArray
methodpublicstateIDArray( boolean $refreshCache = false ) : array

Gets the current states of the content object.

Uses a member variable that caches the result.

Parameters
Name Type Description
$refreshCache boolean

if the cache in the member variable needs to be refreshed

Returns
Type Description
array an associative array with state group id => state id pairs
methodpublicstateIdentifierArray( ) : void

methodpublicstore(  $fieldFilters = null ) : void

Parameters
Name Type Description
$fieldFilters
methodpublicstoreInput(  $contentObjectAttributes,  $attributeInputMap ) : void

Parameters
Name Type Description
$contentObjectAttributes
$attributeInputMap
methodpublicstoreNodeModified( ) : void

methodpublicstoreObject(  $obj,  $fieldFilters = null ) : void
staticinherited

Inherited from: \eZPersistentObject::storeObject()
Parameters
Name Type Description
$obj
$fieldFilters
methodpublicswapRow(  $table,  $keys,  $order_id,  $rows,  $id1,  $id2 ) : void
staticinherited

Inherited from: \eZPersistentObject::swapRow()
Parameters
Name Type Description
$table
$keys
$order_id
$rows
$id1
$id2
methodpublicsync(  $fieldFilters = null ) : void
inherited

Inherited from: \eZPersistentObject::sync()
Parameters
Name Type Description
$fieldFilters
methodpublictranslationList( ) : void
static

methodpublictranslationStringList( ) : void
static

methodpublicunserialize(  $package,  $domNode,  $options,  $ownerID = false,  $handlerType = 'ezcontentobject' ) : void
static

Parameters
Name Type Description
$package
$domNode
$options
$ownerID
$handlerType
methodpublicupdateObjectList(  $parameters ) : void
staticinherited

Inherited from: \eZPersistentObject::updateObjectList()
Parameters
Name Type Description
$parameters
methodpublicvalidateInput(  $contentObjectAttributes,  $attributeDataBaseName,  $inputParameters = false,  $parameters = array() ) : void

Parameters
Name Type Description
$contentObjectAttributes
$attributeDataBaseName
$inputParameters
$parameters
methodpublicversion(  $version,  $asObject = true ) : void

Parameters
Name Type Description
$version
$asObject
methodpublicversionLanguageName(  $version,  $lang = false ) : void

Parameters
Name Type Description
$version
$lang
methodpublicversions( boolean $asObject = true, array $parameters = array() ) : array

Returns an array of eZContentObjectVersion for the current object according to the conditions in $parameters.

Parameters
Name Type Description
$asObject boolean
$parameters array
Returns
Type Description
array
Documentation was generated by DocBlox 0.18.1.