예제 #1
0
 public static function getConnection()
 {
     self::$database = Database::getConnection("MySqlProvider", "localhost", "root", "", "sesiones");
 }
예제 #2
0
 private static function getConnection()
 {
     require_once realpath(__DIR__ . '/Database.php');
     self::$database = Database::getConnection(DB_PROVIDER, DB_HOST, DB_USER, DB_PASSWORD, DB_DB);
 }
예제 #3
0
 private static function getConnection()
 {
     require_once 'Database.php';
     self::$database = Database::getConnection(DB_PROVIDER, DB_HOST, DB_USER, DB_PASSWORD, DB_DB);
 }
예제 #4
0
 public function __construct()
 {
     self::$database = new Database();
 }