2011-10-28 13:02:22 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
2011-10-28 18:49:36 -04:00
|
|
|
* Dashboard controller
|
2011-10-28 13:02:22 -04:00
|
|
|
* @inherits Controller
|
|
|
|
|
* @access public
|
|
|
|
|
*/
|
|
|
|
|
|
2011-10-28 18:49:36 -04:00
|
|
|
class Dashboard extends Controller {
|
2011-10-31 01:01:16 -04:00
|
|
|
|
|
|
|
|
// Functions for the dashboards users module - Start
|
|
|
|
|
|
2011-10-28 18:49:36 -04:00
|
|
|
public function index($httpData) {
|
2011-10-28 13:02:22 -04:00
|
|
|
$this->includeExtJS('dashboard/index');
|
|
|
|
|
$this->includeExtJSLib('ux/portal');
|
2011-10-28 18:49:36 -04:00
|
|
|
G::RenderPage('publish', 'extJs');
|
|
|
|
|
}
|
2011-10-28 13:02:22 -04:00
|
|
|
|
2011-10-31 01:01:16 -04:00
|
|
|
public function renderDashletInstance($dasInsUid) {
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Functions for the dashboards users module - End
|
|
|
|
|
|
|
|
|
|
// Functions for the dasboards administration module - Start
|
|
|
|
|
|
2011-10-28 18:49:36 -04:00
|
|
|
public function dashletsList() {
|
2011-10-31 01:01:16 -04:00
|
|
|
$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
|
|
|
|
|
}
|
2011-10-28 13:02:22 -04:00
|
|
|
G::RenderPage('publish', 'extJs');
|
|
|
|
|
}
|
2011-10-28 18:49:36 -04:00
|
|
|
|
2011-10-31 01:01:16 -04:00
|
|
|
public function saveDashletInstance($data) {
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function deleteDashletInstance($dasInsUid) {
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getOwnersByType($type) {
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Functions for the dasboards administration module - End
|
|
|
|
|
|
2011-10-28 13:02:22 -04:00
|
|
|
}
|