51 $this->owner = $owner;
66 return 'Unknown Status';
111 if (!$this->owner->readAccess()) {
112 trigger_localised_error(
'SYS0309', E_USER_WARNING, $this->owner->name, $this->owner->id);
117 if ($new_status == $this->status_tag)
return true;
120 if ($GLOBALS[
'SQ_SYSTEM']->runLevelEnables(SQ_SECURITY_STATUS_INTEGRITY)) {
124 if (!isset($valid_statii[$new_status])) {
125 require_once SQ_INCLUDE_PATH.
'/general_occasional.inc';
127 $code = strtolower((
string)get_bit_names(
'SQ_STATUS_', $new_status));
128 $status_code =
'asset_status_'.$code;
129 require_once SQ_INCLUDE_PATH.
'/asset_status/'.$status_code.
'.inc';
130 eval(
'$desc = '.$status_code.
'::getDescription();');
132 trigger_localised_error(
'SYS0250', E_USER_WARNING, $desc, $this->owner->name, $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($this->owner->type(),
'name'), $this->owner->id, $this->getDescription(), $GLOBALS[
'SQ_SYSTEM']->user->name, $GLOBALS[
'SQ_SYSTEM']->user->id);
142 'old_status' => $this->status_tag,
143 'new_status' => $new_status,
144 'allow_unrestricted' => isset($this->owner->_tmp[
'allow_unrestricted']) ? $this->owner->_tmp[
'allow_unrestricted'] : NULL,
150 if (!$GLOBALS[
'SQ_SYSTEM']->broadcastTriggerEvent(
'trigger_event_before_status_change', $this->owner, $event_data)) {