Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (array &$results, array &$params, Filtered &$queryPrinter) | |
& | getQueryResults () |
& | getActualParameters () |
& | getQueryPrinter () |
getResourceModules () | |
getResultText () | |
getJsDataForRow (ResultItem $row) | |
getJsConfig () | |
getInitError () | |
Static Public Member Functions | |
static | getParameters () |
The SRF_Filtered_View class.
SRF\Filtered\View\View::__construct | ( | array & | $results, |
array & | $params, | ||
Filtered & | $queryPrinter | ||
) |
Constructor for the view.
ResultItem[] | $results | |
string[] | $params array of parameter values given as key-value-pairs | |
Filtered | $queryPrinter |
& SRF\Filtered\View\View::getActualParameters | ( | ) |
SRF\Filtered\View\View::getInitError | ( | ) |
Check if the view is ready to run, e.g. all required environment variables are set.
SRF\Filtered\View\View::getJsConfig | ( | ) |
Returns an array of config data for this view to be stored in the JS
SRF\Filtered\View\View::getJsDataForRow | ( | ResultItem | $row | ) |
ResultItem | $row |
|
static |
A function to describe the allowed parameters of a query for this view.
& SRF\Filtered\View\View::getQueryPrinter | ( | ) |
& SRF\Filtered\View\View::getQueryResults | ( | ) |
SRF\Filtered\View\View::getResourceModules | ( | ) |
Returns the name (string) or names (array of strings) of the resource modules to load.
SRF\Filtered\View\View::getResultText | ( | ) |
Returns the HTML text that is to be included for this view.
This text will appear on the page in a div that has the view's id set as class.