eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZContentObjectAttribute

class eZContentObjectAttribute extends eZPersistentObject

Properties

bool $PersistentDataDirty Whether the data is dirty, ie needs to be stored, or not.
$HTTPValue
$Content
$DisplayInfo
$IsValid
$ContentClassAttributeID
$ValidationError
$ValidationLog
$ContentClassAttributeIdentifier
$ContentClassAttributeCanTranslate
$ContentClassAttributeName
$ContentClassAttributeIsInformationCollector
$ContentClassAttributeIsRequired
$ValidationParameters

Methods

eZPersistentObject(int|array $row)

Initializes the object with the $row.

from eZPersistentObject
bool fill(array $row)

Tries to fill in the data in the object by using the object definition which is returned by the function definition() and the database row data $row.

from eZPersistentObject
static void replaceFieldsWithShortNames(eZDBInterface $db, array $fieldDefs, array $fields)

For the given array $fields treats its keys (for associative array) or values (for non-associative array) as table fields names and replaces them with short names (aliases) found in $fieldDefs.

from eZPersistentObject
static int count(array $def, array|null $conds = null, string|null $field = null)

Fetches the number of rows by using the object definition.

from eZPersistentObject
static eZPersistentObject|array|null fetchObject($def, $field_filters, $conds, $asObject = true, $grouping = null, $custom_fields = null)

Fetches and returns an object based on the given parameters and returns is either as an object or as an array

from eZPersistentObject
void remove(array|null $conditions = null, array|null $extraConditions = null)

Removes the object from the database, it will use the keys in the object definition to figure out which table row should be removed unless $conditions is defined as an array with fieldnames.

from eZPersistentObject
static void removeObject(array $def, array|null $conditions = null, array|null $extraConditions = null)

Deletes the object from the table defined in $def with conditions $conditions and extra conditions \a $extraConditions.

from eZPersistentObject
void store(array|null $fieldFilters = null)

Stores the object in the database, uses storeObject() to do the actual job and passes $fieldFilters to it.

void sync(array|null $fieldFilters = null)

Makes sure data is stored if the data is considered dirty.

from eZPersistentObject
static void storeObject(eZPersistentObject $obj, array|null $fieldFilters = null)

Stores the data in $obj to database.

from eZPersistentObject
static string conditionText(array $conditions)

Calls conditionTextByRow with an empty row and $conditions.

from eZPersistentObject
static string conditionTextByRow(array $conditions, array|null $row)

Generates an SQL sentence from the conditions \a $conditions and row data $row.

from eZPersistentObject
static eZPersistentObject[]|array|null fetchObjectList(array $def, array|null $field_filters = null, array|null $conds = null, array|null|bool $sorts = null, array|null $limit = null, bool $asObject = true, array|null|bool $grouping = false, null $custom_fields = null, array|null $custom_tables = null, string|null $custom_conds = null)

Creates an SQL query out of the different parameters and returns an array with the result.

from eZPersistentObject
static eZPersistentObject[]|array handleRows(array $rows, string $class_name, bool $asObject)

Creates PHP objects out of the database rows $rows.

from eZPersistentObject
static string swapRow(string $table, array $keys, int $order_id, array $rows, int $id1, int $id2)

Sets row id $id2 to have the placement of row id $id1.

from eZPersistentObject
static int newObjectOrder(array $def, string $orderField, array $conditions)

Returns an order value which can be used for new items in table, for instance placement.

from eZPersistentObject
static void reorderObject(array $def, array $orderField, array $conditions, bool $down = true)

Moves a row in a database table.

from eZPersistentObject
static array definition()

Returns the definition for the object, the default implementation is to return an empty array.

from eZPersistentObject
static array escapeArray(array $array)

Escapes strings in an array with the help of {@link eZDBInterface::escapeString()}

from eZPersistentObject
static void updateObjectList(array $parameters)

Updates rows matching the given parameters

from eZPersistentObject
array attributes()

Returns the attributes for this object, taken from the definition fields and function attributes.

from eZPersistentObject
bool hasAttribute(string $attr)

Checks if $attr is part of the definition fields or function attributes.

from eZPersistentObject
mixed attribute(string $attr, bool $noFunction = false)

Returns the attribute data for $attr, this is either returned from the member variables or a member function depending on whether the definition field or function attributes matched.

from eZPersistentObject
void setAttribute(string $attr, mixed $val)

Sets the attribute $attr to the value $val.

from eZPersistentObject
bool hasDirtyData()

Returns true if the data is considered dirty and needs to be stored.

from eZPersistentObject
void setHasDirtyData(bool $hasDirtyData)

Sets whether the object has dirty data or not.

from eZPersistentObject
static string getShortAttributeName(eZDBInterface $db, array $def, string $attrName)

Returns the short attribute name (alias) if it's defined, given attribute name otherwise

from eZPersistentObject
eZContentObjectAttribute($row)

fetchAttributeTranslations($asObject = true)

storeData()

updateSortKey($storeData = true)

storeNewRow()

language($languageCode = false, $asObject = true)

object()

objectVersion()

contentClassAttribute()

setContentClassAttributeIdentifier($identifier)

setContentClassAttributeCanTranslate($canTranslate)

setContentClassAttributeName($name)

contentClassAttributeIsRequired()

contentClassAttributeIsInformationCollector()

contentClassAttributeName()

contentClassAttributeCanTranslate()

contentClassAttributeIdentifier()

validateInput($http, $base, $inputParameters, $validationParameters = array())

validateAddToBasket($data, $errors)

setInputParameters($parameters)

unsetInputParameters()

inputParameters()

setValidationParameters($parameters)

unsetValidationParameters()

validationParameters()

validateIsRequired()

fixupInput($http, $base)

fetchInput($http, $base)

validateInformation($http, $base, $inputParameters, $validationParameters = array())

collectInformation($collection, $collectionAttribute, $http, $base)

customHTTPAction($http, $action, $parameters = array())

handleCustomHTTPActions($http, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters)

onPublish($object, $nodes)

insertHTTPFile($object, $objectVersion, $objectLanguage, $httpFile, $mimeData, $result)

insertRegularFile($object, $objectVersion, $objectLanguage, $filePath, $result)

insertSimpleString($object, $objectVersion, $objectLanguage, $string, $result)

hasStoredFileInformation($object, $objectVersion, $objectLanguage)

storedFileInformation($object, $objectVersion, $objectLanguage)

handleDownload($object, $objectVersion, $objectLanguage)

void initialize(int $currentVersion = null, eZContentObjectAttribute $originalContentObjectAttribute = null)

Initializes the attribute by using the datatype

postInitialize($currentVersion = null, $originalContentObjectAttribute = null)

removeThis($id, $currentVersion = null)

eZContentObjectAttribute cloneContentObjectAttribute($newVersionNumber, $currentVersionNumber, $contentObjectID = false, $newLanguageCode = false)

Clones the attribute to a new version

translateTo($languageCode, $updateLanguageMask = true)

dataType()

title()

classContent()

setHTTPValue($value)

value()

hasHTTPValue()

content()

hasContent()

metaData()

toString()

fromString($string)

setContent($content)

displayInfo()

classDisplayInfo()

contentActionList()

setValidationError()

setHasValidationError($hasError = true)

hasValidationError()

setValidationLog($text)

validationError()

validationLog()

serialize($package)

unserialize($package, $attributeDOMNode)

postUnserialize($package)

isA()

viewTemplateName()

editTemplateName()

viewTemplate()

editTemplate()

informationTemplate()

resultTemplate()

Details

in eZPersistentObject at line 52
public eZPersistentObject(int|array $row)

Initializes the object with the $row.

It will try to set each field taken from the database row. Calls fill to do the job. If $row is an integer, it will try to fetch it from the database using it as the unique ID.

Parameters

int|array $row

in eZPersistentObject at line 71
public bool fill(array $row)

Tries to fill in the data in the object by using the object definition which is returned by the function definition() and the database row data $row.

Each field will be fetch from the definition and then use that fieldname to fetch from the row and set the data.

Parameters

array $row

Return Value

bool

in eZPersistentObject at line 101
static public void replaceFieldsWithShortNames(eZDBInterface $db, array $fieldDefs, array $fields)

For the given array $fields treats its keys (for associative array) or values (for non-associative array) as table fields names and replaces them with short names (aliases) found in $fieldDefs.

Parameters

eZDBInterface $db
array $fieldDefs
array $fields

Return Value

void

in eZPersistentObject at line 147
static public int count(array $def, array|null $conds = null, string|null $field = null)

Fetches the number of rows by using the object definition.

Uses fetchObjectList for the actual SQL handling. See {@link eZPersistentObject::fetchObjectList()} for a full description of the input parameters.

Parameters

array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
array|null $conds
string|null $field

Return Value

int

in eZPersistentObject at line 173
static public eZPersistentObject|array|null fetchObject($def, $field_filters, $conds, $asObject = true, $grouping = null, $custom_fields = null)

Fetches and returns an object based on the given parameters and returns is either as an object or as an array

See {@link eZPersistentObject::fetchObjectList()} for a full description of the input parameters.

Parameters

$def
$field_filters
$conds
$asObject
$grouping
$custom_fields

Return Value

eZPersistentObject|array|null

in eZPersistentObject at line 199
public void remove(array|null $conditions = null, array|null $extraConditions = null)

Removes the object from the database, it will use the keys in the object definition to figure out which table row should be removed unless $conditions is defined as an array with fieldnames.

It uses removeObject to do the real job and passes the object defintion, conditions and extra conditions \a $extraConditions to this function.

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.

Parameters

array|null $conditions
array|null $extraConditions

Return Value

void

in eZPersistentObject at line 231
static public void removeObject(array $def, array|null $conditions = null, array|null $extraConditions = null)

Deletes the object from the table defined in $def with conditions $conditions and extra conditions \a $extraConditions.

The extra conditions will either be appended to the existing conditions or overwrite existing fields.

Uses conditionText() to create the condition SQL.

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.

Parameters

array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
array|null $conditions
array|null $extraConditions

Return Value

void

at line 259
public void store(array|null $fieldFilters = null)

Stores the object in the database, uses storeObject() to do the actual job and passes $fieldFilters to it.

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.

Parameters

array|null $fieldFilters

Return Value

void

in eZPersistentObject at line 279
public void sync(array|null $fieldFilters = null)

Makes sure data is stored if the data is considered dirty.

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.

Parameters

array|null $fieldFilters

Return Value

void

in eZPersistentObject at line 298
static public void storeObject(eZPersistentObject $obj, array|null $fieldFilters = null)

Stores the data in $obj to database.

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.

Parameters

eZPersistentObject $obj
array|null $fieldFilters If specified only certain fields will be stored.

Return Value

void

in eZPersistentObject at line 583
static public string conditionText(array $conditions)

Calls conditionTextByRow with an empty row and $conditions.

Parameters

array $conditions

Return Value

string

in eZPersistentObject at line 598
static public string conditionTextByRow(array $conditions, array|null $row)

Generates an SQL sentence from the conditions \a $conditions and row data $row.

If $row is empty (or null) it uses the condition data instead of row data.

Parameters

array $conditions
array|null $row

Return Value

string

in eZPersistentObject at line 761
static public eZPersistentObject[]|array|null fetchObjectList(array $def, array|null $field_filters = null, array|null $conds = null, array|null|bool $sorts = null, array|null $limit = null, bool $asObject = true, array|null|bool $grouping = false, null $custom_fields = null, array|null $custom_tables = null, string|null $custom_conds = null)

Creates an SQL query out of the different parameters and returns an array with the result.

A full example: $filter = array( 'id', 'name' ); $conds = array( 'type' => 5, 'size' => array( false, array( 200, 500 ) ) ); $sorts = array( 'name' => 'asc' ); $limit = array( 'offset' => 50, 'length' => 10 ); eZPersistentObject::fetchObjectList( $def, $filter, $conds, $sorts, $limit, true, false, null )

Counting number of elements. $custom = array( array( 'operation' => 'count( id )', 'name' => 'count' ) ); // Here $field_filters is set to an empty array, that way only count is used in fields $rows = eZPersistentObject::fetchObjectList( $def, array(), null, null, null, false, false, $custom ); return $rows[0]['count'];

Counting elements per type using grouping $custom = array( array( 'operation' => 'count( id )', 'name' => 'count' ) ); $group = array( 'type' ); $rows = eZPersistentObject::fetchObjectList( $def, array(), null, null, null, false, $group, $custom ); return $rows[0]['count'];

Example to fetch a result with custom conditions. The following example will fetch the attributes to the contentobject with id 1 and add the contentobject.name in each attribute row with the array key contentobject_name. $objectDef = eZContentObject::definition(); $objectAttributeDef = eZContentObjectAttribute::definition();

$fields = array(); $conds = array( $objectDef['name'] . '.id' => 1 ); $sorts = array( $objectAttributeDef['name'] . '.sortkeystring' => 'asc' );

$limit = null; $asObject = false; $group = false;

$customFields = array( $objectAttributeDef['name'] . '.*', array( 'operation' => $objectDef['name'] . '.name', 'name' => 'contentobject_name' ) );

$customTables = array( $objectDef['name'] );

$languageCode = 'eng-GB'; $customConds = ' AND ' . $objectDef['name'] . '.currentversion=' . $objectAttributeDef['name'] . '.version' . ' AND ' . $objectDef['name'] . '.id=' . $objectAttributeDef['name'] . '.contentobjectid' . ' AND ' . $objectAttributeDef['name'] . '.language_code=\'' . $languageCode . '\'';

$rows = eZPersistentObject::fetchObjectList( $objectAttributeDef, $fields, $conds, $sorts, $limit, $asObject, $group, $customFields, $customTables, $customConds );

Parameters

array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
array|null $field_filters If defined determines the fields which are extracted (array of field names), if not all fields are fetched
array|null $conds null for no special condition or an associative array of fields to filter on. Syntax is FIELD => CONDITION CONDITION can be one of: - Scalar value: Creates a condition where FIELD must match the value, e.g array( 'id' => 5 ) generates SQL id = 5 - Array with two scalar values: The first value is the match operator, the second is the scalar value array( 'priority' => array( '>', 5 ) ) generates SQL priority > 5 - Array with range: The first value is false, the second value is an array with start and stop of range in array array( 'type' => array( false, array( 1, 5 ) ) ) generates SQL type BETWEEN 1 AND 5 - Array with multiple elements: The first value is the field identifier, the second is an array with scalar values array( 'id' => array( array( 1, 5, 7 ) ) ) generates SQL id IN ( 1, 5, 7 )
array|null|bool $sorts An associative array of sorting conditions, if set to false ignores settings in $def, if set to null uses settingss in $def. Syntax is FIELD => DIRECTION. DIRECTION must either be 'asc' for ascending or 'desc' for descending.
array|null $limit An associative array with limitiations, can contain - 'offset': Numerical value defining the start offset for the fetch - 'length': Numerical value defining the max number of items to return
bool $asObject If true then it will return an array with objects, objects are created from class defined in $def. If falseit will just return the rows fetch from database.
array|null|bool $grouping An array of fields to group by or null to use grouping in defintion $def.
null $custom_fields Array of FIELD elements to add to SQL, can be used to perform custom fetches, e.g counts. FIELD is an associative array containing: - 'operation': A text field which is included in the field list - 'name': If present it adds AS name to the operation.
array|null $custom_tables Array of additional tables
string|null $custom_conds String with sql conditions for 'WHERE' clause.

Return Value

eZPersistentObject[]|array|null An array of objects or rows, null on error

in eZPersistentObject at line 918
static public eZPersistentObject[]|array handleRows(array $rows, string $class_name, bool $asObject)

Creates PHP objects out of the database rows $rows.

Each object is created from class \$ class_name and is passed as a row array as parameter.

Parameters

array $rows
string $class_name
bool $asObject If true then objects will be created, if not it just returns $rows as it is.

Return Value

eZPersistentObject[]|array

in eZPersistentObject at line 951
static public string swapRow(string $table, array $keys, int $order_id, array $rows, int $id1, int $id2)

Sets row id $id2 to have the placement of row id $id1.

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.

Parameters

string $table
array $keys
int $order_id
array $rows
int $id1
int $id2

Return Value

string

in eZPersistentObject at line 978
static public int newObjectOrder(array $def, string $orderField, array $conditions)

Returns an order value which can be used for new items in table, for instance placement.

Uses $def, $orderField and $conditions to figure out the currently maximum order value and returns one that is larger.

Parameters

array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
string $orderField
array $conditions

Return Value

int

in eZPersistentObject at line 1013
static public void reorderObject(array $def, array $orderField, array $conditions, bool $down = true)

Moves a row in a database table.

Uses $orderField to determine the order of objects in a table, usually this is a placement of some kind. It uses this order field to figure out how move the row, the row is either swapped with another row which is either above or below according to whether $down is true or false, or it is swapped with the first item or the last item depending on whether this row is first or last. Uses $conditions to figure out unique rows.

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.

Parameters

array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
array $orderField Associative array with one element, the key is the order id and values is order value.
array $conditions
bool $down

Return Value

void

in eZPersistentObject at line 1110
static public array definition()

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: - fields: an associative array of fields which defines which database field (the key) is to fetched and how they map to object member variables (the value). - keys: an array of fields which is used for uniquely identifying the object in the table. - function_attributes: an associative array of attributes which maps to member functions, used for fetching data with functions.

Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "functionattributes" => array( "current" => "currentVersion", "classname" => "className" ), "incrementkey" => "id", "classname" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }

Return Value

array

in eZPersistentObject at line 1121
static public array escapeArray(array $array)

Escapes strings in an array with the help of {@link eZDBInterface::escapeString()}

Parameters

array $array

Return Value

array

in eZPersistentObject at line 1153
static public void updateObjectList(array $parameters)

Updates rows matching the given parameters

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.

Parameters

array $parameters

Return Value

void

in eZPersistentObject at line 1236
public array attributes()

Returns the attributes for this object, taken from the definition fields and function attributes.

Return Value

array

See also

eZPersistentObject::definition()

in eZPersistentObject at line 1253
public bool hasAttribute(string $attr)

Checks if $attr is part of the definition fields or function attributes.

Parameters

string $attr

Return Value

bool

in eZPersistentObject at line 1273
public mixed attribute(string $attr, bool $noFunction = false)

Returns the attribute data for $attr, this is either returned from the member variables or a member function depending on whether the definition field or function attributes matched.

Parameters

string $attr
bool $noFunction

Return Value

mixed

in eZPersistentObject at line 1318
public void setAttribute(string $attr, mixed $val)

Sets the attribute $attr to the value $val.

The attribute must be present in the objects definition fields or set functions.

Parameters

string $attr
mixed $val

Return Value

void

in eZPersistentObject at line 1358
public bool hasDirtyData()

Returns true if the data is considered dirty and needs to be stored.

Return Value

bool

in eZPersistentObject at line 1369
public void setHasDirtyData(bool $hasDirtyData)

Sets whether the object has dirty data or not.

Parameters

bool $hasDirtyData

Return Value

void

in eZPersistentObject at line 1382
static public string getShortAttributeName(eZDBInterface $db, array $def, string $attrName)

Returns the short attribute name (alias) if it's defined, given attribute name otherwise

Parameters

eZDBInterface $db
array $def A definition array of all fields, table name and sorting (see {@link eZPersistentObject::definition()} for more info)
string $attrName

Return Value

string

at line 21
public eZContentObjectAttribute($row)

Parameters

$row

at line 221
public fetchAttributeTranslations($asObject = true)

Parameters

$asObject

at line 295
public storeData()

at line 317
public updateSortKey($storeData = true)

Parameters

$storeData

at line 357
public storeNewRow()

at line 377
public language($languageCode = false, $asObject = true)

Parameters

$languageCode
$asObject

at line 397
public object()

at line 406
public objectVersion()

at line 414
public contentClassAttribute()

at line 425
public setContentClassAttributeIdentifier($identifier)

Parameters

$identifier

at line 433
public setContentClassAttributeCanTranslate($canTranslate)

Parameters

$canTranslate

at line 441
public setContentClassAttributeName($name)

Parameters

$name

at line 449
public contentClassAttributeIsRequired()

at line 466
public contentClassAttributeIsInformationCollector()

at line 483
public contentClassAttributeName()

at line 500
public contentClassAttributeCanTranslate()

at line 525
public contentClassAttributeIdentifier()

at line 539
public validateInput($http, $base, $inputParameters, $validationParameters = array())

Parameters

$http
$base
$inputParameters
$validationParameters

at line 558
public validateAddToBasket($data, $errors)

Parameters

$data
$errors

at line 575
public setInputParameters($parameters)

Parameters

$parameters

at line 584
public unsetInputParameters()

at line 594
public inputParameters()

at line 606
public setValidationParameters($parameters)

Parameters

$parameters

at line 615
public unsetValidationParameters()

at line 625
public validationParameters()

at line 633
public validateIsRequired()

at line 646
public fixupInput($http, $base)

Parameters

$http
$base

at line 656
public fetchInput($http, $base)

Parameters

$http
$base

at line 668
public validateInformation($http, $base, $inputParameters, $validationParameters = array())

Parameters

$http
$base
$inputParameters
$validationParameters

at line 686
public collectInformation($collection, $collectionAttribute, $http, $base)

Parameters

$collection
$collectionAttribute
$http
$base

at line 703
public customHTTPAction($http, $action, $parameters = array())

Parameters

$http
$action
$parameters

at line 713
public handleCustomHTTPActions($http, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters)

Parameters

$http
$attributeDataBaseName
$customActionAttributeArray
$customActionParameters

at line 729
public onPublish($object, $nodes)

Parameters

$object
$nodes

at line 745
public insertHTTPFile($object, $objectVersion, $objectLanguage, $httpFile, $mimeData, $result)

Parameters

$object
$objectVersion
$objectLanguage
$httpFile
$mimeData
$result

at line 770
public insertRegularFile($object, $objectVersion, $objectLanguage, $filePath, $result)

Parameters

$object
$objectVersion
$objectLanguage
$filePath
$result

at line 795
public insertSimpleString($object, $objectVersion, $objectLanguage, $string, $result)

Parameters

$object
$objectVersion
$objectLanguage
$string
$result

at line 814
public hasStoredFileInformation($object, $objectVersion, $objectLanguage)

Parameters

$object
$objectVersion
$objectLanguage

at line 830
public storedFileInformation($object, $objectVersion, $objectLanguage)

Parameters

$object
$objectVersion
$objectLanguage

at line 846
public handleDownload($object, $objectVersion, $objectLanguage)

Parameters

$object
$objectVersion
$objectLanguage

at line 868
public void initialize(int $currentVersion = null, eZContentObjectAttribute $originalContentObjectAttribute = null)

Initializes the attribute by using the datatype

Parameters

int $currentVersion Current version number
eZContentObjectAttribute $originalContentObjectAttribute Optional eZContentObjectAttribute the content will be initialized from

Return Value

void

at line 881
public postInitialize($currentVersion = null, $originalContentObjectAttribute = null)

Parameters

$currentVersion
$originalContentObjectAttribute

at line 896
public removeThis($id, $currentVersion = null)

Parameters

$id
$currentVersion

at line 929
public eZContentObjectAttribute cloneContentObjectAttribute($newVersionNumber, $currentVersionNumber, $contentObjectID = false, $newLanguageCode = false)

Clones the attribute to a new version

Parameters

$newVersionNumber
$currentVersionNumber
$contentObjectID
$newLanguageCode

Return Value

eZContentObjectAttribute The cloned attribute

at line 1003
public translateTo($languageCode, $updateLanguageMask = true)

Parameters

$languageCode
$updateLanguageMask

at line 1036
public dataType()

at line 1048
public title()

at line 1060
public classContent()

at line 1069
public setHTTPValue($value)

Parameters

$value

at line 1077
public value()

at line 1088
public hasHTTPValue()

at line 1100
public content()

at line 1116
public hasContent()

at line 1130
public metaData()

at line 1142
public toString()

at line 1154
public fromString($string)

Parameters

$string

at line 1198
public setContent($content)

Parameters

$content

at line 1207
public displayInfo()

at line 1223
public classDisplayInfo()

at line 1240
public contentActionList()

at line 1250
public setValidationError()

at line 1264
public setHasValidationError($hasError = true)

Parameters

$hasError

at line 1269
public hasValidationError()

at line 1285
public setValidationLog($text)

Parameters

$text

at line 1303
public validationError()

at line 1308
public validationLog()

at line 1313
public serialize($package)

Parameters

$package

at line 1323
public unserialize($package, $attributeDOMNode)

Parameters

$package
$attributeDOMNode

at line 1330
public postUnserialize($package)

Parameters

$package

at line 1343
public isA()

at line 1360
public viewTemplateName()

at line 1378
public editTemplateName()

at line 1388
public viewTemplate()

at line 1407
public editTemplate()

at line 1422
public informationTemplate()

at line 1440
public resultTemplate()