예제 #1
0
 public function __set($strText, $mixValue)
 {
     switch ($strText) {
         case "ImageUrl":
             try {
                 $this->strImageUrl = \QType::Cast($mixValue, \QType::String);
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case "AltText":
             try {
                 $this->strAltText = \QType::Cast($mixValue, \QType::String);
                 break;
             } catch (\QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 parent::__set($strText, $mixValue);
             } catch (\QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }