kernel/classes/ezcontentclassattribute.php

Show: inherited
Table of Contents

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

\eZContentClassAttribute

Package: kernel

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

Properties

Propertypublic  $Content= ''
Details
Type
n/a
Propertypublic  $ContentClassID= ''
Details
Type
n/a
Propertypublic  $DataTypeString= ''
Details
Type
n/a
Propertypublic  $DescriptionList= ''
Details
Type
n/a
Propertypublic  $DisplayInfo= ''
Details
Type
n/a
Propertyprotected  $EditLocale= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $ID= ''
Details
Type
n/a
Propertypublic  $Identifier= ''
Details
Type
n/a
Propertypublic  $IsInformationCollector= ''
Details
Type
n/a
Propertypublic  $IsRequired= ''
Details
Type
n/a
Propertypublic  $IsSearchable= ''
Details
Type
n/a
Propertypublic  $Module= ''
Details
Type
n/a
Propertypublic  $NameList= ''
Details
Type
n/a
Propertypublic  $PersistentDataDirty= ''
Details
Type
n/a
Inherited_from
\eZPersistentObject::$$PersistentDataDirty  
Propertypublic  $Position= ''
Details
Type
n/a
Propertypublic  $SerializedNameList= ''
Details
Type
n/a
Propertypublic  $Version= ''
Details
Type
n/a
Propertyprivate  $identifierHash= 'null'
static

In-memory cache for class attributes identifiers / id matching

Default valuenullDetails
Type
n/a

Methods

methodpublic__clone( ) : void

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

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

Inherited from: \eZPersistentObject::attributes()
methodpubliccachedInfo( ) : void
static

methodpublicclassAttributeIDByIdentifier(  $identifier ) : int | false
static

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

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

Parameters
Name Type Description
$identifier
Returns
Type Description
int | false Returns classattributeid or false
Details
Since
Version 4.1  
Static
 
methodpublicclassAttributeIdentifierByID(  $id ) : string | false
static

Resolves the numeric class attribute identifier $id to its string value

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

Returns the class attribute 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 classattributeidentifier => classattributeid
Details
Access
protected  
Since
Version 4.1  
Static
 
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
methodpubliccontent( ) : void

methodpubliccount(  $def,  $conds = null,  $field = null ) : void
staticinherited

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

Parameters
Name Type Description
$class_id
$data_type_string
$optionalValues
$languageLocale
methodpubliccurrentModule( ) : void

methodpubliccustomHTTPAction(  $module,  $http,  $action ) : void

Parameters
Name Type Description
$module
$http
$action
methodpublicdataTextI18n( string | false $languageLocale = false ) : string

Returns data_text_i18n of attribute based on serialized_data_text

Parameters
Name Type Description
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string
methodpublicdataTextI18nList( ) : array

Returns data_text_i18n list for all locales for attribute

Returns
Type Description
array
methodpublicdataType( ) : void

methodpublicdataTypeByID(  $classAttributeID ) : void
static

Parameters
Name Type Description
$classAttributeID
methodpublicdefinition( ) : void
static

methodpublicdescription( string | false $languageLocale = false ) : string

Returns description of attribute based on serialized_description_list

Parameters
Name Type Description
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string
methodpublicdescriptionList( ) : array

Returns description list for all locales for attribute

Returns
Type Description
array
methodpublicdiff(  $old,  $new ) : void

Parameters
Name Type Description
$old
$new
methodpublicdisplayInfo( ) : void

methodpubliceZContentClassAttribute(  $row ) : void

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

Inherited from: \eZPersistentObject::eZPersistentObject()
Parameters
Name Type Description
$row
methodpubliceditLocale( ) : string | false

Returns locale code as set with {@link self::setEditLocale()}

Returns
Type Description
string | false
methodpublicescapeArray(  $array ) : void
staticinherited

Inherited from: \eZPersistentObject::escapeArray()
Parameters
Name Type Description
$array
methodpublicexpireCache( int $contentClassAttributeID = false, int $contentClassID = false ) : void
static

Clears all content class attribute related caches

Parameters
Name Type Description
$contentClassAttributeID int

Specific attribute ID to clear cache for

$contentClassID int

Specific attribute ID to clear cache for

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

Parameters
Name Type Description
$id
$asObject
$version
$field_filters
methodpublicfetchFilteredList(  $cond,  $asObject = true ) : void
static

Parameters
Name Type Description
$cond
$asObject
methodpublicfetchList(  $asObject = true,  $parameters = array() ) : void
static

Parameters
Name Type Description
$asObject
$parameters
methodpublicfetchListByClassID(  $classID,  $version = eZContentClass::VERSION_STATUS_DEFINED,  $asObject = true ) : void
static

Parameters
Name Type Description
$classID
$version
$asObject
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
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()
methodpublicinitializeObjectAttributes( mixed $objects = null ) : void

Initialize the attribute in the existing objects.

Parameters
Name Type Description
$objects mixed

not used, the existing objects are fetched if necessary (depending on the datatype of the attribute).

methodpublicinstantiate(  $contentobjectID,  $languageCode = false,  $version = 1 ) : void

Parameters
Name Type Description
$contentobjectID
$languageCode
$version
methodpublicinstantiateTemporary(  $contentobjectID = false ) : void

Parameters
Name Type Description
$contentobjectID
methodpublicmove(  $down,  $params = null ) : void

Parameters
Name Type Description
$down
$params
methodpublicname( string | false $languageLocale = false ) : string

Returns name of attribute based on serialized_name_list

Parameters
Name Type Description
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string
methodpublicnameFromSerializedString( string $serializedNameList, string | false $languageLocale = false ) : string
static

Returns name from serialized string, can be used for serialized description and data_text as well.

Parameters
Name Type Description
$serializedNameList string
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string
methodpublicnameList( ) : array

Returns name list for all locales for attribute

Returns
Type Description
array
methodpublicnewObjectOrder(  $def,  $orderField,  $conditions ) : void
staticinherited

Inherited from: \eZPersistentObject::newObjectOrder()
Parameters
Name Type Description
$def
$orderField
$conditions
methodpublicremove(  $conditions = null,  $extraConditions = null ) : void
inherited

Inherited from: \eZPersistentObject::remove()
Parameters
Name Type Description
$conditions
$extraConditions
methodpublicremoveObject(  $def,  $conditions = null,  $extraConditions = null ) : void
staticinherited

Inherited from: \eZPersistentObject::removeObject()
Parameters
Name Type Description
$def
$conditions
$extraConditions
methodpublicremoveThis(  $quiet = false ) : void

Parameters
Name Type Description
$quiet
methodpublicremoveTranslation( string $languageLocale ) : void

Removes an translation (as in the serilized strings for name, description or data_text_i18n)

Parameters
Name Type Description
$languageLocale string
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
methodpublicsetAlwaysAvailableLanguage( string | false $languageLocale ) : void

Specify AlwaysAvailableLanguage (for name, description or data_text_i18n)

Parameters
Name Type Description
$languageLocale string | false
methodpublicsetAttribute(  $attr,  $val ) : void
inherited

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

Parameters
Name Type Description
$content
methodpublicsetDataTextI18n( string $string, string | false $languageLocale = false ) : string

Sets data_text_i18n of attribute, store() will take care of writing back to serialized_data_text

Parameters
Name Type Description
$string string
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string Return old value
methodpublicsetDescription( string $description, string | false $languageLocale = false ) : string

Sets description of attribute, store() will take care of writing back to serialized_description_list

Parameters
Name Type Description
$description string
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string Return old value
methodpublicsetEditLocale( string | false $languageLocale = false ) : void

Sets locale code of attribute for use by datatypes in class/edit storing process.

Parameters
Name Type Description
$languageLocale string | false

Uses AlwaysAvailable language if false

methodpublicsetHasDirtyData(  $hasDirtyData ) : void
inherited

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

Sets name of attribute, store() will take care of writing back to serialized_name_list

Parameters
Name Type Description
$name string
$languageLocale string | false

Uses AlwaysAvailable language if false

Returns
Type Description
string Return old value
methodpublicsortKeyTypeByID(  $classAttributeID ) : void
static

Parameters
Name Type Description
$classAttributeID
methodpublicstore(  $fieldFilters = null ) : void

Parameters
Name Type Description
$fieldFilters
methodpublicstoreDefined( ) : null | false

Store the content class in the version status "defined".

Returns
Type Description
null | false false if the operation failed
Details
Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.  
methodpublicstoreObject(  $obj,  $fieldFilters = null ) : void
staticinherited

Inherited from: \eZPersistentObject::storeObject()
Parameters
Name Type Description
$obj
$fieldFilters
methodpublicstoreVersioned( int $version ) : null | false

Store the content class in the specified version status.

Parameters
Name Type Description
$version int

version status

Returns
Type Description
null | false false if the operation failed
Details
Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.  
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
inherited

Inherited from: \eZPersistentObject::sync()
Parameters
Name Type Description
$fieldFilters
methodpublicupdateObjectList(  $parameters ) : void
staticinherited

Inherited from: \eZPersistentObject::updateObjectList()
Parameters
Name Type Description
$parameters
Documentation was generated by DocBlox 0.18.1.