Exemplo n.º 1
0
 public static function instance()
 {
     if (!self::$instance) {
         $cache = new Library_config();
         self::$instance = $cache;
         return $cache;
     } else {
         return self::$instance;
     }
 }
Exemplo n.º 2
0
Arquivo: gear.php Projeto: erxn/siemas
 public function __construct()
 {
     self::$instance = $this;
     $this->config = Library_config::instance();
     $this->base_url = $this->config->base_url;
     $this->auto_loader();
 }
Exemplo n.º 3
0
Arquivo: uri.php Projeto: erxn/siemas
 /**
  * Load the configuration class
  *
  * @return void
  */
 public function __construct()
 {
     $this->config = Library_config::instance();
 }