TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractViewHelper Class Reference
Inheritance diagram for AbstractViewHelper:
AvatarViewHelper FormatDetailsViewHelper HistoryEntryViewHelper IsExtensionLoadedViewHelper UsernameViewHelper WorkspaceTitleViewHelper ArrayElementViewHelper PagesViewHelper SysFileMountsViewHelper SysLanguageViewHelper EditRecordViewHelper IssueCommandViewHelper PermissionsViewHelper RemoveUserViewHelper SwitchUserViewHelper IconForRecordViewHelper IconViewHelper FormatViewHelper FormatsViewHelper ImplodeViewHelper JsonEncodeViewHelper InstallationStateCssClassViewHelper TimeSinceLastUpdateViewHelper Typo3DependencyViewHelper DeleteFileViewHelper EditFileContentViewHelper EditSysFileMetadataRecordViewHelper RenameFileViewHelper ReplaceFileViewHelper AbstractTagBasedViewHelper AbstractWidgetViewHelper TestViewHelper BaseViewHelper AbstractBackendViewHelper InfoboxViewHelper PageRendererViewHelper CaseViewHelper CObjectViewHelper DebugViewHelper ValidationResultsViewHelper AbstractEncodingViewHelper BytesViewHelper CaseViewHelper CropViewHelper CurrencyViewHelper DateViewHelper HtmlViewHelper Nl2brViewHelper NumberViewHelper PaddingViewHelper StripTagsViewHelper UrlencodeViewHelper TypolinkViewHelper RenderChildrenViewHelper TranslateViewHelper ActionViewHelper EmailViewHelper ExternalViewHelper ImageViewHelper PageViewHelper ResourceViewHelper TypolinkViewHelper UriViewHelper ClickEnlargeViewHelper AbstractMenuViewHelper RenderContentElementPreviewViewHelper PlainTextMailViewHelper RenderAllFormValuesViewHelper RenderRenderableViewHelper RenderViewHelper TranslateElementPropertyViewHelper DateTimeViewHelper FlagValueViewHelper GroupListViewHelper PageBrowsingResultsViewHelper PageBrowsingViewHelper ConstantViewHelper ExistsViewHelper ImageDimensionViewHelper RelativePathViewHelper SizeViewHelper CropViewHelper ImageMagickCommandsViewHelper PhpErrorCodeViewHelper ArrayValueByKeyViewHelper PhpInfoViewHelper ModuleLinkViewHelper DeleteLinkViewHelper EditLinkViewHelper

Public Member Functions

 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Protected Member Functions

 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Protected Attributes

 $controllerContext
 
 $objectManager
 

Private Attributes

 $reflectionService
 

Detailed Description

The abstract base class for all view helpers.

Definition at line 26 of file AbstractViewHelper.php.

Member Function Documentation

callRenderMethod ( )
protected

Call the render() method and handle errors.

Returns
string the rendered ViewHelper
Exceptions
Exception

Definition at line 84 of file AbstractViewHelper.php.

References GeneralUtility\getApplicationContext(), AbstractViewHelper\getLogger(), and ArgumentDefinition\isMethodParameter().

Referenced by AbstractWidgetViewHelper\initializeArgumentsAndRender().

getLogger ( )
protected
Returns
LoggerInterface

Definition at line 108 of file AbstractViewHelper.php.

References GeneralUtility\makeInstance().

Referenced by AbstractViewHelper\callRenderMethod().

injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 63 of file AbstractViewHelper.php.

References AbstractViewHelper\$objectManager.

injectReflectionService ( \TYPO3\CMS\Extbase\Reflection\ReflectionService  $reflectionService)

Inject a Reflection service

Parameters
\TYPO3\CMS\Extbase\Reflection\ReflectionService$reflectionServiceReflection service

Definition at line 73 of file AbstractViewHelper.php.

References AbstractViewHelper\$reflectionService.

prepareArguments ( )
Returns
[]
Exceptions
TYPO3Fluid

Definition at line 162 of file AbstractViewHelper.php.

References AbstractViewHelper\registerRenderMethodArguments().

registerRenderMethodArguments ( )
protected

Register method arguments for "render" by analysing the doc comment above.

Returns
void
Exceptions
TYPO3Fluid

Definition at line 119 of file AbstractViewHelper.php.

Referenced by AbstractViewHelper\prepareArguments().

setRenderingContext ( \TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface  $renderingContext)
Parameters
\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
void

Definition at line 52 of file AbstractViewHelper.php.

Member Data Documentation

$controllerContext
protected

Definition at line 34 of file AbstractViewHelper.php.

Referenced by BaseViewHelper\renderStatic().

$objectManager
protected
$reflectionService
private

Definition at line 41 of file AbstractViewHelper.php.

Referenced by AbstractViewHelper\injectReflectionService().