Exemplo n.º 1
0
 /**
  * getInstanceメソッド
  *
  * このクラスのオブジェクトを生成する。
  * 既に生成されていたら、前回と同じものを返す。
  *
  * @return object $instance
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 /**
  * コンストラクタ。
  */
 function __construct()
 {
     parent::__construct();
     $this->_authOBJ = ComAuth::getInstance();
     $this->_authOBJ->setStorage(ComAuthMyStorage::getInstance());
 }