tablestat_Widget Class Reference

ORM tablestat widget. More...

Inheritance diagram for tablestat_Widget:
widget_Base Tac_hosts_Widget Tac_services_Widget

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.

Detailed Description

ORM tablestat widget.

Author:
op5 AB

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Field Documentation

tablestat_Widget::$columns [protected]
Initial value:
 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]
Initial value:
 array(
                        array(
                                        'name' => '%d objects'
                        )
        )

A list of the rows to show in the widget.


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