Helper methods for easy access to generate queries and links to listview. More...
Static Public Member Functions | |
static | set ($table, $match) |
A simple tool to fetch a set of elements reduced by a certain paramters. | |
static | query ($table, $match) |
A simple tool to generate a search query, given a table name and an array of matches. | |
static | link ($table, $match) |
A simple tool to generate a link to a lsitview, given a table name and an array of matches. | |
static | querylink ($query) |
A simple tool to generate a link to a lsitview, given a raw query. |
Helper methods for easy access to generate queries and links to listview.
static listview::link | ( | $ | table, | |
$ | match | |||
) | [static] |
A simple tool to generate a link to a lsitview, given a table name and an array of matches.
Useful for generating, for example a link to all notifications related to a host.
$url = listview::link('notifications', array('host_name'=>$hostname));
$table | table to search in | |
$match | array of matches |
static listview::query | ( | $ | table, | |
$ | match | |||
) | [static] |
A simple tool to generate a search query, given a table name and an array of matches.
Useful for generating, for example a query of all notifications related to a host.
$query = listview::query('notifications', array('host_name'=>$hostname));
$table | table to search in | |
$match | array of matches |
static listview::querylink | ( | $ | query | ) | [static] |
A simple tool to generate a link to a lsitview, given a raw query.
Useful when you already have the query. See also listview::link
$url = listview::querylink('[table] query');
$query | The query to link to |
static listview::set | ( | $ | table, | |
$ | match | |||
) | [static] |
A simple tool to fetch a set of elements reduced by a certain paramters.
Useful for generating, for example a set of all notifications related to a host.
$set = listview::set('notifications', array('host_name'=>$hostname));
$table | table to search in | |
$match | array of matches |