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;
             }
     }
 }
Пример #2
0
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case "RenderOnLoad":
             try {
                 return $this->blnRenderOnLoad = QType::Cast($mixValue, QType::String);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "Transition":
             try {
                 return $this->strTransition = 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) {
         // 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;
             }
             // LAYOUT
         // LAYOUT
         case "Wrap":
             try {
                 $this->Attr('wrap', QType::Cast($mixValue, QType::Boolean));
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }