‪TYPO3CMS  10.4
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

array[] processSessionData ($data)
 
string render ()
 
string[] getUrlParameters (array $values)
 
bool isCurrentlySelectedItem (array $values)
 
string getScriptUrl ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
 __construct ()
 

Protected Member Functions

 initialize ()
 
 initVariables ()
 
string renderFolders (Folder $parentFolder)
 
string[] getBodyTagAttributes ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
 determineScriptUrl ()
 
 setBodyTagParameters ()
 
array< string, getBodyTagAttributes();protected array< string, function getBParamDataAttributes() {[ $fieldRef, $rteParams, $rteConfig,, $irreObjectId]=explode('|', $this->bparams);return['data-this-script-url'=> strpos( $this->thisScript, '?')===false ? $this-> LanguageService function getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

string null $expandFolder
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Recordlist\Browser\AbstractElementBrowser
ModuleTemplate $moduleTemplate
 
PageRenderer $pageRenderer
 
string $thisScript = ''
 
IconFactory $iconFactory
 
string $bparams
 
array< string, function getBodyTagAttributes();protected array< string, function getBParamDataAttributes() {[ $fieldRef, $rteParams, $rteConfig,, $irreObjectId]=explode('|', $this->bparams);return['data-this-script-url'=> strpos( $this->thisScript, '?')===false ? $this-> thisScript: $this->thisScript . '&'
 

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 30 of file FolderBrowser.php.

Member Function Documentation

◆ getBodyTagAttributes()

string [] TYPO3\CMS\Recordlist\Browser\FolderBrowser::getBodyTagAttributes ( )
protected
Returns
‪string[] Array of body-tag attributes

Definition at line 185 of file FolderBrowser.php.

◆ 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 219 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 196 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 44 of file FolderBrowser.php.

◆ initVariables()

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

Checks for an additional request parameter

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

Definition at line 57 of file FolderBrowser.php.

◆ 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 209 of file FolderBrowser.php.

◆ processSessionData()

array [] TYPO3\CMS\Recordlist\Browser\FolderBrowser::processSessionData (   $data)

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

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

Implements TYPO3\CMS\Recordlist\Browser\ElementBrowserInterface.

Definition at line 69 of file FolderBrowser.php.

References TYPO3\CMS\Recordlist\Browser\FolderBrowser\$expandFolder.

◆ 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 39 of file FolderBrowser.php.

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