‪TYPO3CMS  ‪main
TreeItem.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
26 final readonly class ‪TreeItem implements \JsonSerializable
27 {
32  public function ‪__construct(
33  public string ‪$identifier,
34  public string $parentIdentifier,
35  public string $recordType,
36  public string $name,
37  public string $prefix,
38  public string $suffix,
39  public string $tooltip,
40  public int $depth,
41  public bool $hasChildren,
42  public bool $expanded,
43  public bool $loaded,
44  public string $icon,
45  public string $overlayIcon,
46  public string $note = '',
47  public array $statusInformation = [],
48  public array $labels = [],
49  public bool $editable = false,
50  public bool $deletable = false,
51  ) {}
52 
53  public function ‪jsonSerialize(): array
54  {
55  return get_object_vars($this);
56  }
57 }
‪TYPO3\CMS\Backend\Dto\Tree
Definition: FileTreeItem.php:18
‪TYPO3\CMS\Backend\Dto\Tree\Label\Label
Definition: Label.php:21
‪TYPO3\CMS\Backend\Dto\Tree\Status\StatusInformation
Definition: StatusInformation.php:23
‪TYPO3\CMS\Backend\Dto\Tree\TreeItem\__construct
‪__construct(public string $identifier, public string $parentIdentifier, public string $recordType, public string $name, public string $prefix, public string $suffix, public string $tooltip, public int $depth, public bool $hasChildren, public bool $expanded, public bool $loaded, public string $icon, public string $overlayIcon, public string $note='', public array $statusInformation=[], public array $labels=[], public bool $editable=false, public bool $deletable=false,)
Definition: TreeItem.php:32
‪TYPO3\CMS\Backend\Dto\Tree\TreeItem\jsonSerialize
‪jsonSerialize()
Definition: TreeItem.php:53
‪TYPO3\CMS\Backend\Dto\Tree\TreeItem
Definition: TreeItem.php:27
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37