Progress 13 for the dashboards

This commit is contained in:
Julio Cesar Laura
2011-10-31 19:06:40 -04:00
parent 6935394727
commit 8068f7dd26
3 changed files with 21 additions and 12 deletions

View File

@@ -85,6 +85,12 @@ class Dashboard extends Controller {
$result = new stdclass();
$result->status = 'OK';
try {
if (!isset($data->start)) {
$data->start = null;
}
if (!isset($data->limit)) {
$data->limit = null;
}
$result->dashletsInstances = $this->pmDashlet->getDashletsInstances($data->start, $data->limit);
$result->totalDashletsInstances = $this->pmDashlet->getDashletsInstancesQuantity();
}