|
eZ Publish
[4.2]
|
Encapsulates multiple options in one datatype. More...
Public Member Functions | |
| addChildGroup ($group, $multioptionID=false) | |
| addMultiOption ($name, $multiOptionPriority, $defaultValue, $multiOptionID) | |
| addOption ($newID, $OptionID, $optionValue, $optionAdditionalPrice, $isSelectable=1, $objectID=0) | |
| addOptionForMultioptionID ($multioptionID, $OptionID, $optionValue, $optionAdditionalPrice) | |
| addOptionToRules ($multioptionID, $optionID) | |
| attribute ($name) | |
| attributes () | |
| changeMultiOptionId () | |
| cleanupRules () | |
| createDomElementForGroup ($doc, $groupNode, $depth=0) | |
| decodeXML ($xmlString) | |
| eZMultiOption2 ($name, $id=0, $multioptionIDCounter=0, $optionCounter=0, $groupID=0) | |
| findGroup ($groupID, $depth=0, $groupStack=array()) | |
| findMultiOption ($multioptionID, $depth=0) | |
| findOption ($multioption, $optionID) | |
| getGroupIDCounter () | |
| getIDsFromMultioptions ($params) | |
| getMultiOptionIDCounter () | |
| getOptionCounter () | |
| hasAttribute ($name) | |
| initCounters ($group) | |
| initCountersRecursive () | |
| initFromXMLCompat ($root, $new=false) | |
| initGroupFromDom ($root, $new=false) | |
| removeChildGroup ($groupID, $depth=0) | |
| removeMultiOptions ($array_remove) | |
| removeObjectFromOption ($multioptionID, $optionID) | |
| removeOptions ($arrayRemove, $optionId) | |
| resetCounters () | |
| resetOptionCounter () | |
| runFunctionForAllGroups ($func, $params) | |
| setGroupIDCounter ($groupIDCounter) | |
| setMultiOptionIDCounter ($multioptionIDCounter) | |
| setObjectForOption ($multioptionID, $optionID, $objectID) | |
| setOptionCounter ($optionCounter) | |
| xmlString () | |
Public Attributes | |
| $ChildGroupList | |
| $GroupID | |
| $GroupIDCounter | |
| $MultiOptionIDCounter | |
| Contains the multioption counter value. | |
| $MultioptionIDList = array() | |
| $Name | |
| Contains the Option name. | |
| $OptionCounter | |
| Contains the option counter value. | |
| $OptionIDList = array() | |
| $Options | |
| Contains the Options. | |
Encapsulates multiple options in one datatype.
Definition at line 36 of file ezmultioption2.php.
| eZMultiOption2::addChildGroup | ( | $ | group, |
| $ | multioptionID = false |
||
| ) |
Definition at line 82 of file ezmultioption2.php.
Referenced by eZMultiOption2Type\customObjectAttributeHTTPAction(), and decodeXML().
| eZMultiOption2::addMultiOption | ( | $ | name, |
| $ | multiOptionPriority, | ||
| $ | defaultValue, | ||
| $ | multiOptionID | ||
| ) |
Adds an Multioption named $name
| $name | contains the name of multioption. |
| $multiOptionPriority | is stored for displaying the array in order. |
| $defaultValue | is stored to display the options by default. |
Definition at line 112 of file ezmultioption2.php.
Referenced by initGroupFromDom().
| eZMultiOption2::addOption | ( | $ | newID, |
| $ | OptionID, | ||
| $ | optionValue, | ||
| $ | optionAdditionalPrice, | ||
| $ | isSelectable = 1, |
||
| $ | objectID = 0 |
||
| ) |
Adds an Option to multioption $name
| $newID | is the element key value to which the new option will be added. |
| $optionValue | is the original value to display for users. |
| $optionAdditionalPrice | is a price value that is used to store price of the option values. |
Definition at line 143 of file ezmultioption2.php.
Referenced by initGroupFromDom().
| eZMultiOption2::addOptionForMultioptionID | ( | $ | multioptionID, |
| $ | OptionID, | ||
| $ | optionValue, | ||
| $ | optionAdditionalPrice | ||
| ) |
Definition at line 169 of file ezmultioption2.php.
| eZMultiOption2::addOptionToRules | ( | $ | multioptionID, |
| $ | optionID | ||
| ) |
Definition at line 508 of file ezmultioption2.php.
| eZMultiOption2::attribute | ( | $ | name | ) |
Returns an attribute. The valid attributes are name and multioption_list name contains the name of multioption multioption_list contains the list of all multioptions.
Definition at line 551 of file ezmultioption2.php.
Referenced by findGroup(), initCounters(), and removeChildGroup().
| eZMultiOption2::attributes | ( | ) |
Definition at line 526 of file ezmultioption2.php.
Referenced by hasAttribute().
| eZMultiOption2::changeMultiOptionId | ( | ) |
Change the id of multioption in ascending order.
Definition at line 362 of file ezmultioption2.php.
Referenced by initGroupFromDom(), and removeMultiOptions().
| eZMultiOption2::cleanupRules | ( | ) |
Definition at line 462 of file ezmultioption2.php.
| eZMultiOption2::createDomElementForGroup | ( | $ | doc, |
| $ | groupNode, | ||
| $ | depth = 0 |
||
| ) |
Definition at line 806 of file ezmultioption2.php.
Referenced by xmlString().
| eZMultiOption2::decodeXML | ( | $ | xmlString | ) |
Will decode an xml string and initialize the eZ Multi option object. If $xmlString is on empty then it will call addMultiOption() and addOption() functions to create new multioption else it will decode the xml string.
| $xmlString | contain the complete data structure for multioptions. |
Definition at line 615 of file ezmultioption2.php.
| eZMultiOption2::eZMultiOption2 | ( | $ | name, |
| $ | id = 0, |
||
| $ | multioptionIDCounter = 0, |
||
| $ | optionCounter = 0, |
||
| $ | groupID = 0 |
||
| ) |
Initializes with empty multioption2 list.
Definition at line 41 of file ezmultioption2.php.
Referenced by decodeXML(), initFromXMLCompat(), and initGroupFromDom().
| eZMultiOption2::findGroup | ( | $ | groupID, |
| $ | depth = 0, |
||
| $ | groupStack = array() |
||
| ) |
Definition at line 211 of file ezmultioption2.php.
| eZMultiOption2::findMultiOption | ( | $ | multioptionID, |
| $ | depth = 0 |
||
| ) |
Definition at line 247 of file ezmultioption2.php.
Referenced by addOptionForMultioptionID(), removeObjectFromOption(), and setObjectForOption().
| eZMultiOption2::findOption | ( | $ | multioption, |
| $ | optionID | ||
| ) |
Definition at line 279 of file ezmultioption2.php.
| eZMultiOption2::getGroupIDCounter | ( | ) |
Definition at line 59 of file ezmultioption2.php.
Referenced by initCounters().
| eZMultiOption2::getIDsFromMultioptions | ( | $ | params | ) |
Definition at line 447 of file ezmultioption2.php.
| eZMultiOption2::getMultiOptionIDCounter | ( | ) |
Definition at line 68 of file ezmultioption2.php.
Referenced by initCounters().
| eZMultiOption2::getOptionCounter | ( | ) |
Definition at line 77 of file ezmultioption2.php.
Referenced by initCounters().
| eZMultiOption2::hasAttribute | ( | $ | name | ) |
Returns true if object have an attribute. The valid attributes are name and multioption_list.
| $name | contains the name of attribute |
Definition at line 541 of file ezmultioption2.php.
| eZMultiOption2::initCounters | ( | $ | group | ) |
Definition at line 593 of file ezmultioption2.php.
Referenced by addChildGroup(), addOptionForMultioptionID(), decodeXML(), initFromXMLCompat(), and initGroupFromDom().
| eZMultiOption2::initCountersRecursive | ( | ) |
Definition at line 588 of file ezmultioption2.php.
| eZMultiOption2::initFromXMLCompat | ( | $ | root, |
| $ | new = false |
||
| ) |
Definition at line 672 of file ezmultioption2.php.
Referenced by decodeXML().
| eZMultiOption2::initGroupFromDom | ( | $ | root, |
| $ | new = false |
||
| ) |
Definition at line 692 of file ezmultioption2.php.
Referenced by decodeXML().
| eZMultiOption2::removeChildGroup | ( | $ | groupID, |
| $ | depth = 0 |
||
| ) |
Definition at line 372 of file ezmultioption2.php.
| eZMultiOption2::removeMultiOptions | ( | $ | array_remove | ) |
Remove MultiOption from the array. After calling this function all the options associated with that multioption will be removed. This function also calles to changeMultiOption to reset the key value of multioption array.
| $array_remove | is the array of those multiOptions which is selected to remove. |
Definition at line 414 of file ezmultioption2.php.
| eZMultiOption2::removeObjectFromOption | ( | $ | multioptionID, |
| $ | optionID | ||
| ) |
Definition at line 192 of file ezmultioption2.php.
| eZMultiOption2::removeOptions | ( | $ | arrayRemove, |
| $ | optionId | ||
| ) |
Remove Options from the multioption. This function first remove selected options and then reset the key value if all options for that multioption.
| $arrayRemove | is a list of all array elements which is selected to remove from the multioptions. |
| $optionId | is the key value if multioption from which it is required to remove the options. |
Definition at line 432 of file ezmultioption2.php.
| eZMultiOption2::resetCounters | ( | ) |
Definition at line 335 of file ezmultioption2.php.
| eZMultiOption2::resetOptionCounter | ( | ) |
Finds the largest option_id among the options and sets it as $this->OptionCounter
Definition at line 343 of file ezmultioption2.php.
Referenced by resetCounters().
| eZMultiOption2::runFunctionForAllGroups | ( | $ | func, |
| $ | params | ||
| ) |
Definition at line 317 of file ezmultioption2.php.
Referenced by cleanupRules(), and initCountersRecursive().
| eZMultiOption2::setGroupIDCounter | ( | $ | groupIDCounter | ) |
Definition at line 54 of file ezmultioption2.php.
| eZMultiOption2::setMultiOptionIDCounter | ( | $ | multioptionIDCounter | ) |
Definition at line 63 of file ezmultioption2.php.
Referenced by initCounters().
| eZMultiOption2::setObjectForOption | ( | $ | multioptionID, |
| $ | optionID, | ||
| $ | objectID | ||
| ) |
Definition at line 179 of file ezmultioption2.php.
| eZMultiOption2::setOptionCounter | ( | $ | optionCounter | ) |
Definition at line 72 of file ezmultioption2.php.
| eZMultiOption2::xmlString | ( | ) |
Will return the XML string for this MultiOption set.
Definition at line 769 of file ezmultioption2.php.
| eZMultiOption2::$ChildGroupList |
Definition at line 888 of file ezmultioption2.php.
| eZMultiOption2::$GroupID |
Definition at line 880 of file ezmultioption2.php.
| eZMultiOption2::$GroupIDCounter |
Definition at line 885 of file ezmultioption2.php.
| eZMultiOption2::$MultiOptionIDCounter |
Contains the multioption counter value.
Definition at line 884 of file ezmultioption2.php.
| eZMultiOption2::$MultioptionIDList = array() |
Definition at line 889 of file ezmultioption2.php.
| eZMultiOption2::$Name |
Contains the Option name.
Definition at line 879 of file ezmultioption2.php.
| eZMultiOption2::$OptionCounter |
Contains the option counter value.
Definition at line 887 of file ezmultioption2.php.
| eZMultiOption2::$OptionIDList = array() |
Definition at line 890 of file ezmultioption2.php.
| eZMultiOption2::$Options |
Contains the Options.
Definition at line 882 of file ezmultioption2.php.