Exemple #1
0
 /**
  *  getInstanceメソッド
  *
  *  このクラスのオブジェクトを生成する。
  *  既に生成されていたら、前回と同じものを返す。
  *
  *  @return object  $instance
  */
 public static function getInstance()
 {
     if (!self::$instance) {
         $className = __CLASS__;
         self::$instance = new $className();
     }
     return self::$instance;
 }
Exemple #2
0
 /**
  * Constructor
  * void __condtruct()
  */
 public function __construct()
 {
     parent::__construct();
 }