src/Registry.php
public static function getDatabase()
	{
		//get the database settings from global space
        global $database;

        //create instance of database class
        $instance = new BaseDb($database['default'], $database[$database['default']]);

        //get connection instance and make attempt to connect to the database
        $instance = $instance->initialize()->connect();

		return $instance; 

	}
public static function getDatabase()
	{
		//get the database settings from global space
        global $database;

        //create instance of database class
        $instance = new BaseDb($database['default'], $database[$database['default']]);

        //get connection instance and make attempt to connect to the database
        $instance = $instance->initialize()->connect();

		return $instance; 

	}
public static function getDatabase ( ) { //get the database settings from global space global $ database ; //create instance of database class $ instance = new BaseDb ( $ database [ 'default' ] , $ database [ $ database [ 'default' ] ] ) ; //get connection instance and make attempt to connect to the database $ instance = $ instance -> initialize ( ) -> connect ( ) ; return $ instance ; }
This method returns an instance of the database class

@return object The instance of this database class.
@throws This method does not throw an error
This method returns an instance of the database class