Describes a single object from livestatus. More...
Public Member Functions | |
get_custom_variables () | |
Get a list of custom variables related to the object, if possible. | |
mayi_resource () | |
Get mayi resource for the current object. | |
list_commands ($auth_filtered=true) | |
Get a list of commands related to the object This digs out the information from orm_command_doctags, which is generated from the Ninja rule: orm_command tags in corresponding classes. | |
get_readable_name () | |
Get a readable name of the current object. | |
get_current_user () | |
Get the current logged in username. | |
get_permission_quark () | |
Get a quark for the current object. | |
Static Public Member Functions | |
static | rewrite_columns () |
Mine out rewrite columns from doctags. | |
static | list_commands_static ($auth_filtered=true) |
Get a list of commands related to the object This digs out the information from orm_command_doctags, which is generated from the Ninja rule: orm_command tags in corresponding classes. |
Describes a single object from livestatus.
Object_Model::get_current_user | ( | ) |
Get the current logged in username.
Object_Model::get_custom_variables | ( | ) |
Get a list of custom variables related to the object, if possible.
Reimplemented in BaseContact_Model, BaseHost_Model, and BaseService_Model.
Object_Model::get_permission_quark | ( | ) |
Get a quark for the current object.
Object_Model::get_readable_name | ( | ) |
Get a readable name of the current object.
As fallback, which is valid in many cases, is the key string. But for tables with ID-keys, it might be nice to have a better string representation.
Reimplemented in SavedFilter_Model, Comment_Model, Downtime_Model, and Service_Model.
Object_Model::list_commands | ( | $ | auth_filtered = true |
) |
Get a list of commands related to the object This digs out the information from orm_command_doctags, which is generated from the Ninja rule: orm_command tags in corresponding classes.
$auth_filtered | bool true if filtered by permission, false otherwise |
static Object_Model::list_commands_static | ( | $ | auth_filtered = true |
) | [static] |
Get a list of commands related to the object This digs out the information from orm_command_doctags, which is generated from the Ninja rule: orm_command tags in corresponding classes.
This doesn't set if the command is enabled or not, but just the enable criteria. Thus enable is depednent of the current object
$auth_filtered | bool true if filtered by permission, false otherwise |
Object_Model::mayi_resource | ( | ) |
Get mayi resource for the current object.
This is a wrapper to get the resource from the set
static Object_Model::rewrite_columns | ( | ) | [static] |
Mine out rewrite columns from doctags.
TODO: Don't do string magic in runtime... That's slow However... in this case, it's not that often...
Reimplemented from BaseObject_Model.