protected function getDatabaseFromDatabaseElement(\DOMElement $databaseElement)
    {
        $database = $databaseElement->getAttribute('name');
        if (empty($database)) {
            throw new \LogicException('Unnamed database node.');
        }

        return $database;
    }
protected function getDatabaseFromDatabaseElement(\DOMElement $databaseElement)
    {
        $database = $databaseElement->getAttribute('name');
        if (empty($database)) {
            throw new \LogicException('Unnamed database node.');
        }

        return $database;
    }
protected function getDatabaseFromDatabaseElement ( \ DOMElement $ databaseElement ) { $ database = $ databaseElement -> getAttribute ( 'name' ) ; if ( empty ( $ database ) ) { throw new \ LogicException ( 'Unnamed database node.' ) ; } return $ database ; }
Get the database name from a database element.
@param \DOMElement $databaseElement Database element.
@return string Database name.
@throws \LogicException If the database element is unnamed.
Get the database name from a database element .