Progress 4 for the dashboards

This commit is contained in:
Julio Cesar Laura
2011-10-31 15:14:01 -04:00
parent c167a54174
commit 847b56f3f7
4 changed files with 39 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ require_once 'classes/model/om/BaseDashlet.php';
/**
* Skeleton subclass for representing a row from the 'DASHLET' table.
*
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
@@ -16,4 +16,14 @@ require_once 'classes/model/om/BaseDashlet.php';
*/
class Dashlet extends BaseDashlet {
public function load($dasUid) {
try {
$dashlet = DashletPeer::retrieveByPK($dasUid);
return $dashlet->toArray(BasePeer::TYPE_FIELDNAME);
}
catch (Exception $error) {
throw $error;
}
}
} // Dashlet