listview Class Reference

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.

Detailed Description

Helper methods for easy access to generate queries and links to listview.


Member Function Documentation

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));
Parameters:
$table table to search in
$match array of matches
Returns:
string
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));
Parameters:
$table table to search in
$match array of matches
Returns:
string such as '[hosts] host_name="host-1"'
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');
Parameters:
$query The query to link to
Returns:
string
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));
Parameters:
$table table to search in
$match array of matches
Returns:
ObjectSet_Model

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1