コード例 #1
0
ファイル: length.php プロジェクト: A-Bush/pprod
 public static function getInstance()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: base.php プロジェクト: A-Bush/pprod
 public static function getLengthObject()
 {
     if (!self::$length) {
         require_once 'length.php';
         self::$length = K2StoreLength::getInstance();
     }
     return self::$length;
 }