17 require_once SQ_INCLUDE_PATH.
'/asset_status/asset_status.inc';
45 $this->status_tag = SQ_STATUS_APPROVED;
59 return translate(
'status_approved');
76 if (!$this->owner->adminAccess(
''))
return $statii;
78 $wfm = $GLOBALS[
'SQ_SYSTEM']->getWorkflowManager();
79 $running_schemas = $wfm->getSchemas($this->owner->id,
true,
true);
81 if (!empty($running_schemas)) {
84 pre_echo(
'FIXME: SOMETHING HAS GONE WRONG HERE');
87 $statii[SQ_STATUS_LIVE] = translate(
'status_change_make_live');
88 $statii[SQ_STATUS_UNDER_CONSTRUCTION] = translate(
'status_change_reject_changes');
108 if (!parent::processStatusChange($new_status, $update_parent)) {
112 if ($new_status == SQ_STATUS_LIVE) {
114 $wfm = $GLOBALS[
'SQ_SYSTEM']->getWorkflowManager();
115 if (!$wfm->notifyOnLive($this->owner->id, $this->status_tag)) {
120 if (!$this->owner->setDate(
'published', time())) {