public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Headers':
             try {
                 $this->objTabHeadersArray = QType::Cast($mixValue, QType::ArrayType);
                 $this->blnModified = true;
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case '_active':
             // private method to synchronize with jQuery UI
             $this->mixActive = $mixValue[0];
             $this->strSelectedId = $mixValue[1];
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
示例#2
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'Headers':
             try {
                 $this->objTabHeadersArray = QType::Cast($mixValue, QType::ArrayType);
                 $this->blnModified = true;
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
                 break;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }