eZ Publish  [4.0]
eZContentObjectAttribute Class Reference

Encapsulates the data for an object attribute. More...

+ Inheritance diagram for eZContentObjectAttribute:
+ Collaboration diagram for eZContentObjectAttribute:

List of all members.

Public Member Functions

 classContent ()
 classDisplayInfo ()
 cloneContentObjectAttribute ($newVersionNumber, $currentVersionNumber, $contentObjectID=false, $newLanguageCode=false)
 Clones the attribute to a new version.
 collectInformation ($collection, &$collectionAttribute, $http, $base)
 content ()
 contentActionList ()
 contentClassAttribute ()
 contentClassAttributeCanTranslate ()
 contentClassAttributeIdentifier ()
 contentClassAttributeIsInformationCollector ()
 contentClassAttributeIsRequired ()
 contentClassAttributeName ()
 customHTTPAction ($http, $action, $parameters=array())
 dataType ()
 displayInfo ()
 editTemplate ()
 editTemplateName ()
 eZContentObjectAttribute ($row)
 fetchAttributeTranslations ($asObject=true)
 fetchInput ($http, $base)
 fixupInput ($http, $base)
 fromString ($string)
 handleCustomHTTPActions ($http, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters)
 handleDownload ($object, $objectVersion, $objectLanguage)
 hasContent ()
 hasHTTPValue ()
 hasStoredFileInformation ($object, $objectVersion, $objectLanguage)
 hasValidationError ()
 informationTemplate ()
 initialize ($currentVersion=null, $originalContentObjectAttribute=null)
 Initializes the attribute by using the datatype.
 inputParameters ()
 insertHTTPFile ($object, $objectVersion, $objectLanguage, $httpFile, $mimeData, &$result)
 insertRegularFile ($object, $objectVersion, $objectLanguage, $filePath, &$result)
 insertSimpleString ($object, $objectVersion, $objectLanguage, $string, &$result)
 isA ()
 language ($languageCode=false, $asObject=true)
 metaData ()
 object ()
 objectVersion ()
 onPublish ($object, $nodes)
 postInitialize ($currentVersion=null, $originalContentObjectAttribute=null)
 postUnserialize ($package)
 removeThis ($id, $currentVersion=null)
 resultTemplate ()
 serialize ($package)
 setContent ($content)
 setContentClassAttributeCanTranslate ($canTranslate)
 setContentClassAttributeIdentifier ($identifier)
 setContentClassAttributeName ($name)
 setHasValidationError ($hasError=true)
 setHTTPValue ($value)
 setInputParameters ($parameters)
 setValidationError ()
 setValidationLog ($text)
 setValidationParameters ($parameters)
 store ($fieldFilters=null)
 storeData ()
 storedFileInformation ($object, $objectVersion, $objectLanguage)
 storeNewRow ()
 title ()
 toString ()
 translateTo ($languageCode, $updateLanguageMask=true)
 unserialize ($package, $attributeDOMNode)
 unsetInputParameters ()
 unsetValidationParameters ()
 updateSortKey ($storeData=true)
 validateAddToBasket ($data, &$errors)
 validateInformation ($http, $base, &$inputParameters, $validationParameters=array())
 validateInput ($http, $base, &$inputParameters, $validationParameters=array())
 validateIsRequired ()
 validationError ()
 validationLog ()
 validationParameters ()
 value ()
 viewTemplate ()
 viewTemplateName ()

Static Public Member Functions

static create ($contentclassAttributeID, $contentobjectID, $version=1, $languageCode=false)
static definition ()
static fetch ($id, $version, $asObject=true, $field_filters=null)
static fetchByClassAttributeID ($classAttributeID, $objectID, $version, $languageID, $asObject=true)
static fetchByIdentifier ($identifier, $asObject=true)
static fetchListByClassID ($id, $version=false, $limit=null, $asObject=true, $asCount=false)
static fetchSameClassAttributeIDList ($contentClassAttributeID, $asObject=true, $version=false, $contentObjectID=false)
static generateValidationErrorText ($numargs, $argList)
static metaDataArray (&$attributes)

Public Attributes

 $Content
 Contains the content for this attribute.
 $ContentClassAttributeCanTranslate
 $ContentClassAttributeID
 $ContentClassAttributeIdentifier
 $ContentClassAttributeIsInformationCollector
 $ContentClassAttributeIsRequired
 $ContentClassAttributeName
 $DisplayInfo
 Contains information on how to display the current attribute in various viewmodes.
 $HTTPValue
 Contains the value(s) submitted in HTTP form.
 $IsValid
 Stores the is valid.
 $ValidationError
 Contains the last validation error.
 $ValidationLog
 Contains the last validation error.

Detailed Description

Encapsulates the data for an object attribute.

See also:
eZContentObject eZContentClass eZContentClassAttribute

Definition at line 46 of file ezcontentobjectattribute.php.


Member Function Documentation

eZContentObjectAttribute::classContent ( )
Returns:
the content for the contentclass attribute which defines this contentobject attribute.
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 1110 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::classDisplayInfo ( )
Returns:
Information on how to display the class attribute. See eZDataType::classDisplayInformation() for more information on what is returned.
Note:
This is a copy of eZContentClassAttribute::displayInfo()

Definition at line 1277 of file ezcontentobjectattribute.php.

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

Clones the attribute to a new version.

Parameters:
int$newVersionNumberTarget version number
int$currentVersionNumnberSource version number
int$contentObjectID
string$newLanguageCode
Note:
The cloned attribute isn't stored automatically
Returns:
eZContentObjectAttribute The cloned attribute
Todo:
Deprecate this in favor of a real __clone

Definition at line 977 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::collectInformation ( collection,
&$  collectionAttribute,
http,
base 
)

Collects the information entered by the user from http post vars

Definition at line 734 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::content ( )

Returns the content for this attribute.

Definition at line 1152 of file ezcontentobjectattribute.php.

Referenced by value().

eZContentObjectAttribute::contentActionList ( )

Returns the content action(s) for this attribute

Definition at line 1294 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::contentClassAttribute ( )

Returns the attribute for the current data attribute instance

Definition at line 448 of file ezcontentobjectattribute.php.

Referenced by classContent(), classDisplayInfo(), contentActionList(), initialize(), postInitialize(), store(), storeData(), updateSortKey(), validateIsRequired(), and viewTemplateName().

eZContentObjectAttribute::contentClassAttributeCanTranslate ( )
Returns:
the cached value if the attribute can be translated or not
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 542 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::contentClassAttributeIdentifier ( )
Returns:
the idenfifier for the content class attribute
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 569 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::contentClassAttributeIsInformationCollector ( )
Returns:
the cached value of the is_informationcollector value
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 504 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::contentClassAttributeIsRequired ( )
Returns:
the cached value of the IsRequired value
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 485 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::contentClassAttributeName ( )
Returns:
the cached value of the class attribute name
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 523 of file ezcontentobjectattribute.php.

static eZContentObjectAttribute::create ( contentclassAttributeID,
contentobjectID,
version = 1,
languageCode = false 
) [static]

Definition at line 257 of file ezcontentobjectattribute.php.

Referenced by eZSiteInstaller\addClassAttributes(), and dataType().

eZContentObjectAttribute::customHTTPAction ( http,
action,
parameters = array() 
)

Executes the custom HTTP action

Definition at line 751 of file ezcontentobjectattribute.php.

static eZContentObjectAttribute::definition ( ) [static]
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.
  • set_functions - an associative array of attributes which maps to member functions, used for setting data with functions.
  • increment_key - the field which is incremented on table inserts.
  • class_name - the classname which is used for instantiating new objecs when fetching from the database.
  • sort - an associative array which defines the default sorting of lists, the key is the table field while the value is the sorting method which is either asc or desc.
  • name - the name of the database table

Example:

static 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 65 of file ezcontentobjectattribute.php.

Referenced by eZContentObject\allContentObjectAttributes(), cloneContentObjectAttribute(), fetch(), fetchAttributeTranslations(), fetchByClassAttributeID(), fetchByIdentifier(), fetchListByClassID(), fetchSameClassAttributeIDList(), language(), eZObjectRelationListType\removeRelationObject(), removeThis(), and eZISBN10To13Converter\updateContentFromClassAttribute().

eZContentObjectAttribute::displayInfo ( )
Returns:
Information on how to display the current attribute. See eZDataType::objectDisplayInformation() for more information on what is returned.

Definition at line 1261 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::editTemplate ( )
Returns:
the template name to use for editing the attribute.
Note:
The returned template name does not include the .tpl extension.
See also:
viewTemplate, informationTemplate

Definition at line 1477 of file ezcontentobjectattribute.php.

Referenced by editTemplateName().

eZContentObjectAttribute::editTemplateName ( )
Returns:
the template name to use for editing the attribute.

Definition at line 1448 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::eZContentObjectAttribute ( row)

Definition at line 50 of file ezcontentobjectattribute.php.

Referenced by create().

eZContentObjectAttribute::fetchAttributeTranslations ( asObject = true)
Returns:
the attributes with alternative translations for the current attribute version and class attribute id

Definition at line 245 of file ezcontentobjectattribute.php.

static eZContentObjectAttribute::fetchByClassAttributeID ( classAttributeID,
objectID,
version,
languageID,
asObject = true 
) [static]

Definition at line 208 of file ezcontentobjectattribute.php.

Referenced by eZContentObject\copyVersion().

static eZContentObjectAttribute::fetchByIdentifier ( identifier,
asObject = true 
) [static]

Fetch a node by identifier (unique data_text )

Parameters:
identifier
Returns:
object attribute

Definition at line 401 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::fetchInput ( http,
base 
)

Fetches the data from http post vars and sets them correctly.

Definition at line 704 of file ezcontentobjectattribute.php.

static eZContentObjectAttribute::fetchListByClassID ( id,
version = false,
limit = null,
asObject = true,
asCount = false 
) [static]
static eZContentObjectAttribute::fetchSameClassAttributeIDList ( contentClassAttributeID,
asObject = true,
version = false,
contentObjectID = false 
) [static]

Fetches all contentobject attributes which relates to the contentclass attribute $contentClassAttributeID.

Returns:
An array with contentobject attributes.
Parameters:
$contentClassAttributeIDThe ID of the contentclass attribute
$asObjectIf true objects will be returned, otherwise associative arrays are returned.
$versionThe version the of contentobject attributes to fetch or all version if false.
$contentObjectIDThe ID the of contentobject to fetch or all objects if false.

Definition at line 227 of file ezcontentobjectattribute.php.

Referenced by eZSiteInstaller\removeClassAttribute(), and eZImageType\repairContentObjectAttribute().

eZContentObjectAttribute::fixupInput ( http,
base 
)

Tries to fixup the input text to be acceptable.  

Definition at line 694 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::fromString ( string)

imports string to attribute content used for simplified import/export.

Definition at line 1208 of file ezcontentobjectattribute.php.

static eZContentObjectAttribute::generateValidationErrorText ( numargs,
argList 
) [static]

Definition at line 1332 of file ezcontentobjectattribute.php.

Referenced by setValidationError().

eZContentObjectAttribute::handleCustomHTTPActions ( http,
attributeDataBaseName,
customActionAttributeArray,
customActionParameters 
)

Sends custom actions to datatype for custom handling.

Definition at line 761 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::handleDownload ( object,
objectVersion,
objectLanguage 
)

Calls handleDownload() on the current datatype and returns the result.

Definition at line 894 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::hasContent ( )
Returns:
true if the attribute is considered to have any content at all (ie. non-empty).

It will call the hasObjectAttributeContent() for the current datatype to figure this out.

Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 1170 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::hasHTTPValue ( )
Returns:
true if the attribute has relavant value(s) submitted in HTTP form.
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 1140 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::hasStoredFileInformation ( object,
objectVersion,
objectLanguage 
)

Calls hasStoredFileInformation() on the current datatype and returns the result.

Definition at line 862 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::hasValidationError ( )
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 1327 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::informationTemplate ( )
Returns:
the template name to use for information collection for the attribute.
Note:
The returned template name does not include the .tpl extension.
See also:
viewTemplate, editTemplate

Definition at line 1492 of file ezcontentobjectattribute.php.

Referenced by viewTemplateName().

eZContentObjectAttribute::initialize ( currentVersion = null,
originalContentObjectAttribute = null 
)

Initializes the attribute by using the datatype.

Parameters:
int$currentVersionCurrent version number
eZContentObjectAttribute$originalContentObjectAttributeOptional eZContentObjectAttribute the content will be initialized from
Returns:
void

Definition at line 916 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::inputParameters ( )
Returns:
the current input parameters or false if no parameters has been set.
See also:
setInputParameters, unsetInputParameters

Definition at line 642 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::insertHTTPFile ( object,
objectVersion,
objectLanguage,
httpFile,
mimeData,
&$  result 
)

Inserts the HTTP file $httpFile to the content object attribute $objectAttribute by calling eZDataType::insertHTTPFile on the current datatype.

The parameters are passed directly to the datatype with the exception of $object, $objectVersion and $objectLanguage. If false is passed to any of these parameters they will be fetched from the current attribute, if these are available it is adviced to pass them since it will save time.

Definition at line 793 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::insertRegularFile ( object,
objectVersion,
objectLanguage,
filePath,
&$  result 
)

Inserts the file named $filePath to the content object attribute $objectAttribute. by calling eZDataType::insertRegularFile on the current datatype.

The parameters are passed directly to the datatype with the exception of $object, $objectVersion and $objectLanguage. If false is passed to any of these parameters they will be fetched from the current attribute, if these are available it is adviced to pass them since it will save time.

Definition at line 818 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::insertSimpleString ( object,
objectVersion,
objectLanguage,
string,
&$  result 
)

Inserts the string $string to the content object attribute $objectAttribute. by calling eZDataType::insertSimpleString on the current datatype.

The parameters are passed directly to the datatype with the exception of $object, $objectVersion and $objectLanguage. If false is passed to any of these parameters they will be fetched from the current attribute, if these are available it is adviced to pass them since it will save time.

Definition at line 843 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::isA ( )

Definition at line 1413 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::language ( languageCode = false,
asObject = true 
)

Definition at line 409 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::metaData ( )

Returns the metadata. This is the pure content of the attribute used for indexing data for search engines.

Definition at line 1184 of file ezcontentobjectattribute.php.

static eZContentObjectAttribute::metaDataArray ( &$  attributes) [static]

Goes trough all attributes and fetches metadata for the ones that is searchable.

Returns:
an array with metadata information.

Definition at line 1223 of file ezcontentobjectattribute.php.

Referenced by eZObjectRelationType\metaData(), and eZObjectRelationListType\metaData().

eZContentObjectAttribute::objectVersion ( )

Definition at line 440 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::onPublish ( object,
nodes 
)
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.

Definition at line 777 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::postInitialize ( currentVersion = null,
originalContentObjectAttribute = null 
)

Initialized the attribute by using the datatype after the actual attribute is stored.

Definition at line 929 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::postUnserialize ( package)

Definition at line 1398 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::removeThis ( id,
currentVersion = null 
)

Remove the attribute by using the datatype.

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.

Definition at line 944 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::resultTemplate ( )
Returns:
the template name to use for information collection result view for the attribute.
Note:
The returned template name does not include the .tpl extension.
See also:
viewTemplate, editTemplate, informationTemplate

Definition at line 1510 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::serialize ( package)

Definition at line 1381 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setContent ( content)

Sets the content for the current attribute

Definition at line 1252 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setContentClassAttributeCanTranslate ( canTranslate)

Sets the cached content class attribute can_translate

Definition at line 467 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setContentClassAttributeIdentifier ( identifier)

Sets the cached content class attribute identifier

Definition at line 459 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setContentClassAttributeName ( name)

Sets the cached content class attribute name

Definition at line 475 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setHasValidationError ( hasError = true)

Definition at line 1318 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setHTTPValue ( value)

Sets the content of variable for the content of the relevant value(s) submitted in HTTP form.

Definition at line 1119 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setInputParameters ( parameters)

Sets the current input parameters to $parameters. The input parameters are set by validateInput() and made avaiable to datatypes trough the function inputParameters().

Note:
The input parameters will only be available for the duration of validateInput().
See also:
inputParameters

Definition at line 623 of file ezcontentobjectattribute.php.

Referenced by validateInformation(), and validateInput().

eZContentObjectAttribute::setValidationError ( )

Definition at line 1304 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setValidationLog ( text)

Definition at line 1343 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::setValidationParameters ( parameters)

Sets the current validation parameters to $parameters. The validation parameters are set by validateInput() and made avaiable to datatypes trough the function validationParameters().

Note:
The validation parameters will only be available for the duration of validateInput().
See also:
validationParameters

Definition at line 654 of file ezcontentobjectattribute.php.

Referenced by validateInformation(), and validateInput().

eZContentObjectAttribute::store ( fieldFilters = null)
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.

Reimplemented from eZPersistentObject.

Definition at line 287 of file ezcontentobjectattribute.php.

Referenced by postUnserialize(), storeData(), storeNewRow(), and updateSortKey().

eZContentObjectAttribute::storeData ( )

Similar to store() but does not call eZDataType::storeObjectAttribute().

If you have some datatype code that needs to store attribute data you should call this instead of store(), this function will avoid infinite recursion.

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.

Definition at line 325 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::storedFileInformation ( object,
objectVersion,
objectLanguage 
)

Calls storedFileInformation() on the current datatype and returns the result.

Definition at line 878 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::storeNewRow ( )

Store one row into content attribute table

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.

Definition at line 389 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::title ( )

Fetches the title of the data instance which is to form the title of the object.

Definition at line 1096 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::toString ( )

Returns the string representation of attribute. This is the pure content of the attribute in string representation used for simplified import/export.

Definition at line 1196 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::translateTo ( languageCode,
updateLanguageMask = true 
)

Clones the attribute to the translation $languageCode.

Note:
The cloned attribute is not stored.
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.
Deprecated.

Definition at line 1051 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::unserialize ( package,
attributeDOMNode 
)

Definition at line 1391 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::unsetInputParameters ( )

Unsets the input parameters previously set by setInputParameters().

See also:
inputParameters

Definition at line 632 of file ezcontentobjectattribute.php.

Referenced by validateInformation(), and validateInput().

eZContentObjectAttribute::unsetValidationParameters ( )

Unsets the validation parameters previously set by setValidationParameters().

See also:
validationParameters

Definition at line 663 of file ezcontentobjectattribute.php.

Referenced by validateInformation(), and validateInput().

eZContentObjectAttribute::updateSortKey ( storeData = true)

Copies the sort key value from the attribute according to the datatype rules.

Note:
The attribute is not stored
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.

Definition at line 349 of file ezcontentobjectattribute.php.

Referenced by store(), and storeData().

eZContentObjectAttribute::validateAddToBasket ( data,
&$  errors 
)

Validates the data contents, returns true on success false if the data does not validate.

Definition at line 606 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::validateInformation ( http,
base,
&$  inputParameters,
validationParameters = array() 
)

Validates the information collection data.  

Definition at line 716 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::validateInput ( http,
base,
&$  inputParameters,
validationParameters = array() 
)

Validates the data contents, returns true on success false if the data does not validate.

Definition at line 587 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::validateIsRequired ( )
Returns:
true if 'is_required' validation should be done otherwise false;

Definition at line 681 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::validationError ( )
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 1365 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::validationLog ( )
Note:
The reference for the return value is required to workaround a bug with PHP references.

Definition at line 1374 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::validationParameters ( )
Returns:
the current validation parameters or false if no parameters has been set.
See also:
setValidationParameters, unsetValidationParameters

Definition at line 673 of file ezcontentobjectattribute.php.

Referenced by validateIsRequired().

eZContentObjectAttribute::value ( )

Returns the content of the relevant value(s) submitted in HTTP form.

Definition at line 1127 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::viewTemplate ( )
Returns:
the template name to use for viewing the attribute.
Note:
The returned template name does not include the .tpl extension.
See also:
editTemplate, informationTemplate

Definition at line 1458 of file ezcontentobjectattribute.php.

Referenced by viewTemplateName().

eZContentObjectAttribute::viewTemplateName ( )
Returns:
the template name to use for viewing the attribute or if the attribute is an information collector the information template name is returned.
Note:
The returned template name does not include the .tpl extension.
See also:
editTemplate, informationTemplate

Definition at line 1430 of file ezcontentobjectattribute.php.


Member Data Documentation

eZContentObjectAttribute::$Content

Contains the content for this attribute.

Definition at line 1527 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ContentClassAttributeCanTranslate

Definition at line 1545 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ContentClassAttributeID

Definition at line 1535 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ContentClassAttributeIdentifier

Definition at line 1544 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ContentClassAttributeIsInformationCollector

Definition at line 1547 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ContentClassAttributeIsRequired

Definition at line 1548 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ContentClassAttributeName

Definition at line 1546 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$DisplayInfo

Contains information on how to display the current attribute in various viewmodes.

Definition at line 1530 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$HTTPValue

Contains the value(s) submitted in HTTP form.

Definition at line 1524 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$IsValid

Stores the is valid.

Definition at line 1533 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ValidationError

Contains the last validation error.

Definition at line 1538 of file ezcontentobjectattribute.php.

eZContentObjectAttribute::$ValidationLog

Contains the last validation error.

Definition at line 1541 of file ezcontentobjectattribute.php.


The documentation for this class was generated from the following file: