Files
luos/workflow/engine/classes/model/DashletInstance.php

34 lines
901 B
PHP
Raw Normal View History

2011-10-28 12:20:45 -04:00
<?php
require_once 'classes/model/om/BaseDashletInstance.php';
/**
* Skeleton subclass for representing a row from the 'DASHLET_INSTANCE' table.
*
2011-10-31 15:14:01 -04:00
*
2011-10-28 12:20:45 -04:00
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package classes.model
*/
class DashletInstance extends BaseDashletInstance {
2011-10-31 15:14:01 -04:00
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;
}
}
2011-10-28 12:20:45 -04:00
} // DashletInstance