includeExtJS('dashboard/index'); $this->includeExtJSLib('ux/portal'); G::RenderPage('publish', 'extJs'); } 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 // Functions for the dasboards administration module - Start public function dashletsList() { $headPublisher =& headPublisher::getSingleton(); $headPublisher->addExtJsScript('dashboard/dashletsList', false); $headPublisher->addContent('dashboard/dashletsList'); G::RenderPage('publish', 'extJs'); } public function getDashletsInstances() { // } public function dashletInstanceForm($dasInsUid) { $headPublisher =& headPublisher::getSingleton(); $headPublisher->addExtJsScript('dashboard/dashletInstanceForm', false); $headPublisher->addContent('dashboard/dashletInstanceForm'); if ($dasInsUid != '') { // load data before render the form } G::RenderPage('publish', 'extJs'); } public function saveDashletInstance($data) { // } public function deleteDashletInstance($dasInsUid) { // } public function getOwnersByType($type) { // } // Functions for the dasboards administration module - End }