/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder $uriBuilder TYPO3 URI builder * @param array $fixed Fixed parameters that should be added to each URL */ public function __construct(MW_View_Interface $view, \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder $uriBuilder, array $fixed) { parent::__construct($view); $this->_prefix = $uriBuilder->getArgumentPrefix(); $this->_uriBuilder = $uriBuilder; $this->_fixed = $fixed; }
/** * Initializes the content view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string $baseurl Base URL for the content */ public function __construct(MW_View_Interface $view, $baseurl = null) { parent::__construct($view); if ($baseurl === null) { $baseurl = $view->config('client/html/common/content/baseurl'); } $this->_baseurl = rtrim($baseurl, '/'); $this->_enc = $view->encoder(); }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string $name CSRF token name * @param string $value CSRF token value */ public function __construct($view, $name = '', $value = '') { parent::__construct($view); $this->_name = $name; $this->_value = $value; if ($value != '') { $this->_formfield = '<input class="csrf-token" type="hidden" name="' . $this->_name . '" value="' . $this->_value . '" />'; } }
/** * Initializes the view helper classes. * * @param MW_View_Interface $view View instance with registered view helpers */ public function __construct(MW_View_Interface $view) { parent::__construct($view); $this->_target = $view->config('client/html/catalog/list/url/target'); $this->_controller = $view->config('client/html/catalog/list/url/controller', 'catalog'); $this->_action = $view->config('client/html/catalog/list/url/action', 'list'); $this->_config = $view->config('client/html/catalog/list/url/config', array()); $this->_encoder = $view->encoder(); }
/** * Initializes the parameter view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param array $params Associative list of key/value pairs */ public function __construct($view, array $params) { parent::__construct($view); $this->_params = $params; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param \Symfony\Component\HttpFoundation\Request $request Symfony2 request object */ public function __construct($view, \Symfony\Component\HttpFoundation\Request $request) { parent::__construct($view); $this->_request = $request; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param Zend_Controller_Router_Interface $router Zend Router implementation * @param string $serverUrl Url of the server including scheme, host and port */ public function __construct($view, Zend_Controller_Router_Interface $router, $serverUrl) { parent::__construct($view); $this->_router = $router; $this->_serverUrl = $serverUrl; }
/** * Initializes the Mail view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param MW_Mail_Message_Interface $message E-mail message object */ public function __construct($view, MW_Mail_Message_Interface $message) { parent::__construct($view); $this->_message = $message; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param Tx_Extbase_MVC_Web_Routing_UriBuilder $uriBuilder TYPO3 URI builder */ public function __construct(MW_View_Interface $view, Tx_Extbase_MVC_Web_Routing_UriBuilder $uriBuilder) { parent::__construct($view); $this->_uriBuilder = $uriBuilder; }
/** * Initializes the Date view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string $format New date format * @see http://php.net/manual/en/datetime.createfromformat.php */ public function __construct($view, $format = '') { parent::__construct($view); $this->_format = $format; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param Zend\Mvc\Router\RouteInterface $router Zend Router implementation * @param string $serverUrl Url of the server including scheme, host and port */ public function __construct($view, \Zend\Mvc\Router\RouteInterface $router, $serverUrl) { parent::__construct($view); $this->_router = $router; $this->_serverUrl = $serverUrl; }
/** * Initializes the config view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param MW_Config_Interface $config Configuration object */ public function __construct($view, MW_Config_Interface $config) { parent::__construct($view); $this->_config = $config; }
/** * Initializes the translator view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param MW_Translation_Interface $translator Translation object */ public function __construct(MW_View_Interface $view, MW_Translation_Interface $translator) { parent::__construct($view); $this->_translator = $translator; }
/** * Initializes the request view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string $body Request body content * @param string $clientaddr Client IP address */ public function __construct($view, $body = '', $clientaddr = '') { parent::__construct($view); $this->_body = $body; $this->_clientaddr = $clientaddr; }
/** * Initializes the request view helper. * * @param \MW_View_Interface $view View instance with registered view helpers * @param \TYPO3\Flow\Http\Request $request Flow request object */ public function __construct(\MW_View_Interface $view, \TYPO3\Flow\Http\Request $request) { parent::__construct($view); $this->_request = $request; }
/** * Initializes the Number view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string $decimalSeparator Character for the decimal point * @param string $thousandsSeperator Character separating groups of thousands */ public function __construct($view, $decimalSeparator = '.', $thousandsSeperator = '') { parent::__construct($view); $this->_dsep = $decimalSeparator; $this->_tsep = $thousandsSeperator; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string[] $names Prefix names when generating form parameters (will be "name1[name2][name3]..." ) */ public function __construct($view, array $names = array()) { parent::__construct($view); $this->_names = $names; }
/** * Initializes the request view helper. * * @param \MW_View_Interface $view View instance with registered view helpers * @param \Illuminate\Http\Request $request Laravel request object */ public function __construct(\MW_View_Interface $view, \Illuminate\Http\Request $request) { parent::__construct($view); $this->_request = $request; }
/** * Initializes the URL view helper. * * @param \MW_View_Interface $view View instance with registered view helpers * @param \Illuminate\Contracts\Routing\UrlGenerator $builder Laravel URL builder object * @param array Associative list of fixed parameters that should be available for all routes */ public function __construct(\MW_View_Interface $view, \Illuminate\Contracts\Routing\UrlGenerator $builder, array $fixed) { parent::__construct($view); $this->_builder = $builder; $this->_fixed = $fixed; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param Symfony\Component\Routing\RouterInterface $router Symfony2 Router implementation * @param array $fixed Fixed parameters that should be added to each URL */ public function __construct($view, \Symfony\Component\Routing\RouterInterface $router, array $fixed) { parent::__construct($view); $this->_router = $router; $this->_fixed = $fixed; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param \TYPO3\Flow\Mvc\Routing\UriBuilder $builder Flow URI builder object */ public function __construct($view, \TYPO3\Flow\Mvc\Routing\UriBuilder $builder) { parent::__construct($view); $this->_builder = $builder; }
/** * Initializes the URL view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param string $baseUrl URL which acts as base for all constructed URLs */ public function __construct($view, $baseUrl) { parent::__construct($view); $this->_baseUrl = rtrim($baseUrl, '/'); }
/** * Initializes the parital view helper. * * @param MW_View_Interface $view View instance with registered view helpers * @param MW_Config_Interface $config Configuration object * @param array $paths Associative list of base path / relative paths combinations */ public function __construct(MW_View_Interface $view, MW_Config_Interface $config, array $paths) { parent::__construct($view); $this->_config = $config; $this->_paths = $paths; }