Public Member Functions | |
__construct ($widget_model) | |
Constructor. | |
get_metadata () | |
Return the default friendly name for the widget type. | |
set_fixed () | |
Disable everything configurable. | |
options () | |
Load the options for this widget. | |
index () | |
Fetch the data and show the widget. | |
Protected Attributes | |
$duplicatable = true | |
Set if this widget is duplicatable. | |
$settings | |
An array containing the settings for this widget; which filters to use. | |
$columns | |
A list of the columns to show in the widget. | |
$rows | |
A list of the rows to show in the widget. | |
$table = false | |
The fetched table. | |
$universe = false | |
The set representing whichs objects this widget should work within. | |
$all = false | |
The set representing all objects of the type this widget works with. |
ORM tablestat widget.
tablestat_Widget::__construct | ( | $ | widget_model | ) |
Constructor.
This should be overloaded, to upadte the settings-attribute when making a custom widget of this type
Reimplemented in Tac_hosts_Widget, and Tac_services_Widget.
tablestat_Widget::get_metadata | ( | ) |
Return the default friendly name for the widget type.
default to the model name, but should be overridden by widgets.
Reimplemented from widget_Base.
Reimplemented in Tac_hosts_Widget, and Tac_services_Widget.
tablestat_Widget::set_fixed | ( | ) |
Disable everything configurable.
This is useful when including the widget with generetated parameters from a controller.
tablestat_Widget::$columns [protected] |
array( array( 'name' => '%d objects', 'icon' => 'shield-info', 'na_icon' => 'shield-not-info' ) )
A list of the columns to show in the widget.
tablestat_Widget::$rows [protected] |
array( array( 'name' => '%d objects' ) )
A list of the rows to show in the widget.