Class

eZMultiOption2

class eZMultiOption2

Properties

$Name
$GroupID
$Options
$MultiOptionIDCounter
$GroupIDCounter
$OptionCounter
$ChildGroupList
$MultioptionIDList
$OptionIDList

Methods

__construct($name $name, int $id, int $multioptionIDCounter, int $optionCounter, int $groupID)

Initializes with empty multioption2 list.

setGroupIDCounter($groupIDCounter)

getGroupIDCounter()

setMultiOptionIDCounter($multioptionIDCounter)

getMultiOptionIDCounter()

setOptionCounter($optionCounter)

getOptionCounter()

addChildGroup($group, $multioptionID = false)

addMultiOption($name, $multiOptionPriority, $defaultValue, $multiOptionID)

addOption($newID, $OptionID, $optionValue, $optionAdditionalPrice, $isSelectable = 1, $objectID)

addOptionForMultioptionID($multioptionID, $OptionID, $optionValue, $optionAdditionalPrice)

setObjectForOption($multioptionID, $optionID, $objectID)

removeObjectFromOption($multioptionID, $optionID)

findGroup($groupID, $depth, $groupStack = array())

findMultiOption($multioptionID, $depth)

findOption($multioption, $optionID)

runFunctionForAllGroups($func, $params)

resetCounters()

resetOptionCounter()

changeMultiOptionId()

removeChildGroup($groupID, $depth)

removeMultiOptions($array_remove)

removeOptions($arrayRemove, $optionId)

getIDsFromMultioptions($params)

cleanupRules()

addOptionToRules($multioptionID, $optionID)

attributes()

hasAttribute($name)

attribute($name)

initCountersRecursive()

initCounters($group)

decodeXML($xmlString)

initFromXMLCompat($root, $new = false)

initGroupFromDom($root, $new = false)

xmlString()

createDomElementForGroup($doc, $groupNode, $depth)

Details

at line 27
public __construct($name $name, int $id, int $multioptionIDCounter, int $optionCounter, int $groupID)

Initializes with empty multioption2 list.

Parameters

$name $name
int $id
int $multioptionIDCounter
int $optionCounter
int $groupID

at line 40
public setGroupIDCounter($groupIDCounter)

Parameters

$groupIDCounter

at line 45
public getGroupIDCounter()

at line 49
public setMultiOptionIDCounter($multioptionIDCounter)

Parameters

$multioptionIDCounter

at line 54
public getMultiOptionIDCounter()

at line 58
public setOptionCounter($optionCounter)

Parameters

$optionCounter

at line 63
public getOptionCounter()

at line 68
public addChildGroup($group, $multioptionID = false)

Parameters

$group
$multioptionID

at line 98
public addMultiOption($name, $multiOptionPriority, $defaultValue, $multiOptionID)

Parameters

$name
$multiOptionPriority
$defaultValue
$multiOptionID

at line 129
public addOption($newID, $OptionID, $optionValue, $optionAdditionalPrice, $isSelectable = 1, $objectID)

Parameters

$newID
$OptionID
$optionValue
$optionAdditionalPrice
$isSelectable
$objectID

at line 155
public addOptionForMultioptionID($multioptionID, $OptionID, $optionValue, $optionAdditionalPrice)

Parameters

$multioptionID
$OptionID
$optionValue
$optionAdditionalPrice

at line 165
public setObjectForOption($multioptionID, $optionID, $objectID)

Parameters

$multioptionID
$optionID
$objectID

at line 178
public removeObjectFromOption($multioptionID, $optionID)

Parameters

$multioptionID
$optionID

at line 197
public findGroup($groupID, $depth, $groupStack = array())

Parameters

$groupID
$depth
$groupStack

at line 233
public findMultiOption($multioptionID, $depth)

Parameters

$multioptionID
$depth

at line 265
public findOption($multioption, $optionID)

Parameters

$multioption
$optionID

at line 303
public runFunctionForAllGroups($func, $params)

Parameters

$func
$params

at line 321
public resetCounters()

at line 329
public resetOptionCounter()

at line 348
public changeMultiOptionId()

at line 358
public removeChildGroup($groupID, $depth)

Parameters

$groupID
$depth

at line 400
public removeMultiOptions($array_remove)

Parameters

$array_remove

at line 418
public removeOptions($arrayRemove, $optionId)

Parameters

$arrayRemove
$optionId

at line 433
public getIDsFromMultioptions($params)

Parameters

$params

at line 448
public cleanupRules()

at line 494
public addOptionToRules($multioptionID, $optionID)

Parameters

$multioptionID
$optionID

at line 512
public attributes()

at line 527
public hasAttribute($name)

Parameters

$name

at line 537
public attribute($name)

Parameters

$name

at line 574
public initCountersRecursive()

at line 579
public initCounters($group)

Parameters

$group

at line 601
public decodeXML($xmlString)

Parameters

$xmlString

at line 658
public initFromXMLCompat($root, $new = false)

Parameters

$root
$new

at line 678
public initGroupFromDom($root, $new = false)

Parameters

$root
$new

at line 755
public xmlString()

at line 792
public createDomElementForGroup($doc, $groupNode, $depth)

Parameters

$doc
$groupNode
$depth