Exemple #1
0
 public static function getInstance()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
 /**
  * 自动初始化用户状态
  */
 public function auto()
 {
     if ($this->isLogin()) {
         $bind = array();
         $bind['last_active'] = time();
         $this->update($this->id, $bind);
     }
     $this->log = Widget_Log_Manager::getInstance();
 }