Public Member Functions |
| lib_reports_assert_handler ($filename, $line, $code) |
| Called by PHP as an assert callback to format errors usefully.
|
Static Public Member Functions |
static | percent ($dividend, $divisor) |
| Generate a percentage easily.
|
static | get_color_values ($labels=false) |
| Assigns color to labels to be used in a piechart.
|
static | format_report_value ($val) |
| Format report value output.
|
static | js_strings () |
| Create common translated javascript strings.
|
static | _state_colors ($type='host', $state=false) |
| Determine what color to assign to an event.
|
static | _state_color_table ($type='host') |
static | format_multi_object_table ($data, $title, $rowdescriber, $type, $columns, $is_summary, $options, &$i=0) |
| Given bunch of somewhat-magical parameters, return a whole multi-object report table.
|
static | get_alias ($type, $name) |
| Returns the alias for the specified object of the specified type, or false Liberated from the report controller.
|
Static Public Attributes |
static | $colors |
| Colors for status in trends graph and such.
|
static | $days_per_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) |
| Array of month_number => days_in_month.
|
static | $valid_weekdays = array('sunday','monday','tuesday','wednesday','thursday','friday','saturday') |
| Array of weekday names.
|
static | $valid_months |
| Array of month names.
|