|
eZ Publish
[trunk]
|
Stores a price in multicurrency. More...
Inheritance diagram for eZMultiPriceType:
Collaboration diagram for eZMultiPriceType: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_' |
Stores a price in multicurrency.
Definition at line 18 of file ezmultipricetype.php.
| eZMultiPriceType::classAttributeContent | ( | $ | classAttribute | ) |
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
| eZContentClassAttribute | $classAttribute |
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.
Reimplemented from eZDataType.
Definition at line 221 of file ezmultipricetype.php.
Reimplemented from eZDataType.
Definition at line 467 of file ezmultipricetype.php.
| eZMultiPriceType::customSortingSQL | ( | $ | params | ) |
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.
Definition at line 30 of file ezmultipricetype.php.
| eZMultiPriceType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
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 | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 299 of file ezmultipricetype.php.
| eZMultiPriceType::initializeClassAttribute | ( | $ | classAttribute | ) |
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.
Reimplemented from eZDataType.
Definition at line 370 of file ezmultipricetype.php.
| eZMultiPriceType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 446 of file ezmultipricetype.php.
| eZMultiPriceType::storeObjectAttribute | ( | $ | objectAttribute | ) |
Stores the datatype data to the database which is related to the object attribute.
Reimplemented from eZDataType.
Definition at line 82 of file ezmultipricetype.php.
Reimplemented from eZDataType.
Definition at line 522 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 | ) |
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.
Reimplemented from eZDataType.
Definition at line 406 of file ezmultipricetype.php.
| eZMultiPriceType::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode 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.
| const eZMultiPriceType::DATA_TYPE_STRING = 'ezmultiprice' |
Definition at line 20 of file ezmultipricetype.php.
| const eZMultiPriceType::DEFAULT_CURRENCY_CODE_FIELD = 'data_text1' |
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.
| const eZMultiPriceType::EXCLUDED_VAT = 2 |
Definition at line 28 of file ezmultipricetype.php.
Referenced by unserializeContentClassAttribute().
| const eZMultiPriceType::INCLUDE_VAT_FIELD = 'data_int1' |
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.
| const eZMultiPriceType::INCLUDED_VAT = 1 |
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.