Inheritance: extends QBaseClass
コード例 #1
0
ファイル: QQuery.class.php プロジェクト: qcodo/qcodo
 public function __set($strName, $mixValue)
 {
     switch ($strName) {
         case 'MaxRowCount':
             try {
                 return $this->intMaxRowCount = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Offset':
             try {
                 return $this->intOffset = QType::Cast($mixValue, QType::Integer);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         default:
             try {
                 return parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
コード例 #2
0
ファイル: QQuery.class.php プロジェクト: hiptc/dle2wordpress
 public function __get($strName)
 {
     switch ($strName) {
         case 'MaxRowCount':
             return $this->intMaxRowCount;
         case 'Offset':
             return $this->intOffset;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }