Encapsulates data for a class attribute. More...
Public Member Functions | |
| cachedInfo () | |
| clone () | |
| & | content () |
| create ($class_id, $data_type_string, $optionalValues=array(), $languageLocale=false) | |
| & | currentModule () |
| customHTTPAction (&$module, &$http, $action) | |
| & | dataType () |
| definition () | |
| diff ($old, $new) | |
| & | displayInfo () |
| eZContentClassAttribute ($row) | |
| & | fetch ($id, $asObject=true, $version=EZ_CLASS_VERSION_STATUS_DEFINED, $field_filters=null) |
| & | fetchFilteredList ($cond, $asObject=true) |
| & | fetchList ($asObject=true, $parameters=array()) |
| & | fetchListByClassID ($classID, $version=EZ_CLASS_VERSION_STATUS_DEFINED, $asObject=true) |
| instantiate ($contentobjectID, $languageCode=false, $version=1) | |
| & | instantiateTemporary ($contentobjectID=false) |
| move ($down, $params=null) | |
| & | name ($languageLocale=false) |
| & | nameList () |
| remove ($quiet=false) | |
| removeTranslation ($languageLocale) | |
| setAlwaysAvailableLanguage ($languageLocale) | |
| setContent ($content) | |
| setName ($name, $languageLocale=false) | |
| store () | |
| storeDefined () | |
Static Public Member Functions | |
| dataTypeByID ($classAttributeID) | |
| nameFromSerializedString ($serailizedNameList, $languageLocale=false) | |
| sortKeyTypeByID ($classAttributeID) | |
Private Attributes | |
| $Content | |
| $ContentClassID | |
| $DataTypeString | |
| $DisplayInfo | |
| Contains information on how to display the current attribute in various viewmodes. | |
| $ID | |
| $Identifier | |
| $IsInformationCollector | |
| $IsRequired | |
| $IsSearchable | |
| $Module | |
| $NameList | |
| $Position | |
| $SerializedNameList | |
| $Version | |
Encapsulates data for a class attribute.
Definition at line 42 of file ezcontentclassattribute.php.
| eZContentClassAttribute::cachedInfo | ( | ) |
Definition at line 581 of file ezcontentclassattribute.php.
Referenced by dataTypeByID(), and sortKeyTypeByID().
| eZContentClassAttribute::clone | ( | ) |
Definition at line 174 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::content | ( | ) |
Definition at line 524 of file ezcontentclassattribute.php.
| eZContentClassAttribute::create | ( | $ | class_id, | |
| $ | data_type_string, | |||
| $ | optionalValues = array(), |
|||
| $ | languageLocale = false | |||
| ) |
Creates an 'eZContentClassAttribute' object.
To specify contentclassattribute name use either $optionalValues['serialized_name_list'] or combination of $optionalValues['name'] and/or $languageLocale.
In case of conflict(when both 'serialized_name_list' and 'name' with/without $languageLocale are specified) 'serialized_name_list' has top priority. This means that 'name' and $languageLocale will be ingnored because 'serialized_name_list' already has all needed info about names and languages.
If 'name' is specified then the contentclassattribute will have a name in $languageLocale(if specified) or in default language.
If neither of 'serialized_name_list' or 'name' isn't specified then the contentclassattribute will have an empty name in 'languageLocale'(if specified) or in default language.
Definition at line 223 of file ezcontentclassattribute.php.
Referenced by cachedInfo(), dataType(), eZContentClassPackageHandler::install(), instantiate(), and instantiateTemporary().
| & eZContentClassAttribute::currentModule | ( | ) |
null if no module set. Definition at line 576 of file ezcontentclassattribute.php.
| eZContentClassAttribute::customHTTPAction | ( | &$ | module, | |
| &$ | http, | |||
| $ | action | |||
| ) |
Executes the custom HTTP action
Definition at line 563 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::dataType | ( | ) |
Definition at line 512 of file ezcontentclassattribute.php.
Referenced by content(), customHTTPAction(), diff(), displayInfo(), remove(), store(), and storeDefined().
| eZContentClassAttribute::dataTypeByID | ( | $ | classAttributeID | ) | [static] |
Definition at line 663 of file ezcontentclassattribute.php.
Referenced by eZContentObjectTreeNode::dataTypeByClassAttributeID().
| eZContentClassAttribute::definition | ( | ) |
The definition array is an associative array consists of these keys:
asc or desc.Example:
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 59 of file ezcontentclassattribute.php.
Referenced by create(), fetch(), fetchFilteredList(), fetchList(), fetchListByClassID(), move(), eZContentClass::removeAttributes(), and eZContentClass::removeTemporary().
| eZContentClassAttribute::diff | ( | $ | old, | |
| $ | new | |||
| ) |
This methods relay calls to the diff method inside the datatype.
Definition at line 677 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::displayInfo | ( | ) |
Definition at line 547 of file ezcontentclassattribute.php.
| eZContentClassAttribute::eZContentClassAttribute | ( | $ | row | ) |
Definition at line 44 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::fetch | ( | $ | id, | |
| $ | asObject = true, |
|||
| $ | version = EZ_CLASS_VERSION_STATUS_DEFINED, |
|||
| $ | field_filters = null | |||
| ) |
Definition at line 366 of file ezcontentclassattribute.php.
Referenced by eZWaitUntilDate::addEntry(), eZInformationCollectionAttribute::contentClassAttribute(), and eZIdentifierType::fetchClassAttributeHTTPInput().
| & eZContentClassAttribute::fetchFilteredList | ( | $ | cond, | |
| $ | asObject = true | |||
| ) |
Definition at line 466 of file ezcontentclassattribute.php.
Referenced by eZContentClass::fetchAttributeByIdentifier(), eZContentClass::fetchAttributes(), and eZContentClass::fetchSearchableAttributes().
| & eZContentClassAttribute::fetchList | ( | $ | asObject = true, |
|
| $ | parameters = array() | |||
| ) |
Definition at line 389 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::fetchListByClassID | ( | $ | classID, | |
| $ | version = EZ_CLASS_VERSION_STATUS_DEFINED, |
|||
| $ | asObject = true | |||
| ) |
Definition at line 435 of file ezcontentclassattribute.php.
Referenced by eZWaitUntilDateType::attribute(), and eZContentObject::fetchClassAttributes().
| eZContentClassAttribute::instantiate | ( | $ | contentobjectID, | |
| $ | languageCode = false, |
|||
| $ | version = 1 | |||
| ) |
Definition at line 254 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::instantiateTemporary | ( | $ | contentobjectID = false |
) |
Definition at line 266 of file ezcontentclassattribute.php.
| eZContentClassAttribute::move | ( | $ | down, | |
| $ | params = null | |||
| ) |
Moves the object down if $down is true, otherwise up. If object is at either top or bottom it is wrapped around.
Definition at line 491 of file ezcontentclassattribute.php.
| & eZContentClassAttribute::name | ( | $ | languageLocale = false |
) |
Definition at line 692 of file ezcontentclassattribute.php.
| eZContentClassAttribute::nameFromSerializedString | ( | $ | serailizedNameList, | |
| $ | languageLocale = false | |||
| ) | [static] |
Definition at line 687 of file ezcontentclassattribute.php.
Referenced by eZContentObjectVersion::fetchAttributes().
| & eZContentClassAttribute::nameList | ( | ) |
Definition at line 703 of file ezcontentclassattribute.php.
| eZContentClassAttribute::remove | ( | $ | quiet = false |
) |
Definition at line 339 of file ezcontentclassattribute.php.
| eZContentClassAttribute::removeTranslation | ( | $ | languageLocale | ) |
Definition at line 721 of file ezcontentclassattribute.php.
| eZContentClassAttribute::setAlwaysAvailableLanguage | ( | $ | languageLocale | ) |
Definition at line 709 of file ezcontentclassattribute.php.
| eZContentClassAttribute::setContent | ( | $ | content | ) |
Sets the content for the current attribute
Definition at line 538 of file ezcontentclassattribute.php.
| eZContentClassAttribute::setName | ( | $ | name, | |
| $ | languageLocale = false | |||
| ) |
Definition at line 698 of file ezcontentclassattribute.php.
| eZContentClassAttribute::sortKeyTypeByID | ( | $ | classAttributeID | ) | [static] |
Definition at line 646 of file ezcontentclassattribute.php.
Referenced by eZContentObjectTreeNode::sortKeyByClassAttributeID().
| eZContentClassAttribute::store | ( | ) |
Definition at line 272 of file ezcontentclassattribute.php.
Referenced by storeDefined().
| eZContentClassAttribute::storeDefined | ( | ) |
Definition at line 304 of file ezcontentclassattribute.php.
eZContentClassAttribute::$Content [private] |
Contains the content for this attribute
Definition at line 729 of file ezcontentclassattribute.php.
eZContentClassAttribute::$ContentClassID [private] |
Definition at line 734 of file ezcontentclassattribute.php.
eZContentClassAttribute::$DataTypeString [private] |
Definition at line 740 of file ezcontentclassattribute.php.
eZContentClassAttribute::$DisplayInfo [private] |
Contains information on how to display the current attribute in various viewmodes.
Definition at line 731 of file ezcontentclassattribute.php.
eZContentClassAttribute::$ID [private] |
Definition at line 732 of file ezcontentclassattribute.php.
eZContentClassAttribute::$Identifier [private] |
Definition at line 735 of file ezcontentclassattribute.php.
eZContentClassAttribute::$IsInformationCollector [private] |
Definition at line 744 of file ezcontentclassattribute.php.
eZContentClassAttribute::$IsRequired [private] |
Definition at line 743 of file ezcontentclassattribute.php.
eZContentClassAttribute::$IsSearchable [private] |
Definition at line 742 of file ezcontentclassattribute.php.
eZContentClassAttribute::$Module [private] |
Definition at line 745 of file ezcontentclassattribute.php.
eZContentClassAttribute::$NameList [private] |
Definition at line 739 of file ezcontentclassattribute.php.
eZContentClassAttribute::$Position [private] |
Definition at line 741 of file ezcontentclassattribute.php.
eZContentClassAttribute::$SerializedNameList [private] |
Definition at line 737 of file ezcontentclassattribute.php.
eZContentClassAttribute::$Version [private] |
Definition at line 733 of file ezcontentclassattribute.php.
1.6.3