Ejemplo n.º 1
0
 public function __get($strName)
 {
     switch ($strName) {
         // APPEARANCE
         case "AlternateText":
             return $this->strAlternateText;
         case "ImageUrl":
             return $this->strImageUrl;
             // BEHAVIOR
         // BEHAVIOR
         case "PrimaryButton":
             return $this->blnPrimaryButton;
         case "ClickX":
             return $this->intClickX;
         case "ClickY":
             return $this->intClickY;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Ejemplo n.º 2
0
 /**
  * The PHP __get magic method
  * @param string $strName Name of the property
  *
  * @return array|bool|int|mixed|null|QControl|QForm|string
  * @throws Exception|QCallerException
  */
 public function __get($strName)
 {
     switch ($strName) {
         // APPEARANCE
         case "Text":
             return $this->strText;
         case "HtmlEntities":
             return $this->blnHtmlEntities;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }