Exemplo n.º 1
0
 /**
  * Initialize ViewHelper
  */
 public function initialize()
 {
     parent::initialize();
     if (TYPO3_MODE === 'FE' && $GLOBALS['TSFE']) {
         $this->pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
     }
 }
 /**
  * (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();
 }
 /**
  * (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');
 }
 /**
  * @test
  */
 public function standardTagAttributesAreRegistered()
 {
     $mockTagBuilder = $this->getMock('TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\TagBuilder', array('addAttribute'), array(), '', FALSE);
     $mockTagBuilder->expects($this->at(0))->method('addAttribute')->with('class', 'classAttribute');
     $mockTagBuilder->expects($this->at(1))->method('addAttribute')->with('dir', 'dirAttribute');
     $mockTagBuilder->expects($this->at(2))->method('addAttribute')->with('id', 'idAttribute');
     $mockTagBuilder->expects($this->at(3))->method('addAttribute')->with('lang', 'langAttribute');
     $mockTagBuilder->expects($this->at(4))->method('addAttribute')->with('style', 'styleAttribute');
     $mockTagBuilder->expects($this->at(5))->method('addAttribute')->with('title', 'titleAttribute');
     $mockTagBuilder->expects($this->at(6))->method('addAttribute')->with('accesskey', 'accesskeyAttribute');
     $mockTagBuilder->expects($this->at(7))->method('addAttribute')->with('tabindex', 'tabindexAttribute');
     $this->viewHelper->_set('tag', $mockTagBuilder);
     $arguments = array('class' => 'classAttribute', 'dir' => 'dirAttribute', 'id' => 'idAttribute', 'lang' => 'langAttribute', 'style' => 'styleAttribute', 'title' => 'titleAttribute', 'accesskey' => 'accesskeyAttribute', 'tabindex' => 'tabindexAttribute');
     $this->viewHelper->_call('registerUniversalTagAttributes');
     $this->viewHelper->setArguments($arguments);
     $this->viewHelper->initializeArguments();
     $this->viewHelper->initialize();
 }
Exemplo n.º 5
0
 public function initialize()
 {
     parent::initialize();
     $this->definedCustomMetaDataConfigCollection = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance()->buildCustomMetaDataConfiguration();
 }
 /**
  * (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();
 }
 /**
  * Initializes the ViewHelper
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     // Default path to swf file
     $this->flashMediaElement = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extensionKey) . 'Resources/Public/JavaScript/MediaElement/flashmediaelement.swf';
 }
 public function initialize()
 {
     parent::initialize();
     $this->paramLabels = array('href', 'target', 'class', 'title');
 }
 /**
  * (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');
 }
Exemplo n.º 10
0
 public function initialize()
 {
     parent::initialize();
     $this->settings = $this->templateVariableContainer->get('settings');
 }
Exemplo n.º 11
0
 /**
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
 }
Exemplo n.º 12
0
 /**
  * Initialize ViewHelper
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     $this->registerUniversalTagAttributes();
     $this->captchaGeneratorPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('captcha') . 'captcha/captcha.php';
 }