示例#1
0
文件: currency.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 getCurrencyObject()
 {
     if (!self::$currency) {
         require_once 'currency.php';
         self::$currency = K2StoreCurrency::getInstance();
     }
     return self::$currency;
 }