Example #1
0
 public static function getInstance()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 public static function getLengthObject()
 {
     if (!self::$length) {
         require_once 'length.php';
         self::$length = J2StoreLength::getInstance();
     }
     return self::$length;
 }