public function getDatabaseInfo($name)
    {
        try {
            $connection = $this->getConnection($name);

            $info = Database::getInfo($connection);

            $result = array();

            $result['id'] = $info['result']['id'];
            $result['name'] = $info['result']['name'];
            $result['path'] = $info['result']['path'];
            $result['isSystem'] = $info['result']['isSystem'];

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new DatabaseManagerException($normalised['message'], $normalised['code']);
        }
    }
public function getDatabaseInfo($name)
    {
        try {
            $connection = $this->getConnection($name);

            $info = Database::getInfo($connection);

            $result = array();

            $result['id'] = $info['result']['id'];
            $result['name'] = $info['result']['name'];
            $result['path'] = $info['result']['path'];
            $result['isSystem'] = $info['result']['isSystem'];

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new DatabaseManagerException($normalised['message'], $normalised['code']);
        }
    }
public function getDatabaseInfo ( $ name ) { try { $ connection = $ this -> getConnection ( $ name ) ; $ info = Database :: getInfo ( $ connection ) ; $ result = array ( ) ; $ result [ 'id' ] = $ info [ 'result' ] [ 'id' ] ; $ result [ 'name' ] = $ info [ 'result' ] [ 'name' ] ; $ result [ 'path' ] = $ info [ 'result' ] [ 'path' ] ; $ result [ 'isSystem' ] = $ info [ 'result' ] [ 'isSystem' ] ; return $ result ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new DatabaseManagerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
Get information about a database.
@param  string                   $name The name of the database.
@throws DatabaseManagerException
@return array
Get information about a database .