adding gauge class, and rendering a default gauge from controller

This commit is contained in:
Fernando Ontiveros
2011-10-31 12:06:35 -04:00
parent 0433eafea4
commit ab5c367b1c
3 changed files with 212 additions and 21 deletions

View File

@@ -16,7 +16,18 @@ class Dashboard extends Controller {
}
public function renderDashletInstance($dasInsUid) {
//
require_once ( PATH_METHODS . 'dashboard/class.gauge.php' );
$gauge = new pmGauge();
/*
$gauge->value = x;
$gauge->maxValue = x;
*/
//falta el width de la imagen
$w = isset($_REQUEST['w']) ? intval($_REQUEST['w']) : 610;
if ( intval($_REQUEST['w']) < 50 ) $w = 50;
$gauge->w = $w;
$gauge->render();
}
// Functions for the dashboards users module - End