コード例 #1
0
ファイル: Manager.php プロジェクト: 032404cxd/prototype_main
 public static function getInstance()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: Manager.php プロジェクト: eappl/prototype
 /**
  * 自动初始化用户状态
  */
 public function auto()
 {
     if ($this->isLogin()) {
         $bind = array();
         $bind['last_active'] = time();
         $this->update($this->id, $bind);
     }
     $this->log = Widget_Log_Manager::getInstance();
 }