コード例 #1
0
ファイル: Typo3.php プロジェクト: nos3/ai-typo3
 /**
  * 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;
 }
コード例 #2
0
ファイル: Default.php プロジェクト: Bananamoon/aimeos-core
 /**
  * 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();
 }
コード例 #3
0
ファイル: Default.php プロジェクト: Bananamoon/aimeos-core
 /**
  * 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 . '" />';
     }
 }
コード例 #4
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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();
 }
コード例 #5
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #6
0
ファイル: Symfony2.php プロジェクト: nos3/ai-symfony2
 /**
  * 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;
 }
コード例 #7
0
ファイル: Zend.php プロジェクト: nos3/ai-zend
 /**
  * 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;
 }
コード例 #8
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #9
0
ファイル: Typo3.php プロジェクト: arcavias/ext-typo3
 /**
  * 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;
 }
コード例 #10
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #11
0
ファイル: Zend2.php プロジェクト: nos3/ai-zend2
 /**
  * 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;
 }
コード例 #12
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #13
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #14
0
ファイル: Default.php プロジェクト: Bananamoon/aimeos-core
 /**
  * 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;
 }
コード例 #15
0
ファイル: Flow.php プロジェクト: nos3/ai-flow
 /**
  * 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;
 }
コード例 #16
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #17
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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;
 }
コード例 #18
0
ファイル: Laravel5.php プロジェクト: nos3/ai-laravel
 /**
  * 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;
 }
コード例 #19
0
ファイル: Laravel5.php プロジェクト: nos3/ai-laravel
 /**
  * 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;
 }
コード例 #20
0
ファイル: Symfony2.php プロジェクト: nos3/ai-symfony2
 /**
  * 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;
 }
コード例 #21
0
ファイル: Flow.php プロジェクト: nos3/ai-flow
 /**
  * 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;
 }
コード例 #22
0
ファイル: Default.php プロジェクト: arcavias/arcavias-core
 /**
  * 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, '/');
 }
コード例 #23
0
ファイル: Default.php プロジェクト: Bananamoon/aimeos-core
 /**
  * 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;
 }