eZ Publish  [trunk]
eZMultiPriceType Class Reference

Stores a price in multicurrency. More...

+ Inheritance diagram for eZMultiPriceType:
+ Collaboration diagram for eZMultiPriceType:

List of all members.

Public Member Functions

 classAttributeContent ($classAttribute)
 contentActionList ($classAttribute)
 Return content action(s) which can be performed on object containing the current datatype.
 customObjectAttributeHTTPAction ($http, $action, $contentObjectAttribute, $parameters)
 customSorting ()
 customSortingSQL ($params)
 deleteStoredObjectAttribute ($objectAttribute, $version=null)
 diff ($old, $new, $options=false)
 eZMultiPriceType ()
 fetchClassAttributeHTTPInput ($http, $base, $classAttribute)
 fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute)
 fromString ($contentObjectAttribute, $string)
 hasObjectAttributeContent ($contentObjectAttribute)
 initializeClassAttribute ($classAttribute)
 initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute)
 objectAttributeContent ($contentObjectAttribute)
 postInitializeObjectAttribute ($objectAttribute, $currentVersion, $originalContentObjectAttribute)
 serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode)
 serializeContentObjectAttribute ($package, $objectAttribute)
 storeObjectAttribute ($attribute)
 supportsBatchInitializeObjectAttribute ()
 title ($contentObjectAttribute, $name=null)
 toString ($contentObjectAttribute)
 unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode)
 unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode)
 validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute)

Public Attributes

const DATA_TYPE_STRING = 'ezmultiprice'
const DEFAULT_CURRENCY_CODE_FIELD = 'data_text1'
const DEFAULT_CURRENCY_CODE_VARIABLE = '_ezmultiprice_currency_code_'
const EXCLUDED_VAT = 2
const INCLUDE_VAT_FIELD = 'data_int1'
const INCLUDE_VAT_VARIABLE = '_ezmultiprice_include_vat_'
const INCLUDED_VAT = 1
const VAT_ID_FIELD = 'data_float1'
const VAT_ID_VARIABLE = '_ezmultiprice_vat_id_'

Detailed Description

Stores a price in multicurrency.

Definition at line 18 of file ezmultipricetype.php.


Member Function Documentation

Returns class content.

Reimplemented from eZDataType.

Definition at line 214 of file ezmultipricetype.php.

eZMultiPriceType::contentActionList ( classAttribute)

Return content action(s) which can be performed on object containing the current datatype.

Return format is array of arrays with key 'name' and 'action'. 'action' can be mapped to url in datatype.ini

Parameters:
eZContentClassAttribute$classAttribute
Returns:
array

Reimplemented from eZDataType.

Definition at line 274 of file ezmultipricetype.php.

eZMultiPriceType::customObjectAttributeHTTPAction ( http,
action,
objectAttribute,
parameters 
)

Executes a custom action for an object attribute which was defined on the web page.

Note:
Default implementation does nothing.

Reimplemented from eZDataType.

Definition at line 221 of file ezmultipricetype.php.

Reimplemented from eZDataType.

Definition at line 467 of file ezmultipricetype.php.

Reimplemented from eZDataType.

Definition at line 472 of file ezmultipricetype.php.

eZMultiPriceType::deleteStoredObjectAttribute ( objectAttribute,
version = null 
)

Clean up stored object attribute

Reimplemented from eZDataType.

Definition at line 289 of file ezmultipricetype.php.

eZMultiPriceType::diff ( old,
new,
options = false 
)

Method used by content diff system to retrieve changes in attributes. This method implements the default behaviour, which is to show old and new version values of the object.

Reimplemented from eZDataType.

Definition at line 517 of file ezmultipricetype.php.

eZMultiPriceType::fetchClassAttributeHTTPInput ( http,
base,
classAttribute 
)

Fetches the HTTP input for the content class attribute.

Note:
Default implementation does nothing.

Reimplemented from eZDataType.

Definition at line 139 of file ezmultipricetype.php.

eZMultiPriceType::fetchObjectAttributeHTTPInput ( http,
base,
contentObjectAttribute 
)

Fetches the http post var integer input and stores it in the data instance.

Reimplemented from eZDataType.

Definition at line 166 of file ezmultipricetype.php.

eZMultiPriceType::fromString ( contentObjectAttribute,
string 
)

Reimplemented from eZDataType.

Definition at line 331 of file ezmultipricetype.php.

eZMultiPriceType::hasObjectAttributeContent ( contentObjectAttribute)
Returns:
true if the datatype finds any content in the attribute $contentObjectAttribute.

Reimplemented from eZDataType.

Definition at line 299 of file ezmultipricetype.php.

Set default class attribute value

Reimplemented from eZDataType.

Definition at line 91 of file ezmultipricetype.php.

eZMultiPriceType::initializeObjectAttribute ( contentObjectAttribute,
currentVersion,
originalContentObjectAttribute 
)

Sets the default value.

Reimplemented from eZDataType.

Definition at line 101 of file ezmultipricetype.php.

eZMultiPriceType::objectAttributeContent ( contentObjectAttribute)

Returns the content.

Reimplemented from eZDataType.

Definition at line 195 of file ezmultipricetype.php.

eZMultiPriceType::postInitializeObjectAttribute ( objectAttribute,
currentVersion,
originalContentObjectAttribute 
)

Set default object attribute value.

Reimplemented from eZDataType.

Definition at line 113 of file ezmultipricetype.php.

eZMultiPriceType::serializeContentClassAttribute ( classAttribute,
attributeNode,
attributeParametersNode 
)

Adds the necessary dom structure to the attribute parameters.

Note:
The default is to add unsupported='true' to the attribute node, meaning that the datatype does not support serializing.

Reimplemented from eZDataType.

Definition at line 370 of file ezmultipricetype.php.

eZMultiPriceType::serializeContentObjectAttribute ( package,
objectAttribute 
)
Parameters:
package
objectAttributecontent attribute
Returns:
a DOM representation of the content object attribute

Reimplemented from eZDataType.

Definition at line 446 of file ezmultipricetype.php.

Stores the datatype data to the database which is related to the object attribute.

Returns:
True if the value was stored correctly.
Note:
The method is entirely up to the datatype, for instance it could reuse the available types in the the attribute or store in a separate object.
See also:
fetchObjectAttributeHTTPInput

Reimplemented from eZDataType.

Definition at line 82 of file ezmultipricetype.php.

eZMultiPriceType::title ( objectAttribute,
name = null 
)

Returns the title of the current type, this is to form the title of the object.

Reimplemented from eZDataType.

Definition at line 294 of file ezmultipricetype.php.

eZMultiPriceType::toString ( objectAttribute)
Returns:
string representation of an contentobjectattribute data for simplified export

Reimplemented from eZDataType.

Definition at line 304 of file ezmultipricetype.php.

eZMultiPriceType::unserializeContentClassAttribute ( classAttribute,
attributeNode,
attributeParametersNode 
)

Extracts values from the attribute parameters and sets it in the class attribute.

Note:
This function is called after the attribute has been stored and a second store is called after this function is done.

Reimplemented from eZDataType.

Definition at line 406 of file ezmultipricetype.php.

eZMultiPriceType::unserializeContentObjectAttribute ( package,
objectAttribute,
attributeNode 
)

Unserialize contentobject attribute

Parameters:
package
objectAttributecontentobject attribute object
attributeNodeezdomnode object

Reimplemented from eZDataType.

Definition at line 459 of file ezmultipricetype.php.

eZMultiPriceType::validateObjectAttributeHTTPInput ( http,
base,
contentObjectAttribute 
)

Validates the input and returns true if the input was valid for this datatype.

Reimplemented from eZDataType.

Definition at line 40 of file ezmultipricetype.php.


Member Data Documentation

const eZMultiPriceType::DATA_TYPE_STRING = 'ezmultiprice'

Definition at line 20 of file ezmultipricetype.php.

Definition at line 21 of file ezmultipricetype.php.

const eZMultiPriceType::DEFAULT_CURRENCY_CODE_VARIABLE = '_ezmultiprice_currency_code_'

Definition at line 22 of file ezmultipricetype.php.

Definition at line 28 of file ezmultipricetype.php.

Referenced by unserializeContentClassAttribute().

Definition at line 23 of file ezmultipricetype.php.

Referenced by eZMultiPrice\eZMultiPrice().

const eZMultiPriceType::INCLUDE_VAT_VARIABLE = '_ezmultiprice_include_vat_'

Definition at line 24 of file ezmultipricetype.php.

Definition at line 27 of file ezmultipricetype.php.

Referenced by unserializeContentClassAttribute().

const eZMultiPriceType::VAT_ID_FIELD = 'data_float1'

Definition at line 25 of file ezmultipricetype.php.

Referenced by eZMultiPrice\eZMultiPrice().

const eZMultiPriceType::VAT_ID_VARIABLE = '_ezmultiprice_vat_id_'

Definition at line 26 of file ezmultipricetype.php.


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