‪TYPO3CMS  10.4
FileListFolderTree.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
16 namespace ‪TYPO3\CMS\Filelist;
17 
19 
26 {
30  public ‪$ext_IconMode;
31 
39  public function ‪wrapIcon($theFolderIcon, $folderObject)
40  {
41  $theFolderIcon = parent::wrapIcon($theFolderIcon, $folderObject);
42  // Wrap icon in a drag/drop span.
43  return '<span class="list-tree-icon dragIcon" id="dragIconID_' . $this->‪getJumpToParam($folderObject) . '">' . $theFolderIcon . '</span> ';
44  }
45 
55  public function ‪wrapTitle(‪$title, $folderObject, ‪$bank = 0)
56  {
57  $theFolderTitle = parent::wrapTitle(‪$title, $folderObject, ‪$bank);
58  // Wrap title in a drag/drop span.
59  return '<span class="list-tree-title dragTitle" id="dragTitleID_' . $this->‪getJumpToParam($folderObject) . '">' . $theFolderTitle . '</span>';
60  }
61 }
‪TYPO3\CMS\Filelist\FileListFolderTree
Definition: FileListFolderTree.php:26
‪TYPO3\CMS\Backend\Tree\View\FolderTreeView\getJumpToParam
‪string getJumpToParam($folderObject)
Definition: FolderTreeView.php:222
‪TYPO3\CMS\Filelist\FileListFolderTree\wrapTitle
‪string wrapTitle($title, $folderObject, $bank=0)
Definition: FileListFolderTree.php:54
‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView\$title
‪string $title
Definition: AbstractTreeView.php:74
‪TYPO3\CMS\Filelist
‪TYPO3\CMS\Backend\Tree\View\AbstractTreeView\$bank
‪int $bank
Definition: AbstractTreeView.php:219
‪TYPO3\CMS\Backend\Tree\View\FolderTreeView
Definition: FolderTreeView.php:38
‪TYPO3\CMS\Filelist\FileListFolderTree\$ext_IconMode
‪bool $ext_IconMode
Definition: FileListFolderTree.php:29
‪TYPO3\CMS\Filelist\FileListFolderTree\wrapIcon
‪string wrapIcon($theFolderIcon, $folderObject)
Definition: FileListFolderTree.php:38