Progress 4 for the dashboards
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@ require_once 'classes/model/om/BaseDashletInstance.php';
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'DASHLET_INSTANCE' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
@@ -16,4 +16,18 @@ require_once 'classes/model/om/BaseDashletInstance.php';
|
||||
*/
|
||||
class DashletInstance extends BaseDashletInstance {
|
||||
|
||||
public function load($dasInsUid) {
|
||||
try {
|
||||
$dashletInstance = DashletInstancePeer::retrieveByPK($dasInsUid);
|
||||
$fields = $dashletInstance->toArray(BasePeer::TYPE_FIELDNAME);
|
||||
if ($fields['DAS_INS_ADDITIONAL_PROPERTIES'] != '') {
|
||||
$fields = array_merge($fields, unserialize($fields['DAS_INS_ADDITIONAL_PROPERTIES']));
|
||||
}
|
||||
return $fields;
|
||||
}
|
||||
catch (Exception $error) {
|
||||
throw $error;
|
||||
}
|
||||
}
|
||||
|
||||
} // DashletInstance
|
||||
|
||||
Reference in New Issue
Block a user