|
eZ Publish
[4.2]
|
A datatype which works with multiple options. More...
Inheritance diagram for eZMultiOption2Type:
Collaboration diagram for eZMultiOption2Type:Public Member Functions | |
| batchInitializeObjectAttributeData ($classAttribute) | |
| customObjectAttributeHTTPAction ($http, $action, $contentObjectAttribute, $parameters) | |
| editTemplate ($contentObjectAttribute) | |
| eZMultiOption2Type () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchHTTPInputForGroup ($parentOptionGroup, $http, $base, $contentObjectAttribute, $depth=0) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| isAddToBasketValidationRequired () | |
| isIndexable () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| productOptionInformation ($objectAttribute, $optionID, $productItem) | |
| serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| serializeContentObjectAttribute ($package, $objectAttribute) | |
| storeObjectAttribute ($contentObjectAttribute) | |
| supportsBatchInitializeObjectAttribute () | |
| unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode) | |
| validateAddToBasket ($objectAttribute, $data, &$errors) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
Public Attributes | |
| const | DATA_TYPE_STRING = "ezmultioption2" |
| const | DEFAULT_NAME_VARIABLE = "_ezmultioption2_default_name_" |
| const | MAX_CHILD_LEVEL = 50 |
A datatype which works with multiple options.
This allows the user to add several option choices almost as if he was adding attributes with option datatypes.
This class implements the interface for a datatype but passes most of the work over to the eZMultiOption2 class which handles parsing, storing and manipulation of multioption2s and options.
This datatype supports:
Definition at line 52 of file ezmultioption2type.php.
| eZMultiOption2Type::batchInitializeObjectAttributeData | ( | $ | classAttribute | ) |
Reimplemented from eZDataType.
Definition at line 684 of file ezmultioption2type.php.
| eZMultiOption2Type::customObjectAttributeHTTPAction | ( | $ | http, |
| $ | action, | ||
| $ | contentObjectAttribute, | ||
| $ | parameters | ||
| ) |
This function performs specific actions.
It has some special actions with parameters which is done by exploding $action into several parts with delimeter '_'. The first element is the name of specific action to perform. The second element will contain the key value or id.
The various operation's that is performed by this function are as follow.
Reimplemented from eZDataType.
Definition at line 290 of file ezmultioption2type.php.
| eZMultiOption2Type::editTemplate | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 668 of file ezmultioption2type.php.
| eZMultiOption2Type::eZMultiOption2Type | ( | ) |
Constructor to initialize the datatype.
Definition at line 61 of file ezmultioption2type.php.
| eZMultiOption2Type::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 545 of file ezmultioption2type.php.
| eZMultiOption2Type::fetchHTTPInputForGroup | ( | $ | parentOptionGroup, |
| $ | http, | ||
| $ | base, | ||
| $ | contentObjectAttribute, | ||
| $ | depth = 0 |
||
| ) |
Definition at line 159 of file ezmultioption2type.php.
Referenced by fetchObjectAttributeHTTPInput().
| eZMultiOption2Type::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var integer input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 111 of file ezmultioption2type.php.
| eZMultiOption2Type::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if there are more than one multioption in the list. Reimplemented from eZDataType.
Definition at line 515 of file ezmultioption2type.php.
| eZMultiOption2Type::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets default multioption values.
Reimplemented from eZDataType.
Definition at line 525 of file ezmultioption2type.php.
| eZMultiOption2Type::isAddToBasketValidationRequired | ( | ) |
Reimplemented from eZDataType.
Definition at line 620 of file ezmultioption2type.php.
| eZMultiOption2Type::isIndexable | ( | ) |
Reimplemented from eZDataType.
Definition at line 95 of file ezmultioption2type.php.
| eZMultiOption2Type::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 103 of file ezmultioption2type.php.
| eZMultiOption2Type::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 88 of file ezmultioption2type.php.
| eZMultiOption2Type::productOptionInformation | ( | $ | objectAttribute, |
| $ | optionID, | ||
| $ | productItem | ||
| ) |
Finds the option which has the correct ID , if found it returns an option structure.
Reimplemented from eZDataType.
Definition at line 496 of file ezmultioption2type.php.
| eZMultiOption2Type::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 625 of file ezmultioption2type.php.
| eZMultiOption2Type::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 640 of file ezmultioption2type.php.
| eZMultiOption2Type::storeObjectAttribute | ( | $ | contentObjectAttribute | ) |
This function calles xmlString function to create xml string and then store the content.
Reimplemented from eZDataType.
Definition at line 79 of file ezmultioption2type.php.
| eZMultiOption2Type::supportsBatchInitializeObjectAttribute | ( | ) |
Reimplemented from eZDataType.
Definition at line 679 of file ezmultioption2type.php.
| eZMultiOption2Type::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented from eZDataType.
Definition at line 634 of file ezmultioption2type.php.
| eZMultiOption2Type::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode object |
Reimplemented from eZDataType.
Definition at line 653 of file ezmultioption2type.php.
| eZMultiOption2Type::validateAddToBasket | ( | $ | objectAttribute, |
| $ | data, | ||
| &$ | errors | ||
| ) |
Validates the input for an object attribute during add to basket process and returns a validation state as defined in eZInputValidator.
Reimplemented from eZDataType.
Definition at line 555 of file ezmultioption2type.php.
| eZMultiOption2Type::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validates the input for this datatype.
Reimplemented from eZDataType.
Definition at line 71 of file ezmultioption2type.php.
| const eZMultiOption2Type::DATA_TYPE_STRING = "ezmultioption2" |
Definition at line 56 of file ezmultioption2type.php.
| const eZMultiOption2Type::DEFAULT_NAME_VARIABLE = "_ezmultioption2_default_name_" |
Definition at line 54 of file ezmultioption2type.php.
| const eZMultiOption2Type::MAX_CHILD_LEVEL = 50 |
Definition at line 55 of file ezmultioption2type.php.