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
VisibilityAspect.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types = 1);
3
namespace
TYPO3\CMS\Core\Context
;
4
5
/*
6
* This file is part of the TYPO3 CMS project.
7
*
8
* It is free software; you can redistribute it and/or modify it under
9
* the terms of the GNU General Public License, either version 2
10
* of the License, or any later version.
11
*
12
* For the full copyright and license information, please read the
13
* LICENSE.txt file that was distributed with this source code.
14
*
15
* The TYPO3 project - inspiring people to share!
16
*/
17
18
use
TYPO3\CMS\Core\Context\Exception\AspectPropertyNotFoundException
;
19
28
class
VisibilityAspect
implements
AspectInterface
29
{
33
protected
$includeHiddenPages
;
34
38
protected
$includeHiddenContent
;
39
43
protected
$includeDeletedRecords
;
44
50
public
function
__construct
(
bool
$includeHiddenPages
=
false
,
bool
$includeHiddenContent
=
false
,
bool
$includeDeletedRecords
=
false
)
51
{
52
$this->
includeHiddenPages
=
$includeHiddenPages
;
53
$this->
includeHiddenContent
=
$includeHiddenContent
;
54
$this->
includeDeletedRecords
=
$includeDeletedRecords
;
55
}
56
64
public
function
get
(
string
$name)
65
{
66
switch
($name) {
67
case
'includeHiddenPages'
:
68
return
$this->includeHiddenPages
;
69
case
'includeHiddenContent'
:
70
return
$this->includeHiddenContent
;
71
case
'includeDeletedRecords'
:
72
return
$this->includeDeletedRecords
;
73
}
74
throw
new
AspectPropertyNotFoundException
(
'Property "'
. $name .
'" not found in Aspect "'
. __CLASS__ .
'".'
, 1527780439);
75
}
76
77
public
function
includeHidden
(): bool
78
{
79
return
$this->
includeHiddenContent
||
$this->includeHiddenPages
;
80
}
81
82
public
function
includeHiddenPages
(): bool
83
{
84
return
$this->includeHiddenPages
;
85
}
86
87
public
function
includeHiddenContent
(): bool
88
{
89
return
$this->includeHiddenContent
;
90
}
91
92
public
function
includeDeletedRecords
(): bool
93
{
94
return
$this->includeDeletedRecords
;
95
}
96
}
TYPO3\CMS\Core\Context\VisibilityAspect
Definition:
VisibilityAspect.php:29
TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenPages
includeHiddenPages()
Definition:
VisibilityAspect.php:79
TYPO3\CMS\Core\Context\VisibilityAspect\includeDeletedRecords
includeDeletedRecords()
Definition:
VisibilityAspect.php:89
TYPO3\CMS\Core\Context
Definition:
AspectInterface.php:3
TYPO3\CMS\Core\Context\VisibilityAspect\$includeDeletedRecords
bool $includeDeletedRecords
Definition:
VisibilityAspect.php:40
TYPO3\CMS\Core\Context\AspectInterface
Definition:
AspectInterface.php:25
TYPO3\CMS\Core\Context\VisibilityAspect\includeHidden
includeHidden()
Definition:
VisibilityAspect.php:74
TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenPages
bool $includeHiddenPages
Definition:
VisibilityAspect.php:32
TYPO3\CMS\Core\Context\VisibilityAspect\__construct
__construct(bool $includeHiddenPages=false, bool $includeHiddenContent=false, bool $includeDeletedRecords=false)
Definition:
VisibilityAspect.php:47
TYPO3\CMS\Core\Context\VisibilityAspect\$includeHiddenContent
bool $includeHiddenContent
Definition:
VisibilityAspect.php:36
TYPO3\CMS\Core\Context\VisibilityAspect\includeHiddenContent
includeHiddenContent()
Definition:
VisibilityAspect.php:84
TYPO3\CMS\Core\Context\Exception\AspectPropertyNotFoundException
Definition:
AspectPropertyNotFoundException.php:24
doxygen
typo3
sysext
core
Classes
Context
VisibilityAspect.php
Generated on Tue Oct 5 2021 01:57:03 for TYPO3CMS by
1.8.18