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