コード例 #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);
 }
コード例 #2
0
 /**
  * (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');
 }
コード例 #3
0
 /**
  * Initialize ViewHelper
  */
 public function initialize()
 {
     parent::initialize();
     if (TYPO3_MODE === 'FE' && $GLOBALS['TSFE']) {
         $this->pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
     }
 }
コード例 #4
0
 /**
  * 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);
 }
コード例 #5
0
 /**
  * (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();
 }
コード例 #6
0
 /**
  * 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);
 }
コード例 #7
0
ファイル: PictureViewHelper.php プロジェクト: smichaelsen/vhs
 /**
  * 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);
 }
コード例 #8
0
 /**
  * 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();
 }
コード例 #9
0
 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);
 }
コード例 #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, []);
 }
コード例 #11
0
 /**
  * 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);
 }
コード例 #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');
 }
コード例 #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);
 }
コード例 #14
0
ファイル: ImageViewHelper.php プロジェクト: fluidtypo3/vhs
 /**
  * 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');
 }
コード例 #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.');
 }
コード例 #16
0
ファイル: GravatarViewHelper.php プロジェクト: fluidtypo3/vhs
 /**
  * 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);
 }
コード例 #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);
 }
コード例 #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');
 }
コード例 #19
0
ファイル: SourceViewHelper.php プロジェクト: smichaelsen/vhs
 /**
  * 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);
 }
コード例 #20
0
 /**
  * Arguments initialization
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
 }
コード例 #21
0
 /**
  * Initialize arguments.
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('alt', 'string', 'Specifies an alternate text for an image', false);
 }
コード例 #22
0
 /**
  * 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);
 }
コード例 #23
0
 public function initialize()
 {
     parent::initialize();
     $this->settings = $this->templateVariableContainer->get('settings');
 }
コード例 #24
0
 /**
  * Initialize arguments
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('queueIdentifier', 'string', 'Flash-message queue to use', false);
 }
コード例 #25
0
 /**
  * (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');
 }
コード例 #26
0
 /**
  * @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);
 }
コード例 #27
0
 /**
  * (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();
 }
コード例 #28
0
 public function initialize()
 {
     parent::initialize();
     $this->paramLabels = array('href', 'target', 'class', 'title');
 }
コード例 #29
0
 public function initialize()
 {
     parent::initialize();
     $this->definedCustomMetaDataConfigCollection = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance()->buildCustomMetaDataConfiguration();
 }
コード例 #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');
 }