Progess 5 for the dashboards

This commit is contained in:
Julio Cesar Laura
2011-10-31 15:51:23 -04:00
parent 847b56f3f7
commit 7024663aa9
3 changed files with 11 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ class PMDashlet extends DashletInstance implements DashletInterface {
public function setup($dasInsUid) {
try {
//$dashletInstance = $this->getDashletInstance($dasInsUid);
//$this->dashletObject = new $
$dashletInstance = $this->getDashletInstance($dasInsUid);
//$this->dashletObject = new $dashletInstance['DAS_CLASS']();
}
catch (Exception $error) {
throw $error;
@@ -58,7 +58,13 @@ class PMDashlet extends DashletInstance implements DashletInterface {
public function getDashletInstance($dasInsUid) {
try {
//
$dashletInstance = $this->load($dasInsUid);
if (!isset($dashletInstance['DAS_UID'])) {
new Exception('Error load the Dashlet Instance "' . $dasInsUid . '".');
}
$dashlet = new Dashlet();
$dashletFields = $dashlet->load($dashletInstance['DAS_UID']);
return array_merge($dashletFields, $dashletInstance);
}
catch (Exception $error) {
throw $error;