コード例 #1
0
ファイル: Sorter.php プロジェクト: argenis1763/vc
 public function __get($name)
 {
     if (array_key_exists($name, $this->_options)) {
         return $this->_options[$name];
     }
     return parent::__get($name);
 }
コード例 #2
0
ファイル: ElFinderWidget.php プロジェクト: ASDAFF/its-crm
 public function __get($name)
 {
     if (!$this->canGetProperty($name)) {
         return $this->options[$name];
     } else {
         return parent::__get($name);
     }
 }
コード例 #3
0
 /**
  * override defaults __get method to allow get options easier
  * 
  * @param mixed $name
  * @return mixed
  */
 function __get($name)
 {
     try {
         return parent::__get($name);
     } catch (exception $e) {
         if (isset($this->_options[$name])) {
             return $this->_options[$name];
         }
         throw $e;
     }
 }