From fceddb13653f49e6590317b828f2357ae85efa76 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Sun, 26 Feb 2023 18:10:58 +0100 Subject: [PATCH] #8642 Added heatmap widget 3 --- .../include/class/Heatmap.class.php | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pandora_console/include/class/Heatmap.class.php b/pandora_console/include/class/Heatmap.class.php index bab7f8fd85..ff017b0c24 100644 --- a/pandora_console/include/class/Heatmap.class.php +++ b/pandora_console/include/class/Heatmap.class.php @@ -97,18 +97,26 @@ class Heatmap */ protected $group = null; + /** + * Heatmap group. + * + * @var boolean + */ + protected $dashboard = null; + /** * Constructor function * - * @param integer $type Heatmap type. - * @param array $filter Heatmap filter. - * @param string $randomId Heatmap random id. - * @param integer $refresh Heatmap refresh. - * @param integer $width Width. - * @param integer $height Height. - * @param string $search Heatmap search. - * @param integer $group Heatmap group. + * @param integer $type Heatmap type. + * @param array $filter Heatmap filter. + * @param string $randomId Heatmap random id. + * @param integer $refresh Heatmap refresh. + * @param integer $width Width. + * @param integer $height Height. + * @param string $search Heatmap search. + * @param integer $group Heatmap group. + * @param boolean $dashboard Dashboard widget. */ public function __construct( int $type=0, @@ -118,7 +126,8 @@ class Heatmap int $width=0, int $height=0, string $search=null, - int $group=1 + int $group=1, + bool $dashboard=false ) { $this->type = $type; $this->filter = $filter; @@ -128,6 +137,7 @@ class Heatmap $this->height = $height; $this->search = $search; $this->group = $group; + $this->dashboard = $dashboard; }