|
eZ Publish
[4.2]
|
Stores a price in multicurrency. More...
Inheritance diagram for eZMultiPriceType:
Collaboration diagram for eZMultiPriceType:Public Member Functions | |
| classAttributeContent ($classAttribute) | |
| contentActionList ($classAttribute) | |
| 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 38 of file ezmultipricetype.php.
| eZMultiPriceType::classAttributeContent | ( | $ | classAttribute | ) |
Returns class content.
Reimplemented from eZDataType.
Definition at line 234 of file ezmultipricetype.php.
| eZMultiPriceType::contentActionList | ( | $ | classAttribute | ) |
Reimplemented from eZDataType.
Definition at line 286 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 241 of file ezmultipricetype.php.
| eZMultiPriceType::customSorting | ( | ) |
Reimplemented from eZDataType.
Definition at line 477 of file ezmultipricetype.php.
| eZMultiPriceType::customSortingSQL | ( | $ | params | ) |
Reimplemented from eZDataType.
Definition at line 482 of file ezmultipricetype.php.
| eZMultiPriceType::deleteStoredObjectAttribute | ( | $ | objectAttribute, |
| $ | version = null |
||
| ) |
Clean up stored object attribute
Reimplemented from eZDataType.
Definition at line 299 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 527 of file ezmultipricetype.php.
| eZMultiPriceType::eZMultiPriceType | ( | ) |
Definition at line 50 of file ezmultipricetype.php.
| eZMultiPriceType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 159 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 186 of file ezmultipricetype.php.
| eZMultiPriceType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 341 of file ezmultipricetype.php.
| eZMultiPriceType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 309 of file ezmultipricetype.php.
| eZMultiPriceType::initializeClassAttribute | ( | $ | classAttribute | ) |
Set default class attribute value
Reimplemented from eZDataType.
Definition at line 111 of file ezmultipricetype.php.
| eZMultiPriceType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets the default value.
Reimplemented from eZDataType.
Definition at line 121 of file ezmultipricetype.php.
| eZMultiPriceType::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
Returns the content.
Reimplemented from eZDataType.
Definition at line 215 of file ezmultipricetype.php.
| eZMultiPriceType::postInitializeObjectAttribute | ( | $ | objectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Set default object attribute value.
Reimplemented from eZDataType.
Definition at line 133 of file ezmultipricetype.php.
| eZMultiPriceType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 380 of file ezmultipricetype.php.
| eZMultiPriceType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 456 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 102 of file ezmultipricetype.php.
| eZMultiPriceType::supportsBatchInitializeObjectAttribute | ( | ) |
Reimplemented from eZDataType.
Definition at line 532 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 304 of file ezmultipricetype.php.
| eZMultiPriceType::toString | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 314 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 416 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 469 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 60 of file ezmultipricetype.php.
| const eZMultiPriceType::DATA_TYPE_STRING = 'ezmultiprice' |
Definition at line 40 of file ezmultipricetype.php.
| const eZMultiPriceType::DEFAULT_CURRENCY_CODE_FIELD = 'data_text1' |
Definition at line 41 of file ezmultipricetype.php.
| const eZMultiPriceType::DEFAULT_CURRENCY_CODE_VARIABLE = '_ezmultiprice_currency_code_' |
Definition at line 42 of file ezmultipricetype.php.
| const eZMultiPriceType::EXCLUDED_VAT = 2 |
Definition at line 48 of file ezmultipricetype.php.
Referenced by unserializeContentClassAttribute().
| const eZMultiPriceType::INCLUDE_VAT_FIELD = 'data_int1' |
Definition at line 43 of file ezmultipricetype.php.
Referenced by eZMultiPrice\eZMultiPrice().
| const eZMultiPriceType::INCLUDE_VAT_VARIABLE = '_ezmultiprice_include_vat_' |
Definition at line 44 of file ezmultipricetype.php.
| const eZMultiPriceType::INCLUDED_VAT = 1 |
Definition at line 47 of file ezmultipricetype.php.
Referenced by unserializeContentClassAttribute().
| const eZMultiPriceType::VAT_ID_FIELD = 'data_float1' |
Definition at line 45 of file ezmultipricetype.php.
Referenced by eZMultiPrice\eZMultiPrice().
| const eZMultiPriceType::VAT_ID_VARIABLE = '_ezmultiprice_vat_id_' |
Definition at line 46 of file ezmultipricetype.php.