TYPO3  7.6
Static Public Member Functions | Static Protected Attributes | List of all members
FileNameFilter Class Reference

Static Public Member Functions

static filterHiddenFilesAndFolders ($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation,\TYPO3\CMS\Core\Resource\Driver\DriverInterface $driverInstance)
 
static getShowHiddenFilesAndFolders ()
 
static setShowHiddenFilesAndFolders ($showHiddenFilesAndFolders)
 

Static Protected Attributes

static $showHiddenFilesAndFolders = false
 

Detailed Description

Utility methods for filtering filenames

Definition at line 20 of file FileNameFilter.php.

Member Function Documentation

static filterHiddenFilesAndFolders (   $itemName,
  $itemIdentifier,
  $parentIdentifier,
array  $additionalInformation,
\TYPO3\CMS\Core\Resource\Driver\DriverInterface  $driverInstance 
)
static

Filter method that checks if a file/folder name starts with a dot (e.g. .htaccess)

We have to use -1 as the „don't include“ return value, as call_user_func() will return FALSE If calling the method succeeded and thus we can't use that as a return value.

Parameters
string$itemName
string$itemIdentifier
string$parentIdentifier
array$additionalInformationAdditional information (driver dependent) about the inspected item
\TYPO3\CMS\Core\Resource\Driver\DriverInterface$driverInstance
Returns
bool|int -1 if the file should not be included in a listing

Definition at line 42 of file FileNameFilter.php.

static getShowHiddenFilesAndFolders ( )
static

Gets the info whether the hidden files are also displayed currently

Returns
bool

Definition at line 58 of file FileNameFilter.php.

static setShowHiddenFilesAndFolders (   $showHiddenFilesAndFolders)
static

set the flag to show (or hide) the hidden files

Parameters
bool$showHiddenFilesAndFolders
Returns
bool

Definition at line 70 of file FileNameFilter.php.

References FileNameFilter\$showHiddenFilesAndFolders.

Member Data Documentation

$showHiddenFilesAndFolders = false
staticprotected

Definition at line 27 of file FileNameFilter.php.

Referenced by FileNameFilter\setShowHiddenFilesAndFolders().