public static function getGeoDBO()
	{
		static $instance;

		if (!is_object($instance))
		{
			$geodb_params = \Component::params('com_system');

			$options = array();
			$options['driver']   = $geodb_params->get('geodb_driver', 'pdo');
			$options['host']     = $geodb_params->get('geodb_host', 'localhost');
			$options['port']     = $geodb_params->get('geodb_port', '');
			$options['user']     = $geodb_params->get('geodb_user', '');
			$options['password'] = $geodb_params->get('geodb_password', '');
			$options['database'] = $geodb_params->get('geodb_database', '');
			$options['prefix']   = $geodb_params->get('geodb_prefix', '');

			if (empty($options['database']) || empty($options['user']) || empty($options['password']))
			{
				return null;
			}

			try
			{
				$instance = \Hubzero\Database\Driver::getInstance($options);
			}
			catch (\Exception $e)
			{
				$instance = false;
			}
		}

		if (!$instance || ($instance instanceof Exception) || !$instance->getConnection())
		{
			return null;
		}

		return $instance;
	}
public static function getGeoDBO()
	{
		static $instance;

		if (!is_object($instance))
		{
			$geodb_params = \Component::params('com_system');

			$options = array();
			$options['driver']   = $geodb_params->get('geodb_driver', 'pdo');
			$options['host']     = $geodb_params->get('geodb_host', 'localhost');
			$options['port']     = $geodb_params->get('geodb_port', '');
			$options['user']     = $geodb_params->get('geodb_user', '');
			$options['password'] = $geodb_params->get('geodb_password', '');
			$options['database'] = $geodb_params->get('geodb_database', '');
			$options['prefix']   = $geodb_params->get('geodb_prefix', '');

			if (empty($options['database']) || empty($options['user']) || empty($options['password']))
			{
				return null;
			}

			try
			{
				$instance = \Hubzero\Database\Driver::getInstance($options);
			}
			catch (\Exception $e)
			{
				$instance = false;
			}
		}

		if (!$instance || ($instance instanceof Exception) || !$instance->getConnection())
		{
			return null;
		}

		return $instance;
	}
public static function getGeoDBO ( ) { static $ instance ; if ( ! is_object ( $ instance ) ) { $ geodb_params = \ Component :: params ( 'com_system' ) ; $ options = array ( ) ; $ options [ 'driver' ] = $ geodb_params -> get ( 'geodb_driver' , 'pdo' ) ; $ options [ 'host' ] = $ geodb_params -> get ( 'geodb_host' , 'localhost' ) ; $ options [ 'port' ] = $ geodb_params -> get ( 'geodb_port' , '' ) ; $ options [ 'user' ] = $ geodb_params -> get ( 'geodb_user' , '' ) ; $ options [ 'password' ] = $ geodb_params -> get ( 'geodb_password' , '' ) ; $ options [ 'database' ] = $ geodb_params -> get ( 'geodb_database' , '' ) ; $ options [ 'prefix' ] = $ geodb_params -> get ( 'geodb_prefix' , '' ) ; if ( empty ( $ options [ 'database' ] ) || empty ( $ options [ 'user' ] ) || empty ( $ options [ 'password' ] ) ) { return null ; } try { $ instance = \ Hubzero \ Database \ Driver :: getInstance ( $ options ) ; } catch ( \ Exception $ e ) { $ instance = false ; } } if ( ! $ instance || ( $ instance instanceof Exception ) || ! $ instance -> getConnection ( ) ) { return null ; } return $ instance ; }
Get the geo database

@return  mixed  Database object upon success, null if error
Get the geo database