public function __set($strName, $mixValue) { switch ($strName) { case 'Disabled': try { $this->blnDisabled = QType::Cast($mixValue, QType::Boolean); if ($this->OnPage) { $this->CallJqUiMethod(true, 'option', 'disabled', $this->blnDisabled); } break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Icons': $this->mixIcons = $mixValue; if ($this->OnPage) { $this->CallJqUiMethod(true, 'option', 'icons', $mixValue); } break; case 'Label': try { $this->strLabel = QType::Cast($mixValue, QType::String); if ($this->OnPage) { $this->CallJqUiMethod(true, 'option', 'label', $this->strLabel); } break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'JqText': try { $this->blnJqText = QType::Cast($mixValue, QType::Boolean); if ($this->OnPage) { $this->CallJqUiMethod(true, 'option', 'text', $this->blnJqText); } break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case 'Enabled': $this->Disabled = !$mixValue; // Tie in standard QCubed functionality parent::__set($strName, $mixValue); break; default: try { parent::__set($strName, $mixValue); break; } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }