kernel/classes/ezcontentclass.php

Show: inherited
Table of Contents

File containing the eZContentClass 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  

\eZContentClass

Package: kernel

File containing the eZContentClass 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  VERSION_STATUS_DEFINED = 0
Constant  VERSION_STATUS_TEMPORARY = 1
Constant  VERSION_STATUS_MODIFIED = 2
Constantint  CONTENT_OBJECT_NAME_MAX_LENGTH = 255

Max length of content object name.

int

Properties

Propertypublic  $AllGroups= ''
Details
Type
n/a
Propertypublic  $CanInstantiateLanguages= ''
Details
Type
n/a
Propertypublic  $ContentObjectName= ''
Details
Type
n/a
Propertypublic  $Created= ''
Details
Type
n/a
Propertypublic  $CreatorID= ''
Details
Type
n/a
Propertypublic  $DescriptionList= ''
Details
Type
n/a
Propertypublic  $ID= ''
Details
Type
n/a
Propertypublic  $Identifier= ''
Details
Type
n/a
Propertypublic  $InGroups= ''
Details
Type
n/a
Propertypublic  $IsContainer= ''
Details
Type
n/a
Propertypublic  $LanguageMask= ''
Details
Type
n/a
Propertypublic  $Modified= ''
Details
Type
n/a
Propertypublic  $ModifierID= ''
Details
Type
n/a
Propertypublic  $NameList= ''
Details
Type
n/a
Propertypublic  $PersistentDataDirty= ''
Details
Type
n/a
Inherited_from
\eZPersistentObject::$$PersistentDataDirty  
Propertypublic  $SerializedNameList= ''
Details
Type
n/a
Propertypublic  $Version= ''
Details
Type
n/a
Propertypublic  $VersionCount= ''
Details
Type
n/a
Propertyprivate  $identifierHash= 'null'
static

In-memory cache for class identifiers / id matching

Default valuenullDetails
Type
n/a

Methods

methodpublic__clone( ) : void

methodpublicadjustAttributePlacements(  $attributes ) : void

Parameters
Name Type Description
$attributes
methodpublicalwaysAvailableLanguage( ) : void

methodpublicalwaysAvailableLanguageLocale( ) : void

methodpublicattribute(  $attr,  $noFunction = false ) : void
inherited

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

Inherited from: \eZPersistentObject::attributes()
methodpublicbuildContentObjectName(  $contentObjectName,  $dataMap,  $tmpTags = false ) : void

Parameters
Name Type Description
$contentObjectName
$dataMap
$tmpTags
methodpubliccanCreateLanguages( ) : void

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

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

methodpubliccanInstantiateLanguages( ) : void

methodpublicclassIDByIdentifier( string | array $identifier ) : int | false
static

Resolves the string class identifier $identifier to its numeric value Use {@link eZContentObjectTreeNode::classIDByIdentifier()} for < 4.1.

If multiple classes have the same identifier, the first found is returned.

Parameters
Name Type Description
$identifier string | array

identifier string or array of identifiers (array support added in 4.1.1)

Returns
Type Description
int | false Returns classid or false
Details
Since
Version 4.1  
Static
 
methodpublicclassIdentifierByID(  $id ) : string | false
static

Resolves the numeric class identifier $id to its string value

Parameters
Name Type Description
$id
Returns
Type Description
string | false Returns classidentifier or false
Details
Since
Version 4.1  
Static
 
methodprotectedclassIdentifiersHash( ) : array
static

Returns the class identifier hash for the current database.

If it is outdated or non-existent, the method updates/generates the file

Returns
Type Description
array Returns hash of classidentifier => classid
Details
Access
protected  
Since
Version 4.1  
Static
 
methodpublicclearAlwaysAvailableLanguageID( ) : void

methodpubliccompareAttributes(  $attr1,  $attr2 ) : void

Parameters
Name Type Description
$attr1
$attr2
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
methodpubliccontentObjectName( \eZContentObject $contentObject, int | false $version = false, string | false $translation = false ) : string

Will generate a name for the content object based on the class settings for content object limited by self::CONTENT_OBJECT_NAME_MAX_LENGTH.

Parameters
Name Type Description
$contentObject \eZContentObject
$version int | false
$translation string | false
Returns
Type Description
string
methodpubliccount(  $def,  $conds = null,  $field = null ) : void
staticinherited

Inherited from: \eZPersistentObject::count()
Parameters
Name Type Description
$def
$conds
$field
methodpubliccreate(  $userID = false,  $optionalValues = array(),  $languageLocale = false ) : void
static

Parameters
Name Type Description
$userID
$optionalValues
$languageLocale
methodpubliccreator( ) : void

methodpublicdataMap( ) : void

methodpublicdefinition( ) : void
static

methodpublicdescription(  $languageLocale = false ) : void

Parameters
Name Type Description
$languageLocale
methodpublicdescriptionFromSerializedString(  $serializedDescriptionList ) : void
static

Parameters
Name Type Description
$serializedDescriptionList
methodpublicdescriptionList( ) : void

methodpubliceZContentClass(  $row ) : void

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

Inherited from: \eZPersistentObject::eZPersistentObject()
Parameters
Name Type Description
$row
methodpublicescapeArray(  $array ) : void
staticinherited

Inherited from: \eZPersistentObject::escapeArray()
Parameters
Name Type Description
$array
methodpublicexists(  $id,  $version = eZContentClass::VERSION_STATUS_DEFINED,  $userID = false,  $useIdentifier = false ) : void
static

Parameters
Name Type Description
$id
$version
$userID
$useIdentifier
methodpublicexpireCache( ) : void
static

Expires in-memory cache for eZContentClass.

Clears cache for fetched eZContentClass objects, class identifiers and class attributes.

Details
Since
4.2  
methodpublicfetch(  $id,  $asObject = true,  $version = eZContentClass::VERSION_STATUS_DEFINED,  $user_id = false,  $parent_id = null ) : void
static

Parameters
Name Type Description
$id
$asObject
$version
$user_id
$parent_id
methodpublicfetchAllClasses(  $asObject = true,  $includeFilter = true,  $groupList = false ) : void
static

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

methodpublicfetchAttributeByIdentifier(  $identifier,  $asObject = true ) : void

Parameters
Name Type Description
$identifier
$asObject
methodpublicfetchAttributes(  $id = false,  $asObject = true,  $version = eZContentClass::VERSION_STATUS_DEFINED ) : void

Parameters
Name Type Description
$id
$asObject
$version
methodpublicfetchByIdentifier(  $identifier,  $asObject = true,  $version = eZContentClass::VERSION_STATUS_DEFINED,  $user_id = false,  $parent_id = null ) : void
static

Parameters
Name Type Description
$identifier
$asObject
$version
$user_id
$parent_id
methodpublicfetchByRemoteID(  $remoteID,  $asObject = true,  $version = eZContentClass::VERSION_STATUS_DEFINED,  $user_id = false,  $parent_id = null ) : void
static

Parameters
Name Type Description
$remoteID
$asObject
$version
$user_id
$parent_id
methodpublicfetchGroupIDList( ) : void

methodpublicfetchGroupList( ) : void

methodpublicfetchIDListContainingDatatype(  $dataTypeString ) : void
static

Parameters
Name Type Description
$dataTypeString
methodpublicfetchList(  $version = eZContentClass::VERSION_STATUS_DEFINED,  $asObject = true,  $user_id = false,  $sorts = null,  $fields = null,  $classFilter = false,  $limit = null ) : void
static

Parameters
Name Type Description
$version
$asObject
$user_id
$sorts
$fields
$classFilter
$limit
methodpublicfetchMatchGroupIDList( ) : void

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
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
methodpublicfetchSearchableAttributes(  $id = false,  $asObject = true,  $version = eZContentClass::VERSION_STATUS_DEFINED ) : void

Parameters
Name Type Description
$id
$asObject
$version
methodpublicfill(  $row ) : void
inherited

Inherited from: \eZPersistentObject::fill()
Parameters
Name Type Description
$row
methodpublicgetShortAttributeName(  $db,  $def,  $attrName ) : void
staticinherited

Inherited from: \eZPersistentObject::getShortAttributeName()
Parameters
Name Type Description
$db
$def
$attrName
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
methodpublichasDirtyData( ) : void
inherited

Inherited from: \eZPersistentObject::hasDirtyData()
methodpublichasNameInLanguage(  $languageLocale ) : void

Parameters
Name Type Description
$languageLocale
methodpublicinGroup(  $groupID ) : void

Parameters
Name Type Description
$groupID
methodpublicinitializeCopy(  $originalClass ) : void

Parameters
Name Type Description
$originalClass
methodpublicinstantiate(  $userID = false,  $sectionID = 0,  $versionNumber = false,  $languageCode = false,  $versionStatus = eZContentObjectVersion::STATUS_INTERNAL_DRAFT ) : void

Parameters
Name Type Description
$userID
$sectionID
$versionNumber
$languageCode
$versionStatus
methodpublicinstantiateIn(  $lang,  $userID = false,  $sectionID = 0,  $versionNumber = false,  $versionStatus = eZContentObjectVersion::STATUS_INTERNAL_DRAFT ) : void

Parameters
Name Type Description
$lang
$userID
$sectionID
$versionNumber
$versionStatus
methodpublicisRemovable( ) : void

methodpubliclanguages( ) : void

methodpublicmodifier( ) : void

methodpublicname(  $languageLocale = false ) : void

Parameters
Name Type Description
$languageLocale
methodpublicnameFromSerializedString(  $serializedNameList ) : void
static

Parameters
Name Type Description
$serializedNameList
methodpublicnameList( ) : void

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

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

methodpublicobjectList( ) : void

methodpublicprioritizedLanguages( ) : void

methodpublicprioritizedLanguagesJsArray( ) : void

methodpublicremoteID( ) : void

methodpublicremovableInformation(  $includeAll = true ) : void

Parameters
Name Type Description
$includeAll
methodpublicremove(  $removeAttributes = false,  $version = eZContentClass::VERSION_STATUS_DEFINED ) : void

Parameters
Name Type Description
$removeAttributes
$version
methodpublicremoveAttributes(  $removeAttributes = false,  $version = false ) : void

Parameters
Name Type Description
$removeAttributes
$version
methodpublicremoveObject(  $def,  $conditions = null,  $extraConditions = null ) : void
staticinherited

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

methodpublicremoveTranslation(  $languageID ) : void

Parameters
Name Type Description
$languageID
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
methodpublicsetAlwaysAvailableLanguageID(  $languageID,  $updateChilds = true ) : void

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

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

Parameters
Name Type Description
$languageCodes
methodpublicsetDescription(  $description,  $languageLocale = false ) : void

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

Inherited from: \eZPersistentObject::setHasDirtyData()
Parameters
Name Type Description
$hasDirtyData
methodpublicsetName(  $name,  $languageLocale = false ) : void

Parameters
Name Type Description
$name
$languageLocale
methodpublicsetVersion(  $version,  $set_childs = false ) : void

Parameters
Name Type Description
$version
$set_childs
methodpublicstore(  $store_childs = false,  $fieldFilters = null ) : void

Parameters
Name Type Description
$store_childs
$fieldFilters
methodpublicstoreDefined( array $attributes ) : void

Stores the current class as a defined version, updates the contentobject_name attribute and recreates the class group entries.

Parameters
Name Type Description
$attributes array

array of attributes of the content class

Details
Note
It will remove any existing temporary or defined classes before storing.  
methodpublicstoreObject(  $obj,  $fieldFilters = null ) : void
staticinherited

Inherited from: \eZPersistentObject::storeObject()
Parameters
Name Type Description
$obj
$fieldFilters
methodpublicstoreVersioned( array $attributes, int $version ) : void

Stores the current class as a modified version, updates the contentobject_name attribute and recreates the class group entries.

Parameters
Name Type Description
$attributes array

array of attributes

$version int

version status

Details
Note
It will remove classes in the previous and specified version before storing.  
Since
Version 4.3  
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

Parameters
Name Type Description
$fieldFilters
methodpublictopPriorityLanguageLocale( ) : void

methodpublicupdateObjectList(  $parameters ) : void
staticinherited

Inherited from: \eZPersistentObject::updateObjectList()
Parameters
Name Type Description
$parameters
methodpublicurlAliasName( \eZContentObject $contentObject, int | false $version = false, string | false $translation = false ) : string

Will generate a name for the url alias based on the class settings for content object limited by site.ini\[URLTranslator]\UrlAliasNameLimit

Parameters
Name Type Description
$contentObject \eZContentObject
$version int | false
$translation string | false
Returns
Type Description
string
methodpublicversionCount( ) : void

methodpublicversionHistoryLimit( mixed $class ) : int
static

Computes the version history limit for a content class

Parameters
Name Type Description
$class mixed

Content class ID, content class identifier or content class object

Returns
Type Description
int
Details
Since
4.2  
methodpublicversionStatus( ) : void

Documentation was generated by DocBlox 0.18.1.