BUG 000 Second progress in the dashboards changes for the release of December

This commit is contained in:
Julio Cesar Laura
2011-12-02 14:51:32 -04:00
parent c369b8de0b
commit 4a13322dad
4 changed files with 40 additions and 9 deletions

View File

@@ -166,6 +166,22 @@ class Dashboard extends Controller {
return $result;
}
public function getAdditionalFields($data) {
$this->setResponseType('json');
$result = new stdclass();
$result->status = 'OK';
try {
$dashlet = new Dashlet();
$dashletFields = $dashlet->load($data->DAS_UID);
$result->additionaFields = PMDashlet::getAdditionalFields($dashletFields['DAS_CLASS']);
}
catch(Exception $error) {
$result->status = 'ERROR';
$result->message = $error->getMessage();
}
return $result;
}
public function getOwnersByType($data) {
$this->setResponseType('json');
$result = new stdclass();