2011-10-28 12:20:45 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
require_once 'classes/model/om/BaseDashlet.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Skeleton subclass for representing a row from the 'DASHLET' 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 Dashlet extends BaseDashlet {
|
|
|
|
|
|
2011-10-31 15:14:01 -04:00
|
|
|
public function load($dasUid) {
|
|
|
|
|
try {
|
|
|
|
|
$dashlet = DashletPeer::retrieveByPK($dasUid);
|
2012-01-03 18:31:15 -04:00
|
|
|
if (!is_null($dashlet)) {
|
|
|
|
|
return $dashlet->toArray(BasePeer::TYPE_FIELDNAME);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2011-10-31 15:14:01 -04:00
|
|
|
}
|
|
|
|
|
catch (Exception $error) {
|
|
|
|
|
throw $error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-28 12:20:45 -04:00
|
|
|
} // Dashlet
|