48 $this->_sLabel = trim($sLabel);
49 $this->_iIndex = $iIndex;
59 return getStr()->htmlspecialchars($this->_sLabel);
70 public function addVariant($sName, $sValue, $blDisabled, $blActive)
72 if (($sName = trim($sName))) {
76 if (!isset($this->_aList[$sKey])) {
77 $this->_aList[$sKey] =
oxNew(
"oxSelection", $sName, $sValue, $blDisabled, $blActive);
81 if ($this->_aList[$sKey]->isDisabled() && !$blDisabled) {
82 $this->_aList[$sKey]->setDisabled($blDisabled);
85 if (!$this->_aList[$sKey]->isActive() && $blActive) {
86 $this->_aList[$sKey]->setActiveState($blActive);
91 if ($this->_aList[$sKey]->isActive()) {
92 $this->_oActiveSelection = $this->_aList[$sKey];