TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
FileNameFilter.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Resource\Filter
;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
17
use
TYPO3\CMS\Core\Resource\Driver\DriverInterface
;
18
22
class
FileNameFilter
23
{
29
protected
static
$showHiddenFilesAndFolders
=
false
;
30
44
public
static
function
filterHiddenFilesAndFolders
($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation,
DriverInterface
$driverInstance)
45
{
46
// Only apply the filter if you want to hide the hidden files
47
if
(self::$showHiddenFilesAndFolders ===
false
&& strpos($itemIdentifier,
'/.'
) !==
false
) {
48
return
-1;
49
}
50
return
true
;
51
}
52
59
public
static
function
getShowHiddenFilesAndFolders
()
60
{
61
return
self::$showHiddenFilesAndFolders
;
62
}
63
71
public
static
function
setShowHiddenFilesAndFolders
(
$showHiddenFilesAndFolders
)
72
{
73
return
self::$showHiddenFilesAndFolders = (bool)
$showHiddenFilesAndFolders
;
74
}
75
}
TYPO3\CMS\Core\Resource\Driver\DriverInterface
Definition:
DriverInterface.php:22
TYPO3\CMS\Core\Resource\Filter\FileNameFilter\getShowHiddenFilesAndFolders
static bool getShowHiddenFilesAndFolders()
Definition:
FileNameFilter.php:58
TYPO3\CMS\Core\Resource\Filter\FileNameFilter\filterHiddenFilesAndFolders
static bool int filterHiddenFilesAndFolders($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation, DriverInterface $driverInstance)
Definition:
FileNameFilter.php:43
TYPO3\CMS\Core\Resource\Filter\FileNameFilter\setShowHiddenFilesAndFolders
static bool setShowHiddenFilesAndFolders($showHiddenFilesAndFolders)
Definition:
FileNameFilter.php:70
TYPO3\CMS\Core\Resource\Filter
Definition:
FileExtensionFilter.php:2
TYPO3\CMS\Core\Resource\Filter\FileNameFilter\$showHiddenFilesAndFolders
static bool $showHiddenFilesAndFolders
Definition:
FileNameFilter.php:28
TYPO3\CMS\Core\Resource\Filter\FileNameFilter
Definition:
FileNameFilter.php:23
doxygen
typo3
sysext
core
Classes
Resource
Filter
FileNameFilter.php
Generated on Tue Oct 5 2021 01:57:11 for TYPO3CMS by
1.8.18