CoRefillFactory.php 433 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace refill;
  3. require_once(BASE_HELPER_PATH . '/refill/RefillBase.php');
  4. class CoRefillFactory extends RefillBase
  5. {
  6. private static $stInstance = null;
  7. public static function instance()
  8. {
  9. if (self::$stInstance == null) {
  10. self::$stInstance = new CoRefillFactory();
  11. }
  12. return self::$stInstance;
  13. }
  14. private function __construct()
  15. {
  16. $this->load();
  17. }
  18. }