Progress 10 for the dashboards

This commit is contained in:
Julio Cesar Laura
2011-10-31 18:06:01 -04:00
parent 18940f2d97
commit 776bd1ce8d
2 changed files with 38 additions and 8 deletions

View File

@@ -80,12 +80,12 @@ class Dashboard extends Controller {
}
}
public function getDashletsInstances() {
public function getDashletsInstances($data) {
$this->setResponseType('json');
$result = new stdclass();
$result->status = 'OK';
try {
$result->dashletsInstances = $this->pmDashlet->getDashletsInstances($start, $limit);
$result->dashletsInstances = $this->pmDashlet->getDashletsInstances($data->start, $data->limit);
$result->totalDashletsInstances = $this->pmDashlet->getDashletsInstancesQuantity();
}
catch (Exception $error) {