Esempio n. 1
0
 public static function instance()
 {
     if (self::$instance === NULL) {
         self::$instance = new RocketSled();
     }
     return self::$instance;
 }
Esempio n. 2
0
<?php

spl_autoload_register(function () {
    if (!class_exists('RocketSled')) {
        require_once dirname(__FILE__) . '/rocket_sled.class.php';
        RocketSled::instance();
    }
});