Commit e181f6b6 authored by Benni Mack's avatar Benni Mack Committed by Frank Nägler
Browse files

[TASK][FOLLOWUP] Remove leftover ExtJS-related pagetree classes

Some classes regarding ExtJS data providing the tree
can now safely be removed, as they are not in use anymore.

Resolves: #82426
Releases: master
Change-Id: Ic35743154cb8e35b0ddc5a32cd0ec60e68832e0f
Reviewed-on: https://review.typo3.org/55004


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog's avatarSusanne Moog <susanne.moog@typo3.org>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
parent eb493646
......@@ -17,7 +17,7 @@ namespace TYPO3\CMS\Backend\Form\FormDataProvider;
use TYPO3\CMS\Backend\Form\FormDataProviderInterface;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Tree\TableConfiguration\ExtJsArrayTreeRenderer;
use TYPO3\CMS\Core\Tree\TableConfiguration\ArrayTreeRenderer;
use TYPO3\CMS\Core\Tree\TableConfiguration\TableConfigurationTree;
use TYPO3\CMS\Core\Tree\TableConfiguration\TreeDataProviderFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -174,7 +174,7 @@ class TcaSelectTreeItems extends AbstractItemProvider implements FormDataProvide
// tree representing the nested tree, just to collapse all that to a flat array again. Yay ...
$treeDataProvider->setItemWhiteList($uidListOfAllDynamicItems);
$treeDataProvider->initializeTreeData();
$treeRenderer = GeneralUtility::makeInstance(ExtJsArrayTreeRenderer::class);
$treeRenderer = GeneralUtility::makeInstance(ArrayTreeRenderer::class);
$tree = GeneralUtility::makeInstance(TableConfigurationTree::class);
$tree->setDataProvider($treeDataProvider);
$tree->setNodeRenderer($treeRenderer);
......
<?php
namespace TYPO3\CMS\Backend\Tree;
/*
* 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!
*/
/**
* Describes necessary methods if the nodes are draggable and dropable
* within the tree.
*/
interface DraggableAndDropableNodeInterface
{
/**
* Moves given node inside a destination node
*
* @param \TYPO3\CMS\Backend\Tree\TreeNode $node
* @param \TYPO3\CMS\Backend\Tree\TreeNode $destination
*/
public function moveNodeInDestinationNode($node, $destination);
/**
* Moves given node after a destination node
*
* @param \TYPO3\CMS\Backend\Tree\TreeNode $node
* @param \TYPO3\CMS\Backend\Tree\TreeNode $destination
*/
public function moveNodeAfterDestinationNode($node, $destination);
/**
* Copies given node inside a destination node
*
* @param \TYPO3\CMS\Backend\Tree\TreeNode $node
* @param \TYPO3\CMS\Backend\Tree\TreeNode $destination
*/
public function copyNodeInDestinationNode($node, $destination);
/**
* Copies given node after a destination node
*
* @param \TYPO3\CMS\Backend\Tree\TreeNode $node
* @param \TYPO3\CMS\Backend\Tree\TreeNode $destination
*/
public function copyNodeAfterDestinationNode($node, $destination);
}
<?php
namespace TYPO3\CMS\Backend\Tree;
/*
* 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!
*/
/**
* Describes necessary methods if the node label should be editable
* within the tree.
*/
interface EditableNodeLabelInterface
{
/**
* Sets the new label
*
* @param string $label
*/
public function setLabel($label);
}
<?php
namespace TYPO3\CMS\Backend\Tree;
/*
* 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!
*/
use TYPO3\CMS\Core\Imaging\Icon;
/**
* Node for the usage with ExtDirect and ExtJS
*/
class ExtDirectNode extends \TYPO3\CMS\Backend\Tree\TreeNode
{
/**
* Node type
*
* @var string
*/
protected $type = '';
/**
* Leaf Node Indicator
*
* @var bool
*/
protected $leaf = true;
/**
* Indicator if the node is expanded
*
* @var bool
*/
protected $expanded = false;
/**
* Indicator if the node can be expanded
*
* @var bool
*/
protected $expandable = false;
/**
* Indicator if the node is draggable
*
* @var bool
*/
protected $draggable = true;
/**
* Indicator if the node is allowed as a drop target
*
* @var bool
*/
protected $isDropTarget = true;
/**
* Label
*
* @var string
*/
protected $text = '';
/**
* Editable Label text
*
* @var string
*/
protected $editableText = '';
/**
* Prefix text of the label
*
* @var string
*/
protected $prefix = '';
/**
* Suffix text of the label
*
* @var string
*/
protected $suffix = '';
/**
* CSS Class
*
* @var string
*/
protected $cls = '';
/**
* Quick Tip
*
* @var string
*/
protected $qtip = '';
/**
* Sprite Icon HTML
*
* @var string
*/
protected $spriteIconCode = '';
/**
* Icon
*
* @var Icon
*/
protected $icon;
/**
* Text source field (title, nav_title, ...)
*
* @var string
*/
protected $t3TextSourceField = '';
/**
* Indicator if the copy mode is activated
*
* @var bool
*/
protected $t3InCopyMode = false;
/**
* Indicator if the cut mode is activated
*
* @var bool
*/
protected $t3InCutMode = false;
/**
* Database record (not serialized or merged into the result array!)
*
* @var array
*/
protected $record = [];
/**
* Context Info
*
* @var array
*/
protected $contextInfo = [];
/**
* Indicator if the label is editable
*
* @var bool
*/
protected $labelIsEditable = true;
/**
* Indicator if the node can have children's
*
* @var bool
*/
protected $allowChildren = true;
/**
* Page URL Alias
*
* @var string
*/
protected $alias = '';
/**
* Set's the node type
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* Returns the node type
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Sets the leaf node indicator
*
* @param bool $isLeaf
*/
public function setLeaf($isLeaf)
{
$this->leaf = $isLeaf == true;
}
/**
* Returns if the node is a leaf node
*
* @return bool
*/
public function isLeafNode()
{
return $this->leaf;
}
/**
* Sets the expandable indicator
*
* @param bool $expandable
*/
public function setExpandable($expandable)
{
$this->expandable = $expandable == true;
}
/**
* Returns the expandable indicator
*
* @return bool
*/
public function isExpandable()
{
return $this->expandable;
}
/**
* Sets the expanded indicator
*
* @param bool $expanded
*/
public function setExpanded($expanded)
{
$this->expanded = $expanded == true;
}
/**
* Returns the expanded indicator
*
* @return bool
*/
public function isExpanded()
{
if ($this->isLeafNode()) {
return true;
}
return $this->expanded;
}
/**
* Sets the draggable indicator
*
* @param bool $draggable
*/
public function setDraggable($draggable)
{
$this->draggable = $draggable == true;
}
/**
* Returns the draggable indicator
*
* @return bool
*/
public function isDraggable()
{
return $this->draggable;
}
/**
* Sets the indicator if the node can be a drop target
*
* @param bool $isDropTarget
*/
public function setIsDropTarget($isDropTarget)
{
$this->isDropTarget = $isDropTarget == true;
}
/**
* Returns the indicator if the node is a drop target
*
* @return bool
*/
public function isDropTarget()
{
return $this->isDropTarget;
}
/**
* Sets the label of the node with the source field and the prefix
*
* @param string $text
* @param string $textSourceField
* @param string $prefix
* @param string $suffix
*/
public function setText($text, $textSourceField = 'title', $prefix = '', $suffix = '')
{
$this->text = $text;
$this->t3TextSourceField = $textSourceField;
$this->prefix = $prefix;
$this->suffix = $suffix;
}
/**
* Returns the label
*
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Sets the editable text
*
* @param string $editableText
*/
public function setEditableText($editableText)
{
$this->editableText = $editableText;
}
/**
* Returns the editable text
*
* @return string
*/
public function getEditableText()
{
return $this->editableText;
}
/**
* Returns the source field of the label
*
* @return string
*/
public function getTextSourceField()
{
return $this->t3TextSourceField;
}
/**
* Sets the paste copy indicator
*
* @param bool $inCopyMode
*/
public function setInCopyMode($inCopyMode)
{
$this->t3InCopyMode = $inCopyMode == true;
}
/**
* Returns the copy mode indicator
*
* @return bool
*/
public function isInCopyMode()
{
return $this->t3InCopyMode;
}
/**
* Sets the paste cut indicator
*
* @param bool $inCutMode
*/
public function setInCutMode($inCutMode)
{
$this->t3InCutMode = $inCutMode == true;
}
/**
* Returns the cut mode indicator
*
* @return bool
*/
public function isInCutMode()
{
return $this->t3InCutMode;
}
/**
* Returns the prefix text of the label
*
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* Returns the suffix text of the label
*
* @return string
*/
public function getSuffix()
{
return $this->suffix;
}
/**
* Sets the css class(es)
*
* @param string $class
*/
public function setCls($class)
{
$this->cls = $class;
}
/**
* Returns the css class(es)
*
* @return string
*/
public function getCls()
{
return $this->cls;
}
/**
* Sets the quick tip
*
* @param string $qtip
*/
public function setQTip($qtip)
{
$this->qtip = $qtip;
}
/**
* Returns the quick tip
*
* @return string
*/
public function getQTip()
{
return $this->qtip;
}
/**
* Sets the sprite icon code
*
* @param string $spriteIcon
*/
public function setSpriteIconCode($spriteIcon)
{
$this->spriteIconCode = $spriteIcon;
}
/**
* Returns the sprite icon code
*
* @return string
*/
public function getSpriteIconCode()
{
return $this->spriteIconCode;
}
/**
* Sets the node icon
*
* @param Icon $icon
*/
public function setIcon(Icon $icon)
{
$this->icon = $icon;
}
/**
* Returns the icon
*
* @return Icon
*/
public function getIcon()
{
return $this->icon;
}
/**
* Sets the indicator if the label is editable
*
* @param bool $labelIsEditable
*/
public function setLabelIsEditable($labelIsEditable)
{
$this->labelIsEditable = $labelIsEditable == true;
}
/**