TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\About\ViewHelpers\SkinImageViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\About\ViewHelpers\SkinImageViewHelper:
TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper Tx_About_ViewHelpers_SkinImageViewHelper

Public Member Functions

 render ($src, $width=NULL, $height=NULL, $minWidth=NULL, $minHeight=NULL, $maxWidth=NULL, $maxHeight=NULL)
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper
 initializeArguments ()
 
 render ($src=NULL, $width=NULL, $height=NULL, $minWidth=NULL, $minHeight=NULL, $maxWidth=NULL, $maxHeight=NULL, $treatIdAsReference=FALSE, $image=NULL)
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
 __construct ()
 
 initialize ()
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 setArguments (array $arguments)
 
 setRenderingContext (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 isEscapingInterceptorEnabled ()
 
 setViewHelperNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node)
 
 setRenderChildrenClosure (\Closure $renderChildrenClosure)
 
 initializeArgumentsAndRender ()
 
 initialize ()
 
 renderChildren ()
 
 prepareArguments ()
 
 validateArguments ()
 
 initializeArguments ()
 
 compile ($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode, \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode, \TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler)
 
 resetState ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
static renderStatic (array $arguments, \Closure $renderChildrenClosure, \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
 registerTagAttribute ($name, $type, $description, $required=FALSE, $default=NULL)
 
 registerUniversalTagAttributes ()
 
- Protected Member Functions inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 registerArgument ($name, $type, $description, $required=FALSE, $defaultValue=NULL)
 
 overrideArgument ($name, $type, $description, $required=FALSE, $defaultValue=NULL)
 
 callRenderMethod ()
 
 buildRenderChildrenClosure ()
 
 hasArgument ($argumentName)
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper
 $tagName = 'img'
 
 $imageService
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
 $tag = NULL
 
 $tagName = 'div'
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
 $arguments
 
 $templateVariableContainer
 
 $controllerContext
 
 $renderingContext
 
 $renderChildrenClosure = NULL
 
 $viewHelperVariableContainer
 
 $objectManager
 
 $escapingInterceptorEnabled = TRUE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Render images that can be registered in the TYPO3 backend skinning API Extends the default image view helper from fluid

This view helper is a helper for ext:about only and should not be used outside of the extension for now. See the fluid templates of ext:about for a usage example.

Definition at line 24 of file SkinImageViewHelper.php.

Member Function Documentation

◆ render()

TYPO3\CMS\About\ViewHelpers\SkinImageViewHelper::render (   $src,
  $width = NULL,
  $height = NULL,
  $minWidth = NULL,
  $minHeight = NULL,
  $maxWidth = NULL,
  $maxHeight = NULL 
)

Resizes a given image (if required) and renders the respective img tag

See also
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/5/#id4164427
Parameters
string$src
string$widthwidth of the image. This can be a numeric value representing the fixed width of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.
string$heightheight of the image. This can be a numeric value representing the fixed height of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.
integer$minWidthminimum width of the image
integer$minHeightminimum height of the image
integer$maxWidthmaximum width of the image
integer$maxHeightmaximum height of the image
Returns
string rendered tag.

Definition at line 39 of file SkinImageViewHelper.php.

References TYPO3\CMS\Backend\Utility\IconUtility\skinImg().