2 namespace TYPO3\CMS\Backend\Tree\Pagetree;
158 $this->readableRootline = $rootline;
178 if (!isset($this->cachedAccessRights[
'create'])) {
179 $this->cachedAccessRights[
'create'] =
$GLOBALS[
'BE_USER']->doesUserHaveAccess($this->record, 8);
181 return $this->cachedAccessRights[
'create'];
191 if (!isset($this->cachedAccessRights[
'edit'])) {
192 $this->cachedAccessRights[
'edit'] =
195 (int)$this->record[
'editlock'] === 0
196 &&
$GLOBALS[
'BE_USER']->doesUserHaveAccess($this->record, 2)
199 return $this->cachedAccessRights[
'edit'];
209 if (!isset($this->cachedAccessRights[
'remove'])) {
210 $this->cachedAccessRights[
'remove'] =
213 (int)$this->record[
'editlock'] === 0
214 &&
$GLOBALS[
'BE_USER']->doesUserHaveAccess($this->record, 4)
217 $this->cachedAccessRights[
'remove'] =
false;
220 return $this->cachedAccessRights[
'remove'];
230 return $this->
canEdit($this->record) &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0);
243 &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0)
254 return $this->
canEdit($this->record) &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0);
267 &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0)
278 return $this->
canCreate($this->record) &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0);
291 &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0)
305 &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0)
319 &&
$GLOBALS[
'BE_USER']->checkLanguageAccess(0)
330 return $GLOBALS[
'BE_USER']->checkLanguageAccess(0);
371 !empty($this->record[
'deleted'])
393 public function toArray($addChildNodes =
true)
395 $arrayRepresentation = parent::toArray();
397 $arrayRepresentation[
'realId'] = $this->
getId();
398 $arrayRepresentation[
'nodeData'][
'id'] = $this->
getId();
401 $arrayRepresentation[
'nodeData'][
'mountPoint'] = $this->
getMountPoint();
402 $arrayRepresentation[
'nodeData'][
'workspaceId'] = $this->
getWorkspaceId();
403 $arrayRepresentation[
'nodeData'][
'isMountPoint'] = $this->
isMountPoint();
404 $arrayRepresentation[
'nodeData'][
'backgroundColor'] = htmlspecialchars($this->
getBackgroundColor());
405 $arrayRepresentation[
'nodeData'][
'serializeClassName'] = get_class($this);
406 return $arrayRepresentation;
417 parent::dataFromArray($data);