Merge branch 'maint/7.0'
[ninja.git] / modules / reports / libraries / Avail_options.php
blob7e95b5f90080be696889057c44e8014f81d28280
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
3 /**
4 * Report options class for availability reports
5 */
6 class Avail_options extends Report_options {
7 public static $type = 'avail';
9 public function setup_properties() {
10 parent::setup_properties();
11 $this->properties['include_pie_charts'] = array(
12 'type' => 'bool',
13 'default' => false,
14 'description' => 'Include pie charts'
16 $this->properties['include_trends'] = array(
17 'type' => 'bool',
18 'default' => false,
19 'description' => 'Include trends graph'
21 $this->properties['include_trends_scaling'] = array(
22 'type' => 'bool',
23 'default' => false,
24 'description' => 'Scale up active sections of the trends graph'
26 $this->properties['collapse_green_trends'] = array(
27 'type' => 'bool',
28 'default' => false,
29 'description' => 'Hide trend graphs that are 100% green'
31 if(ninja::has_module('synergy')) {
32 $this->properties['include_synergy_events'] = array(
33 'type' => 'bool',
34 'default' => false,
35 'description' => 'Include BSM events'