TYPO3  7.6
Static Protected Member Functions | List of all members
IfAuthenticatedViewHelper Class Reference
Inheritance diagram for IfAuthenticatedViewHelper:
AbstractConditionViewHelper AbstractViewHelper ChildNodeAccessInterface CompilableInterface

Static Protected Member Functions

static evaluateCondition ($arguments=null)
 
- Static Protected Member Functions inherited from AbstractConditionViewHelper
static renderStaticThenChild ($arguments, &$hasEvaluated)
 
static renderStaticElseChild ($arguments, &$hasEvaluated)
 
static evaluateCondition ($arguments=null)
 

Additional Inherited Members

- Public Member Functions inherited from AbstractConditionViewHelper
 setChildNodes (array $childNodes)
 
 __construct ()
 
 render ()
 
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode,\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode,\TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 
- Static Public Member Functions inherited from AbstractConditionViewHelper
static renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- Protected Member Functions inherited from AbstractConditionViewHelper
 renderThenChild ()
 
 renderElseChild ()
 
- Protected Attributes inherited from AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = null
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = true
 

Detailed Description

This view helper implements an ifAuthenticated/else condition for FE users/groups.

= Examples =

<f:security.ifAuthenticated> This is being shown whenever a FE user is logged in </f:security.ifAuthenticated> <output> Everything inside the <f:ifAuthenticated> tag is being displayed if you are authenticated with any FE user account. </output>

<f:security.ifAuthenticated> <f:then> This is being shown in case you have access. </f:then> <f:else> This is being displayed in case you do not have access. </f:else> </f:security.ifAuthenticated> <output> Everything inside the "then" tag is displayed if you have access. Otherwise, everything inside the "else"-tag is displayed. </output>

Definition at line 54 of file Security/IfAuthenticatedViewHelper.php.

Member Function Documentation

static evaluateCondition (   $arguments = null)
staticprotected

This method decides if the condition is TRUE or FALSE. It can be overriden in extending viewhelpers to adjust functionality.

Parameters
array$argumentsViewHelper arguments to evaluate the condition for this ViewHelper, allows for flexiblity in overriding this method.
Returns
bool

Definition at line 62 of file Security/IfAuthenticatedViewHelper.php.

References $GLOBALS.