TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:00 +02:00
commit f9941541b7
1178 changed files with 135377 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Backend\Dto\Tree;
/**
* @internal
*/
final readonly class FileTreeItem implements \JsonSerializable
{
public function __construct(
public TreeItem $item,
public string $pathIdentifier,
public int $storage,
public string $resourceType,
) {}
public function jsonSerialize(): array
{
return [
'type' => 'FileTreeItem',
...$this->item->jsonSerialize(),
'pathIdentifier' => $this->pathIdentifier,
'storage' => $this->storage,
'resourceType' => $this->resourceType,
];
}
}
+34
View File
@@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Backend\Dto\Tree\Label;
final readonly class Label implements \JsonSerializable
{
public function __construct(
public string $label,
public string $color = '#ff8700',
public int $priority = 0,
/** @internal Only to be used by TYPO3 core */
public bool $inheritByChildren = true,
) {}
public function jsonSerialize(): array
{
return get_object_vars($this);
}
}
+48
View File
@@ -0,0 +1,48 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Backend\Dto\Tree;
/**
* @internal
*/
final readonly class PageTreeItem implements \JsonSerializable
{
public function __construct(
public TreeItem $item,
public int $doktype,
public string $nameSourceField,
public int $workspaceId,
public bool $locked,
public bool $stopPageTree,
public int $mountPoint,
) {}
public function jsonSerialize(): array
{
return [
'type' => 'PageTreeItem',
...$this->item->jsonSerialize(),
'doktype' => $this->doktype,
'nameSourceField' => $this->nameSourceField,
'workspaceId' => $this->workspaceId,
'locked' => $this->locked,
'stopPageTree' => $this->stopPageTree,
'mountPoint' => $this->mountPoint,
];
}
}
+40
View File
@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Backend\Dto\Tree;
/**
* @internal
*/
final readonly class SelectTreeItem implements \JsonSerializable
{
public function __construct(
public TreeItem $item,
public bool $checked,
public bool $selectable,
) {}
public function jsonSerialize(): array
{
return [
'type' => 'SelectTreeItem',
...$this->item->jsonSerialize(),
'checked' => $this->checked,
'selectable' => $this->selectable,
];
}
}
@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Backend\Dto\Tree\Status;
use TYPO3\CMS\Core\Type\ContextualFeedbackSeverity;
final readonly class StatusInformation implements \JsonSerializable
{
public function __construct(
public string $label,
public ContextualFeedbackSeverity $severity = ContextualFeedbackSeverity::INFO,
public int $priority = 0,
public string $icon = '',
public string $overlayIcon = '',
) {}
public function jsonSerialize(): array
{
return get_object_vars($this);
}
}
+56
View File
@@ -0,0 +1,56 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Backend\Dto\Tree;
use TYPO3\CMS\Backend\Dto\Tree\Label\Label;
use TYPO3\CMS\Backend\Dto\Tree\Status\StatusInformation;
/**
* @internal
*/
final readonly class TreeItem implements \JsonSerializable
{
/**
* @param StatusInformation[] $statusInformation
* @param Label[] $labels
**/
public function __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 $loaded,
public string $icon,
public string $overlayIcon,
public string $note = '',
public array $statusInformation = [],
public array $labels = [],
public bool $editable = false,
public bool $deletable = false,
) {}
public function jsonSerialize(): array
{
return get_object_vars($this);
}
}