2 namespace TYPO3\CMS\Workspaces\Domain\Record;
59 public static function get($uid, array
$record = null)
62 $record = static::fetch(
'sys_workspace_stage', $uid);
76 $record = static::fetch(
'sys_workspace_stage', $uid);
87 parent::__construct($record);
139 $current = $stageRecord;
140 while ($previous = $current->getPrevious()) {
141 if ($this->
getUid() === $previous->getUid()) {
144 $current = $previous;
157 $current = $stageRecord;
158 while ($next = $current->getNext()) {
159 if ($this->
getUid() === $next->getUid()) {
172 $defaultComment =
'';
173 if (isset($this->record[
'default_mailcomment'])) {
174 $defaultComment = $this->record[
'default_mailcomment'];
176 return $defaultComment;
224 return (((
int)$this->record[
'allow_notificaton_settings'] & 1) > 0);
232 return (((
int)$this->record[
'allow_notificaton_settings'] & 2) > 0);
240 return (((
int)$this->record[
'notification_preselection'] & 1) > 0);
248 return (((
int)$this->record[
'notification_preselection'] & 2) > 0);
256 return (((
int)$this->record[
'notification_preselection'] & 4) > 0);
264 return (((
int)$this->record[
'notification_preselection'] & 8) > 0);
285 if (!isset($this->responsiblePersons)) {
286 $this->responsiblePersons = array();
287 if (!empty($this->record[
'responsible_persons'])) {
288 $this->responsiblePersons = $this->
getStagesService()->resolveBackendUserIds($this->record[
'responsible_persons']);
299 if (!isset($this->defaultRecipients)) {
300 $this->defaultRecipients = $this->
getStagesService()->resolveBackendUserIds($this->record[
'notification_defaults']);
312 if (!isset($this->allRecipients)) {
336 if (!isset($this->preselectedRecipients)) {
362 || static::getBackendUser()->workspaceCheckStageForCurrent($this->
getUid())
363 || $this->
isExecuteStage() && static::getBackendUser()->workspacePublishAccess($this->workspace->getUid())