/**
  * Add specific attributes
  * @param string
  * @param mixed
  */
 public function __set($strKey, $varValue)
 {
     switch ($strKey) {
         // convert array from optionwizard to treedimensional array
         case 'options':
             $this->arrOptions = deserialize($varValue);
             // If value of first option is empty, we assume it's the blank option
             if ($this->arrOptions[0]['value'] == '') {
                 if (!$this->includeBlankOption) {
                     $this->includeBlankOption = true;
                     if ($this->blankOptionLabel == '') {
                         $this->blankOptionLabel = $this->arrOptions[0]['label'];
                     }
                 }
                 array_shift($this->arrOptions);
             }
             if ($this->arrOptions[0]['group']) {
                 $arrValue = array();
                 $arrOptions = array();
                 $strOptionKey = '';
                 foreach ($this->arrOptions as $arrOption) {
                     if ($arrOption['group']) {
                         $strOptionKey = $arrOption['value'];
                     } else {
                         $arrOptions[$strOptionKey][] = $arrOption;
                     }
                     if ($arrOption['default']) {
                         $arrValue[] = $arrOption['value'];
                     }
                 }
                 $this->varValue = $arrValue;
                 $this->arrOptions = $arrOptions;
             }
             break;
         default:
             parent::__set($strKey, $varValue);
             break;
     }
 }
 /**
  * Add specific attributes
  */
 public function __set($strKey, $varValue)
 {
     parent::__set($strKey, $varValue);
 }