Example #1
0
 /**
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('name', 'string', 'Tag name', TRUE);
     $this->registerArgument('hideIfEmpty', 'boolean', 'Hide the tag completely if there is no tag content', FALSE, FALSE);
 }
 /**
  * (non-PHPdoc)
  * @see Classes/Core/ViewHelper/Tx_Fluid_Core_ViewHelper_AbstractTagBasedViewHelper::initialize()
  */
 public function initialize()
 {
     parent::initialize();
     $this->configurationBuilder = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance();
     $this->resolutionConfigCollection = $this->configurationBuilder->buildThemeConfiguration()->getResolutionConfigCollection();
     $this->crossSlideSettings = $this->configurationBuilder->getSettings('crossSlide');
 }
 /**
  * Initialize ViewHelper
  */
 public function initialize()
 {
     parent::initialize();
     if (TYPO3_MODE === 'FE' && $GLOBALS['TSFE']) {
         $this->pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
     }
 }
 /**
  * Arguments initialization
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('target', 'string', 'Target of link', false);
     $this->registerTagAttribute('rel', 'string', 'Specifies the relationship between the current document and the linked document', false);
 }
 /**
  * (non-PHPdoc)
  * @see Classes/Core/ViewHelper/Tx_Fluid_Core_ViewHelper_AbstractTagBasedViewHelper::initialize()
  */
 public function initialize()
 {
     parent::initialize();
     $this->configurationBuilder = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance();
     $this->headerInclusion = $this->objectManager->get('Tx_Yag_Utility_HeaderInclusion');
     $this->contextIdentifier = $this->configurationBuilder->getContextIdentifier();
 }
 /**
  * Initialize arguments.
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('data-src', 'string', 'The Video Source', FALSE);
     $this->registerTagAttribute('data-poster', 'string', 'The Video Source', FALSE);
 }
Example #7
0
 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('src', 'string', 'Path to the image.', TRUE);
     $this->registerArgument('alt', 'string', 'Text for the alt tag.', TRUE);
     $this->registerArgument('title', 'string', 'Text for the alt tag.', FALSE);
 }
 /**
  * Initialize arguments of this view helper
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('name', 'string', 'Name of input tag');
     $this->registerArgument('value', 'mixed', 'Value of input tag');
     $this->registerUniversalTagAttributes();
 }
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('llLabel', 'string', 'Locallang key for label.', FALSE, '');
     $this->registerArgument('label', 'string', 'Hardcoded label (better to use llLabel instead).', FALSE, '');
     $this->registerArgument('error', 'string', 'Error property path.', FALSE);
     $this->registerArgument('errorLLPrefix', 'string', 'Error label locallang prefix.', FALSE);
 }
Example #10
0
 /**
  * Initialize arguments.
  *
  * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('label', 'string', 'label of the option tag', true);
     $this->registerArgument('controller', 'string', 'controller to be associated with this ActionMenuItem', true);
     $this->registerArgument('action', 'string', 'the action to be associated with this ActionMenuItem', true);
     $this->registerArgument('arguments', 'array', 'additional controller arguments to be passed to the action when this ActionMenuItem is selected', false, []);
 }
 /**
  * Initialize arguments.
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('preload', 'string', 'Preload Video', FALSE);
     $this->registerTagAttribute('src', 'string', 'The Video Source', FALSE);
     $this->registerTagAttribute('data-setup', 'string', 'Setup Object', FALSE);
 }
Example #12
0
 /**
  * Arguments initialization
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('name', 'string', 'Specifies the name of an anchor');
     $this->registerTagAttribute('rel', 'string', 'Specifies the relationship between the current document and the linked document');
     $this->registerTagAttribute('rev', 'string', 'Specifies the relationship between the linked document and the current document');
     $this->registerTagAttribute('target', 'string', 'Specifies where to open the linked document');
 }
Example #13
0
 /**
  * Initialize arguments.
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('alt', 'string', 'Specifies an alternate text for an image', false);
     $this->registerTagAttribute('ismap', 'string', 'Specifies an image as a server-side image-map. Rarely used. Look at usemap instead', false);
     $this->registerTagAttribute('longdesc', 'string', 'Specifies the URL to a document that contains a long description of an image', false);
     $this->registerTagAttribute('usemap', 'string', 'Specifies an image as a client-side image-map', false);
 }
Example #14
0
 /**
  * Initialize
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('width', 'integer', 'Width of rendered placeholder image', false, 640);
     $this->registerArgument('height', 'integer', 'Height of rendered placeholder image', false, false);
     $this->registerArgument('backgroundColor', 'string', 'Background color', false, '333333');
     $this->registerArgument('textColor', 'string', 'Text color', false, 'FFFFFF');
 }
Example #15
0
 /**
  * Initialize arguments.
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('alt', 'string', 'Specifies an alternate text for an image', false);
     $this->registerArgument('file', 'object', 'File', true);
     $this->registerArgument('additionalConfig', 'string', 'This array can hold additional configuration that is passed though to the Renderer object', false, []);
     $this->registerArgument('width', 'string', 'This can be a numeric value representing the fixed width of 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', 'This can be a numeric value representing the fixed height in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.');
 }
Example #16
0
 /**
  * Initialize arguments.
  * Size argument has no default value to prevent the creation of an unnecessary URI parameter.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('email', 'string', 'Email address', true);
     $this->registerArgument('size', 'integer', 'Size in pixels, defaults to 80px [ 1 - 2048 ]');
     $this->registerArgument('imageSet', 'string', 'Default image set to use. Possible values [ 404 | mm | identicon | monsterid | wavatar ] ');
     $this->registerArgument('maximumRating', 'string', 'Maximum rating (inclusive) [ g | pg | r | x ]');
     $this->registerArgument('secure', 'boolean', 'If it is FALSE will return the un secure Gravatar domain (www.gravatar.com)', false, true);
 }
Example #17
0
 /**
  * Initialize arguments.
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('src', 'string', '', true);
     $this->registerArgument('width', 'int', 'width of the image');
     $this->registerArgument('height', 'int', 'height of the image');
     $this->registerArgument('fallbackImage', 'string', 'an optional fallback image if the $src image cannot be loaded', false, '');
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('alt', 'string', 'Specifies an alternate text for an image', false);
 }
Example #18
0
 /**
  * Initialize arguments
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('uri', 'string', 'The URI that will be put in the href attribute of the rendered link tag', true);
     $this->registerArgument('defaultScheme', 'string', 'Scheme the href attribute will be prefixed with if specified $uri does not contain a scheme already', false, 'http');
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('name', 'string', 'Specifies the name of an anchor');
     $this->registerTagAttribute('rel', 'string', 'Specifies the relationship between the current document and the linked document');
     $this->registerTagAttribute('rev', 'string', 'Specifies the relationship between the linked document and the current document');
     $this->registerTagAttribute('target', 'string', 'Specifies where to open the linked document');
 }
Example #19
0
 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('media', 'string', 'Media query for which breakpoint this sources applies', FALSE, NULL);
     $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.', FALSE);
     $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.', FALSE);
     $this->registerArgument('maxW', 'integer', 'Maximum Width of the image. (no upscaling)', FALSE);
     $this->registerArgument('maxH', 'integer', 'Maximum Height of the image. (no upscaling)', FALSE);
     $this->registerArgument('minW', 'integer', 'Minimum Width of the image.', FALSE);
     $this->registerArgument('minH', 'integer', 'Minimum Height of the image.', FALSE);
     $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.', FALSE, NULL);
     $this->registerArgument('quality', 'integer', 'Quality of the processed image. If blank/not present falls back to the default quality defined in install tool.', FALSE, NULL);
 }
 /**
  * Arguments initialization
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
 }
 /**
  * Initialize arguments.
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('alt', 'string', 'Specifies an alternate text for an image', false);
 }
 /**
  * Initializes passthrough arguments for the tag
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('controls', 'boolean', 'Specifies whether the player controls should be visible', FALSE);
     $this->registerTagAttribute('autoplay', 'boolean', 'Specifies whether the player should start playing without user interaction', FALSE);
     $this->registerTagAttribute('loop', 'boolean', 'Specifies whether the playback should be looped', FALSE);
     $this->registerTagAttribute('muted', 'boolean', 'Specifies whether the audio should be muted initially', FALSE);
     $this->registerTagAttribute('preload', 'string', 'Specifies the preloading behavior of the player', FALSE);
     $this->registerTagAttribute('crossorigin', 'string', 'Specifies the crossorigin policy for the media content', FALSE);
 }
 public function initialize()
 {
     parent::initialize();
     $this->settings = $this->templateVariableContainer->get('settings');
 }
 /**
  * Initialize arguments
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('queueIdentifier', 'string', 'Flash-message queue to use', false);
 }
 /**
  * (non-PHPdoc)
  * @see Classes/Core/ViewHelper/Tx_Fluid_Core_ViewHelper_AbstractTagBasedViewHelper::initialize()
  */
 public function initialize()
 {
     parent::initialize();
     $this->tagRepository = $this->objectManager->get('Tx_Yag_Domain_Repository_TagRepository');
 }
 /**
  * @test
  */
 public function registerTagAttributeRegistersArgumentWithNullIfNoDefaultValueIsSet()
 {
     $this->viewHelper = $this->getAccessibleMock('TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractTagBasedViewHelper', array('registerArgument'), array(), '', FALSE);
     $this->viewHelper->expects($this->once())->method('registerArgument')->with('foo', 'string', 'Description', FALSE, NULL);
     $this->viewHelper->_call('registerTagAttribute', 'foo', 'string', 'Description', FALSE);
 }
 /**
  * (non-PHPdoc)
  * @see Classes/Core/ViewHelper/Tx_Fluid_Core_ViewHelper_AbstractTagBasedViewHelper::initialize()
  */
 public function initialize()
 {
     parent::initialize();
     $this->configurationBuilder = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance();
 }
 public function initialize()
 {
     parent::initialize();
     $this->paramLabels = array('href', 'target', 'class', 'title');
 }
 public function initialize()
 {
     parent::initialize();
     $this->definedCustomMetaDataConfigCollection = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance()->buildCustomMetaDataConfiguration();
 }
Example #30
0
 /**
  * Initialize arguments
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('queueIdentifier', 'string', 'Flash-message queue to use');
     $this->registerArgument('as', 'string', 'The name of the current flashMessage variable for rendering inside');
 }