コード例 #1
0
 public function __get($strName)
 {
     switch ($strName) {
         case "Value":
             if ($this->strText === null || $this->strText === "") {
                 return null;
             } else {
                 return (int) filter_var($this->strText, FILTER_SANITIZE_NUMBER_INT);
             }
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }