mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
Removed Dashboard Testfiles
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
class Dashboard_model extends DB_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = "( WITH vals (dashboard_id, name) AS (VALUES
|
||||
(0,'CIS'),
|
||||
(1,'PV21')
|
||||
) SELECT * FROM vals ) AS tbl_dashboard";
|
||||
$this->pk = 'dashboard_id';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
class Dashboardpreset_model extends DB_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = "( WITH vals (dashboard_preset_id, config) AS (VALUES
|
||||
(0,CONCAT('[[0',',','0',',','0',',','0',',','[]]',',','[1',',','2',',','2',',','2',',','{\"display\":2}]]')),
|
||||
(1,CONCAT('[[0',',','1',',','0',',','1',',','{}]',',','[1',',','0',',','1',',','0',',','{\"display\":1}]]'))
|
||||
) SELECT * FROM vals ) AS tbl_dashboard_preset";
|
||||
$this->pk = 'dashboard_preset_id';
|
||||
}
|
||||
|
||||
public function loadForUser($dashboard_id, $uid)
|
||||
{
|
||||
$this->addJoin("( WITH vals (dashboard_preset_user_id, uid, dashboard_id, dashboard_preset_id) AS (VALUES
|
||||
(0,'ma0168', 0, 0)
|
||||
) SELECT * FROM vals ) AS tbl_dashboard_preset_user", 'dashboard_preset_id');
|
||||
return $this->loadWhere(['uid' => $uid, 'dashboard_id' => $dashboard_id]);
|
||||
|
||||
return success();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
class Dashboardwidget_model extends DB_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = "( WITH vals (dashboard_widget_id, dashboard_id, widget_id) AS (VALUES
|
||||
(0,0,0),
|
||||
(1,0,1),
|
||||
(2,1,0)
|
||||
) SELECT * FROM vals ) AS tbl_dashboard_widget";
|
||||
$this->pk = 'dashboard_widget_id';
|
||||
}
|
||||
|
||||
public function loadWidgets($dashboard_id)
|
||||
{
|
||||
$this->addJoin("( WITH vals (widget_id, name, component_name, component_path, arguments) AS (VALUES
|
||||
(0,'KPI Single','DbwKpi','./DBW/KPI.js',CONCAT('{\"data\":[1]',',','\"display\":0}')),
|
||||
(1,'KPI Multi','DbwKpi','./DBW/KPI.js',CONCAT('{\"data\":[1,2,3]}'))
|
||||
) SELECT * FROM vals ) AS tbl_widget", 'widget_id');
|
||||
|
||||
return $this->loadWhere(['dashboard_id' => $dashboard_id]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
class Widget_model extends DB_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = "( WITH vals (widget_id, name, component_name, component_path, arguments) AS (VALUES
|
||||
(0,'KPI Single','DbwKpi','./DBW/KPI.js',CONCAT('{\"data\":[1]',',','\"display\":0}')),
|
||||
(1,'KPI Multi','DbwKpi','./DBW/KPI.js',CONCAT('{\"data\":[1,2,3]}'))
|
||||
) SELECT * FROM vals ) AS tbl_widget";
|
||||
$this->pk = 'widget_id';
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user