class MultiTableQuery (View source)

Class to handle database Multi-table querying

Properties

Template $template

Methods

__construct(DatabaseInterface $dbi, Template $template, string $dbName, int $defaultNoOfColumns = 3)

No description

string
getFormHtml()

Get Multi-Table query page HTML

static string
displayResults(string $sqlQuery, string $db)

Displays multi-table query results

Details

__construct(DatabaseInterface $dbi, Template $template, string $dbName, int $defaultNoOfColumns = 3)

No description

Parameters

DatabaseInterface $dbi

DatabaseInterface instance

Template $template

Template instance

string $dbName

Database name

int $defaultNoOfColumns

Default number of columns

string getFormHtml()

Get Multi-Table query page HTML

Return Value

string

Multi-Table query page HTML

static string displayResults(string $sqlQuery, string $db)

Displays multi-table query results

Parameters

string $sqlQuery

The query to parse

string $db

The current database

Return Value

string