43         $this->_sLabel = trim( $sLabel );
 
   44         $this->_iIndex = $iIndex;
 
   54         return getStr()->htmlspecialchars( $this->_sLabel );
 
   67     public function addVariant( $sName, $sValue, $blDisabled, $blActive )
 
   69         if ( ( $sName = trim( $sName ) ) ) {
 
   73             if ( !isset( $this->_aList[$sKey] ) ) {
 
   74                 $this->_aList[$sKey] = 
oxNew( 
"oxSelection", $sName, $sValue, $blDisabled, $blActive );
 
   78                 if ( $this->_aList[$sKey]->isDisabled() && !$blDisabled ) {
 
   79                     $this->_aList[$sKey]->setDisabled( $blDisabled );
 
   82                 if ( !$this->_aList[$sKey]->isActive() && $blActive ) {
 
   83                     $this->_aList[$sKey]->setActiveState( $blActive );
 
   88             if ( $this->_aList[$sKey]->isActive() ) {
 
   89                 $this->_oActiveSelection = $this->_aList[$sKey];