BUG 000 Second progress in the first version of the dashboards

This commit is contained in:
Julio Cesar Laura
2011-10-31 01:01:16 -04:00
parent ac96bf5ec4
commit 57a49f9fc1
5 changed files with 413 additions and 5 deletions

View File

@@ -6,19 +6,56 @@
*/
class Dashboard extends Controller {
/**
* getting default list
* @param object $httpData
*/
// Functions for the dashboards users module - Start
public function index($httpData) {
$this->includeExtJS('dashboard/index');
$this->includeExtJSLib('ux/portal');
G::RenderPage('publish', 'extJs');
}
public function renderDashletInstance($dasInsUid) {
//
}
// Functions for the dashboards users module - End
// Functions for the dasboards administration module - Start
public function dashletsList() {
echo '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
}