eZ Publish  [4.2]
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)
 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 38 of file ezmultipricetype.php.


Member Function Documentation

eZMultiPriceType::classAttributeContent ( classAttribute)

Returns class content.

Reimplemented from eZDataType.

Definition at line 234 of file ezmultipricetype.php.

eZMultiPriceType::contentActionList ( classAttribute)
Returns:
the content action(s) which can be performed on object containing the current datatype.

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.

Note:
Default implementation does nothing.

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.

Note:
Default implementation does nothing.

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)
Returns:
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.

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 380 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 456 of file ezmultipricetype.php.

eZMultiPriceType::storeObjectAttribute ( objectAttribute)

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 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)
Returns:
string representation of an contentobjectattribute data for simplified export

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.

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 416 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 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.


Member Data Documentation

const eZMultiPriceType::DATA_TYPE_STRING = 'ezmultiprice'

Definition at line 40 of file ezmultipricetype.php.

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.

Definition at line 48 of file ezmultipricetype.php.

Referenced by unserializeContentClassAttribute().

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.

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.


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