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