FluidTYPO3\Vhs\ViewHelpers\Media\Image\AbstractImageViewHelper::initializeArguments PHP Method

initializeArguments() public method

Initialize arguments.
public initializeArguments ( ) : void
return void
    public function initializeArguments()
    {
        parent::initializeArguments();
        $this->registerArgument('width', 'string', 'Width 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.');
        $this->registerArgument('height', 'string', 'Height 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.');
        $this->registerArgument('maxW', 'integer', 'Maximum Width of the image. (no upscaling)');
        $this->registerArgument('maxH', 'integer', 'Maximum Height of the image. (no upscaling)');
        $this->registerArgument('minW', 'integer', 'Minimum Width of the image.');
        $this->registerArgument('minH', 'integer', 'Minimum Height of the image.');
        $this->registerArgument('format', 'string', 'Format of the processed file - also determines the target file format. If blank, TYPO3/IM/GM default is ' . 'taken into account.');
        $this->registerArgument('quality', 'integer', 'Quality of the processed image. If blank/not present falls back to the default quality defined in ' . 'install tool.');
        $this->registerArgument('treatIdAsReference', 'boolean', 'When TRUE treat given src argument as sys_file_reference record. Applies only to TYPO3 6.x and above.', false, false);
        $this->registerArgument('canvasWidth', 'integer', 'Width of an optional canvas to place the image on.');
        $this->registerArgument('canvasHeight', 'integer', 'Height of an optional canvas to place the image on.');
        $this->registerArgument('canvasColor', 'string', 'Background color of an optional canvas to place the image on (hex triplet).');
        $this->registerArgument('crop', 'string', 'Information generated by the backend\'s graphical cropping UI');
    }

Usage Example

Example #1
0
 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('usemap', 'string', 'A hash-name reference to a map element with which to associate the image.', FALSE);
     $this->registerTagAttribute('ismap', 'string', 'Specifies that its img element provides access to a server-side image map.', FALSE, '');
     $this->registerTagAttribute('alt', 'string', 'Equivalent content for those who cannot process images or who have image loading disabled.', TRUE);
 }
All Usage Examples Of FluidTYPO3\Vhs\ViewHelpers\Media\Image\AbstractImageViewHelper::initializeArguments