ObjectPool_Model Class Reference

The univese of a objects of a given type in livestatus. More...

Inheritance diagram for ObjectPool_Model:
BaseObjectPool_Model BaseColumnPool_Model BaseCommandPool_Model BaseCommentPool_Model BaseContactGroupPool_Model BaseContactPool_Model BaseDowntimePool_Model BaseHostGroupPool_Model BaseHostPool_Model BaseNotificationPool_Model BaseRecurringDowntimePool_Model BaseSavedFilterPool_Model BaseServiceGroupPool_Model BaseServicePool_Model BaseStatusPool_Model BaseTimePeriodPool_Model

Public Member Functions

 available_for ($where)
 Check if a table is available to read and export from a given interface.
 get_by_name ($name, $disabled_saved_queries=array())
 Get a set of object, given a named query.

Static Public Member Functions

static get_by_query ($query, $disabled_saved_queries=array())
 Parse a query and return the related set.
static load_table_classes ()
 Get classes for tables in the system.
static get_js_files ()
 Get JS-files to render the orm.

Static Protected Attributes

static $available_for
 List which places this object is available for.

Detailed Description

The univese of a objects of a given type in livestatus.


Member Function Documentation

ObjectPool_Model::available_for ( where  ) 

Check if a table is available to read and export from a given interface.

This can be used to hide tables from the HTTP-API that isn't API-stable enough yet.

ObjectPool_Model::get_by_name ( name,
disabled_saved_queries = array() 
)

Get a set of object, given a named query.

Can be overridden to handle groups (in HostPool/ServicePool)

Reimplemented in HostPool_Model, and ServicePool_Model.

static ObjectPool_Model::get_js_files (  )  [static]

Get JS-files to render the orm.

..

Todo:
move from this class... should be somewhere else, but not here...

Field Documentation

ObjectPool_Model::$available_for [static, protected]
Initial value:
 array(
                'api' => true
        )

List which places this object is available for.

It is (for now) always available within ninja. Other places are: api


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

Generated on 14 Jan 2015 for ninja by  doxygen 1.6.1