Esempio n. 1
0
 /**
  * @param string $strName
  * @param string $mixValue
  * @throws QInvalidCastException
  * @throws \Exception
  * @throws \QCallerException
  * @throws \QInvalidCastException
  */
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'SelectedId':
             $this->blnModified = true;
             $this->strSelectedItemId = $mixValue;
             // could be string or integer
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
Esempio n. 2
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'PanelStyle':
             $this->strPanelStyle = \QType::Cast($mixValue, \QType::String);
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }