Ejemplo n.º 1
0
 /**
  * Provides access to a single instances of the class using the singleton pattern
  * @return object
  */
 public static function get_instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }