Exemple #1
0
 public function __construct($para = array())
 {
     if (!empty($para)) {
         $this->_table = $para['table'];
         $this->_pk = $para['pk'];
     }
     if (isset($this->_pre_cache_key) && (($ttl = getglobal('setting/memory/' . $this->_table)) !== null || ($ttl = $this->_cache_ttl) !== null) && memory('check')) {
         $this->_cache_ttl = $ttl;
         $this->_allowmem = true;
     }
     if (getglobal('setting/CorpID') && getglobal('setting/CorpSecret')) {
         $this->_wxbind = true;
     }
     $this->_init_extend();
     parent::__construct();
 }
Exemple #2
0
 public function __set($name, $value)
 {
     if (isset($this->_obj) && property_exists($this->_obj, $name) === true) {
         return $this->_obj->{$name} = $value;
     } else {
         return parent::__set($name, $value);
     }
 }