TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
InfoboxViewHelper Class Reference
Inheritance diagram for InfoboxViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Public Attributes

const STATE_NOTICE = -2
 
const STATE_INFO = -1
 
const STATE_OK = 0
 
const STATE_WARNING = 1
 
const STATE_ERROR = 2
 

Protected Attributes

 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

View helper for rendering a styled content infobox markup.

= States =

The Infobox provides different context sensitive states that can be used to provide an additional visual feedback to the to the user to underline the meaning of the information.

Possible values are in range from -2 to 2. Please choose a meaningful value from the following list.

-2: Notices (Default) -1: Information 0: Positive feedback 1: Warnings 2: Error

= Examples =

<f:be.infobox title="Message title">your box content</f:be.infobox>

<f:be.infobox title="Message title" message="your box content" state="-2" iconName="check" disableIcon="TRUE" />

Definition at line 49 of file InfoboxViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize arguments.

Exceptions
TYPO3Fluid

Definition at line 71 of file InfoboxViewHelper.php.

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
string

Definition at line 88 of file InfoboxViewHelper.php.

References MathUtility\isIntegerInRange().

Member Data Documentation

$escapeOutput = false
protected

Definition at line 64 of file InfoboxViewHelper.php.

const STATE_ERROR = 2
const STATE_NOTICE = -2

Definition at line 53 of file InfoboxViewHelper.php.

const STATE_OK = 0

Definition at line 55 of file InfoboxViewHelper.php.

const STATE_WARNING = 1

Definition at line 56 of file InfoboxViewHelper.php.