public function __set($strName, $mixValue)
{
$this->blnModified = true;
switch ($strName) {
// APPEARANCE
case "Text":
try {
$this->strText = QType::Cast($mixValue, QType::String);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "TextAlign":
try {
$this->strTextAlign = QType::Cast($mixValue, QType::String);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
case "HtmlEntities":
try {
$this->blnHtmlEntities = QType::Cast($mixValue, QType::Boolean);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
// MISC
// MISC
case "Checked":
try {
$this->blnChecked = QType::Cast($mixValue, QType::Boolean);
break;
} catch (QInvalidCastException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
default:
try {
parent::__set($strName, $mixValue);
break;
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
}
}
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; } } }