18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job.inc';
45 parent::__construct($assetid);
61 $id = $this->
attr(
'asset');
62 if ($GLOBALS[
'SQ_SYSTEM']->am->assetExists($id)) {
63 $asset = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($id);
66 return "Regenerate \"$name\" [#$asset->id]";
88 $hh = $GLOBALS[
'SQ_SYSTEM']->getHipoHerder();
90 $assetid = $this->
attr(
'asset');
91 $asset = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($assetid);
96 'userid' => $user->id,
97 'generated_date' => date(
'F j, Y, g:i a'),
98 'assetid' => $assetid,
100 'type_code' => $asset->type(),
105 $status_errors = $hh->freestyleHipo(
'hipo_job_generate_report', $vars);
106 return SQ_CRON_JOB_COMPLETED;
119 $res = parent::run();
120 if ($res & SQ_CRON_JOB_COMPLETED) {
121 if ($GLOBALS[
'SQ_SYSTEM']->am->acquireLock($this->id,
'all')) {
124 $GLOBALS[
'SQ_SYSTEM']->am->releaseLock($this->
id,
'all');