‪TYPO3CMS  11.5
TYPO3\CMS\Recordlist\Browser\FolderBrowser Class Reference
Inheritance diagram for TYPO3\CMS\Recordlist\Browser\FolderBrowser:
TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser TYPO3\CMS\Recordlist\Browser\ElementBrowserInterface TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface

Public Member Functions

string render ()
 
string[] getUrlParameters (array $values)
 
bool isCurrentlySelectedItem (array $values)
 
string getScriptUrl ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
 __construct (IconFactory $iconFactory, PageRenderer $pageRenderer, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory)
 
array< string, getBodyTagAttributes() { return[];} protected array< string, function getBParamDataAttributes() { $params=explode('|', $this->bparams);$fieldRef=$params[0];$rteParams=$params[1];$rteConfig=$params[2];$irreObjectId=$params[4] ?? null;return['data-form-field-name'=> 'data[' . $fieldRef . '][' . $rteParams . '][' . $rteConfig . ']', 'data-field-reference'=> function setRequest (ServerRequestInterface $request)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\ElementBrowserInterface
array[] processSessionData ($data)
 

Public Attributes

array< int, function processSessionData( $data) { if( $this->expandFolder !==null) { $data[ 'expandFolder']=$this-> expandFolder
 
 $store = true
 
 else
 
 return [$data, $store]
 

Protected Member Functions

 initialize ()
 
 initVariables ()
 
string renderFolders (Folder $parentFolder)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
 determineScriptUrl ()
 
 setBodyTagParameters ()
 
 getRequest ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

string null $expandFolder
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
ModuleTemplate $moduleTemplate
 
string $thisScript = ''
 
string $bparams = ''
 
ServerRequestInterface $request = null
 
IconFactory $iconFactory
 
PageRenderer $pageRenderer
 
UriBuilder $uriBuilder
 
ModuleTemplateFactory $moduleTemplateFactory
 
array< string, function getBodyTagAttributes() { return[];} protected array< string, function getBParamDataAttributes() { $params=explode('|', $this->bparams);$fieldRef=$params[0];$rteParams=$params[1];$rteConfig=$params[2];$irreObjectId=$params[4] ?? null;return['data-form-field-name'=> 'data[' . $fieldRef . '][' . $rteParams . '][' . $rteConfig . ']', 'data-field-reference'=> $fieldRef
 

Detailed Description

Browser for folders

This class is a specific LinkBrowser implementation and is not part of the TYPO3's Core API.

Definition at line 29 of file FolderBrowser.php.

Member Function Documentation

◆ getScriptUrl()

string TYPO3\CMS\Recordlist\Browser\FolderBrowser::getScriptUrl ( )

Returns the URL of the current script

Returns
‪string

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 207 of file FolderBrowser.php.

References TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\$thisScript.

◆ getUrlParameters()

string [] TYPO3\CMS\Recordlist\Browser\FolderBrowser::getUrlParameters ( array  $values)
Parameters
array$values‪Array of values to include into the parameters
Returns
‪string[] Array of parameters which have to be added to URLs

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 184 of file FolderBrowser.php.

References TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser\$bparams, and TYPO3\CMS\Recordlist\Browser\FolderBrowser\$expandFolder.

◆ initialize()

TYPO3\CMS\Recordlist\Browser\FolderBrowser::initialize ( )
protected

Adds additional JavaScript modules

Reimplemented from TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser.

Definition at line 43 of file FolderBrowser.php.

◆ initVariables()

TYPO3\CMS\Recordlist\Browser\FolderBrowser::initVariables ( )
protected

◆ isCurrentlySelectedItem()

bool TYPO3\CMS\Recordlist\Browser\FolderBrowser::isCurrentlySelectedItem ( array  $values)
Parameters
array$values‪Values to be checked
Returns
‪bool Returns TRUE if the given values match the currently selected item

Implements TYPO3\CMS\Recordlist\Tree\View\LinkParameterProviderInterface.

Definition at line 197 of file FolderBrowser.php.

◆ render()

◆ renderFolders()

Member Data Documentation

◆ $expandFolder

string null TYPO3\CMS\Recordlist\Browser\FolderBrowser::$expandFolder
protected

When you click a folder name/expand icon to see the content of a certain file folder, this value will contain the path of the expanded file folder. If the value is NOT set, then it will be restored from the module session data. Example value: "/www/htdocs/typo3/32/3dsplm/fileadmin/css/"

Definition at line 38 of file FolderBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\FolderBrowser\getUrlParameters().

◆ $store

TYPO3\CMS\Recordlist\Browser\FolderBrowser::$store = true

Definition at line 69 of file FolderBrowser.php.

◆ else

TYPO3\CMS\Recordlist\Browser\FolderBrowser::else
Initial value:
{
$this->‪expandFolder = $data['expandFolder'] ?? null

Definition at line 70 of file FolderBrowser.php.

◆ expandFolder

array<int, function processSessionData($data) { if ($this->expandFolder !== null) { $data['expandFolder'] = $this-> TYPO3\CMS\Recordlist\Browser\FolderBrowser::expandFolder

Session data for this class can be set from outside with this method.

Parameters
mixed[]$data‪Session data array
Returns
‪array<int, array|bool> Session data and boolean which indicates that data needs to be stored in session because it's changed

Definition at line 68 of file FolderBrowser.php.

Referenced by TYPO3\CMS\Recordlist\Browser\FolderBrowser\initVariables(), and TYPO3\CMS\Recordlist\Browser\FolderBrowser\render().

◆ return

TYPO3\CMS\Recordlist\Browser\FolderBrowser::return[ $data, $store]

Definition at line 74 of file FolderBrowser.php.

‪TYPO3\CMS\Recordlist\Browser\FolderBrowser\expandFolder
‪array< int, function processSessionData( $data) { if( $this->expandFolder !==null) { $data[ 'expandFolder']=$this-> expandFolder
Definition: FolderBrowser.php:68