public function __set($strName, $mixValue) { switch ($strName) { case "Href": try { return $this->Attr('href', QType::Cast($mixValue, QType::String)); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { $this->blnModified = true; switch ($strName) { case "Checked": try { return $this->blnChecked = QType::Cast($mixValue, QType::Boolean); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
public function __set($strName, $mixValue) { $this->blnModified = true; switch ($strName) { // APPEARANCE case "Placeholder": try { $this->Attr('placeholder', QType::Cast($mixValue, QType::String)); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Columns": try { $this->Attr('columns', QType::Cast($mixValue, QType::Integer)); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } // BEHAVIOR // BEHAVIOR case "CrossScripting": try { $this->strCrossScripting = QType::Cast($mixValue, QType::Boolean); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "MaxLength": try { $this->Attr('minlength', QType::Cast($mixValue, QType::Integer)); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "MinLength": try { $this->Attr('minlength', QType::Cast($mixValue, QType::Integer)); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "ReadOnly": try { $this->Attr('readonly', QType::Cast($mixValue, QType::Boolean)) ? 'readonly' : ''; break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Rows": try { $this->Attr('rows', QType::Cast($mixValue, QType::Integer)); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "TextMode": try { $this->strTextMode = QType::Cast($mixValue, QType::String); break; } catch (QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } break; } }
public function __set($strName, $mixValue) { switch ($strName) { case "Src": try { return $this->strSrc = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "FileLoc": try { return $this->strFileLoc = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "Success": try { return $this->strSuccess = QType::Cast($mixValue, QType::String); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "MediaObject": try { return $this->objMedia = QType::Cast($mixValue, 'Media'); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { return parent::__set($strName, $mixValue); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }