Progress 4 for the dashboards
This commit is contained in:
@@ -7,12 +7,14 @@ require_once 'model/DashletInstance.php';
|
||||
class PMDashlet extends DashletInstance implements DashletInterface {
|
||||
|
||||
// Own properties
|
||||
private $dashletObject;
|
||||
|
||||
// Interface functions
|
||||
|
||||
public function setup($dasInsUid) {
|
||||
try {
|
||||
//
|
||||
//$dashletInstance = $this->getDashletInstance($dasInsUid);
|
||||
//$this->dashletObject = new $
|
||||
}
|
||||
catch (Exception $error) {
|
||||
throw $error;
|
||||
@@ -54,6 +56,15 @@ class PMDashlet extends DashletInstance implements DashletInterface {
|
||||
}
|
||||
}
|
||||
|
||||
public function getDashletInstance($dasInsUid) {
|
||||
try {
|
||||
//
|
||||
}
|
||||
catch (Exception $error) {
|
||||
throw $error;
|
||||
}
|
||||
}
|
||||
|
||||
public function saveDashletInstance($data) {
|
||||
try {
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
class Dashboard extends Controller {
|
||||
|
||||
// Class properties
|
||||
private pmDashlet;
|
||||
private $pmDashlet;
|
||||
|
||||
// Class constructor
|
||||
public function __construct() {
|
||||
|
||||
Reference in New Issue
Block a user