public static function getInstance() { if (!is_object(self::$instance)) { self::$instance = new J2StoreCurrency(); } return self::$instance; }
public static function getCurrencyObject() { if (!self::$currency) { require_once 'currency.php'; self::$currency = J2StoreCurrency::getInstance(); } return self::$currency; }