Progress 6 for the dashboards

This commit is contained in:
Julio Cesar Laura
2011-10-31 15:58:51 -04:00
parent 7024663aa9
commit b63b46bcff
2 changed files with 7 additions and 9 deletions

View File

@@ -14,26 +14,24 @@ class PMDashlet extends DashletInstance implements DashletInterface {
public function setup($dasInsUid) {
try {
$dashletInstance = $this->getDashletInstance($dasInsUid);
//$this->dashletObject = new $dashletInstance['DAS_CLASS']();
$this->dashletObject = new $dashletInstance['DAS_CLASS']();
$this->dashletObject->setup($dashletInstance);
}
catch (Exception $error) {
throw $error;
}
//recupera el registro
/*$array = loadDB()
//merge
$c = new $className();
$c->setup($array);*/
}
public function render() {
try {
//
if (is_null($this->dashletObject)) {
throw new Exception('Please call to the function "setup" before call the function "render".');
}
$this->dashletObject->render();
}
catch (Exception $error) {
throw $error;
}
//$this->c->render();
}
// Own functions