/**
  * Initialize this view helper.
  * This method is called before the render() method.
  *
  * @return void
  * @author Romain Ruetschi <*****@*****.**>
  */
 public function initialize()
 {
     // First call the parent class's "initialize" method.
     parent::initialize();
     $defaultSettings = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_' . $this->extensionName . '.'];
     // Override them with some predefined ones.
     $this->settings = t3lib_div::array_merge_recursive_overrule($defaultSettings, array('serviceList' => 'delicious, digg, facebook, twitter', 'useDefaultTemplate' => TRUE, 'useStats' => TRUE, 'useTinyURL' => FALSE, 'useTSTitle' => TRUE, 'pageTitle.' => array('field' => 'title')));
     // Get a new content object.
     $this->cObj = t3lib_div::makeInstance('tslib_cObj');
     $this->cObj->start(array(), '');
 }
 /**
  * Constructor.
  *
  * @param Tx_Fluid_Core_ViewHelper_AbstractViewHelper $viewHelper The view helper
  * @param array $arguments Arguments of view helper - each value is a RootNode.
  * @author Sebastian Kurfürst <*****@*****.**>
  * @author Karsten Dambekalns <*****@*****.**>
  */
 public function __construct(Tx_Fluid_Core_ViewHelper_AbstractViewHelper $viewHelper, array $arguments)
 {
     $this->uninitializedViewHelper = $viewHelper;
     $this->viewHelpersByContext = t3lib_div::makeInstance('Tx_Extbase_Persistence_ObjectStorage');
     $this->arguments = $arguments;
     if (FALSE) {
         $this->viewHelperClassName = $this->uninitializedViewHelper->FLOW3_AOP_Proxy_getProxyTargetClassName();
     } else {
         $this->viewHelperClassName = get_class($this->uninitializedViewHelper);
     }
 }
 /**
  * Sets the tag name to $this->tagName.
  * Additionally, sets all tag attributes which were registered in
  * $this->tagAttributes and additionalArguments.
  *
  * Will be invoked just before the render method.
  *
  * @return void
  * @author Bastian Waidelich <*****@*****.**>
  * @api
  */
 public function initialize()
 {
     parent::initialize();
     $this->tag->reset();
     $this->tag->setTagName($this->tagName);
     if (is_array($this->arguments['additionalAttributes'])) {
         $this->tag->addAttributes($this->arguments['additionalAttributes']);
     }
     foreach ($this->tagAttributes as $attributeName) {
         if ($this->arguments->hasArgument($attributeName) && $this->arguments[$attributeName] !== '') {
             $this->tag->addAttribute($attributeName, $this->arguments[$attributeName]);
         }
     }
 }
 /**
  * @param Tx_Fluid_Core_ViewHelper_AbstractViewHelper $viewHelper
  * @return void
  * @author Sebastian Kurfürst <*****@*****.**>
  */
 protected function injectDependenciesIntoViewHelper(Tx_Fluid_Core_ViewHelper_AbstractViewHelper $viewHelper)
 {
     $viewHelper->setViewHelperVariableContainer($this->viewHelperVariableContainer);
     $viewHelper->setTemplateVariableContainer($this->templateVariableContainer);
     $viewHelper->setControllerContext($this->controllerContext);
     $viewHelper->setArguments($this->arguments);
     if ($viewHelper instanceof Tx_Fluid_Core_ViewHelper_TagBasedViewHelper) {
         $viewHelper->injectTagBuilder($this->tagBuilder);
     }
 }
 /**
  * Initialize this view helper.
  * This method is called before the render() method.
  *
  * @return void
  * @author Romain Ruetschi <*****@*****.**>
  */
 public function initialize()
 {
     // First call the parent class's "initialize" method.
     parent::initialize();
     $defaultSettings = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_pagebrowse_pi1.'];
     //  Build the extra query string.
     $extraQueryString = http_build_query(array('controller' => $this->controllerContext->getRequest()->getControllerName(), 'action' => $this->controllerContext->getRequest()->getControllerActionName()), $this->getPrefixIdentifier(), '&');
     // Override them with some predefined ones.
     $this->settings = t3lib_div::array_merge_recursive_overrule($defaultSettings, array('pageParameterName' => $this->getPageParameterName(), 'extraQueryString' => $extraQueryString));
     // Get a new content object.
     $this->cObj = t3lib_div::makeInstance('tslib_cObj');
     $this->cObj->start(array(), '');
 }
 /**
  * Initialize arguments
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
 }
Exemple #7
0
 /**
  * Initialize this view helper.
  * This method is called before the render() method.
  *
  * @return void
  * @author Romain Ruetschi <*****@*****.**>
  */
 public function initialize()
 {
     parent::initialize();
 }