コード例 #1
0
ファイル: Standard.php プロジェクト: aimeos/aimeos-core
 /**
  * Initializes the Number view helper.
  *
  * @param \Aimeos\MW\View\Iface $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 = '', $decimals = 2)
 {
     parent::__construct($view);
     $this->dsep = $decimalSeparator;
     $this->tsep = $thousandsSeperator;
     $this->decimals = $decimals;
 }
コード例 #2
0
ファイル: T3Cli.php プロジェクト: aimeos/ai-typo3
 /**
  * Initializes the URL view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param string $baseurl Base URL, e.g. http://localhost/index.php
  * @param string $prefix Argument prefix, e.g. "ai" for "ai[key]=value"
  * @param array $fixed Fixed parameters that should be added to each URL
  */
 public function __construct(\Aimeos\MW\View\Iface $view, $baseurl, $prefix, array $fixed)
 {
     \Aimeos\MW\View\Helper\Base::__construct($view);
     $this->baseurl = $baseurl;
     $this->prefix = $prefix;
     $this->fixed = $fixed;
 }
コード例 #3
0
ファイル: Standard.php プロジェクト: skyheights/aimeos-core
 /**
  * Initializes the request view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param \Psr\Http\Message\ServerRequestInterface $request Request object
  * @param string $clientaddr Client IP address
  * @param string $target Page ID or route name
  */
 public function __construct(\Aimeos\MW\View\Iface $view, \Psr\Http\Message\ServerRequestInterface $request, $clientaddr = '', $target = null)
 {
     parent::__construct($view);
     $this->request = $request;
     $this->clientaddr = $clientaddr;
     $this->target = $target;
 }
コード例 #4
0
ファイル: Standard.php プロジェクト: mvnp/aimeos-core
 /**
  * Initializes the request view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param string $body Request body content
  * @param string $clientaddr Client IP address
  * @param string $target Page ID or route name
  * @param \Traversable|array $files Uploaded files
  */
 public function __construct($view, $body = '', $clientaddr = '', $target = null, $files = array())
 {
     parent::__construct($view);
     $this->body = $body;
     $this->clientaddr = $clientaddr;
     $this->target = $target;
     $this->files = $files;
 }
コード例 #5
0
ファイル: Standard.php プロジェクト: mvnp/aimeos-core
 /**
  * Initializes the URL view helper.
  *
  * @param \Aimeos\MW\View\Iface $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 . '" />';
     }
 }
コード例 #6
0
ファイル: Standard.php プロジェクト: mvnp/aimeos-core
 /**
  * Initializes the content view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param string $baseurl Base URL for the content
  */
 public function __construct(\Aimeos\MW\View\Iface $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();
 }
コード例 #7
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the Mail view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param \Aimeos\MW\Mail\Message\Iface $message E-mail message object
  */
 public function __construct($view, \Aimeos\MW\Mail\Message\Iface $message)
 {
     parent::__construct($view);
     $this->message = $message;
 }
コード例 #8
0
ファイル: Standard.php プロジェクト: aimeos/aimeos-core
 /**
  * Initializes the request view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param \Psr\Http\Message\ResponseInterface $response Response object
  */
 public function __construct(\Aimeos\MW\View\Iface $view, \Psr\Http\Message\ResponseInterface $response)
 {
     parent::__construct($view);
     $this->response = $response;
 }
コード例 #9
0
ファイル: Zend2.php プロジェクト: aimeos/ai-zend2
 /**
  * Initializes the URL view helper.
  *
  * @param \Aimeos\MW\View\Iface $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;
 }
コード例 #10
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the parital view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param \Aimeos\MW\Config\Iface $config Configuration object
  * @param array $paths Associative list of base path / relative paths combinations
  */
 public function __construct(\Aimeos\MW\View\Iface $view, \Aimeos\MW\Config\Iface $config, array $paths)
 {
     parent::__construct($view);
     $this->config = $config;
     $this->paths = $paths;
 }
コード例 #11
0
ファイル: Zend.php プロジェクト: aimeos/ai-zend
 /**
  * Initializes the URL view helper.
  *
  * @param \Aimeos\MW\View\Iface $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;
 }
コード例 #12
0
ファイル: Standard.php プロジェクト: aimeos/aimeos-core
 /**
  * Initializes the view helper
  *
  * @param \Aimeos\MW\View\Iface $view View object
  * @param \Closure|array $groups Group codes assigned to the current user or closure function that returns the list
  */
 public function __construct(\Aimeos\MW\View\Iface $view, $groups)
 {
     parent::__construct($view);
     $this->groups = $groups;
 }
コード例 #13
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the URL view helper.
  *
  * @param \Aimeos\MW\View\Iface $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;
 }
コード例 #14
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the request view helper.
  *
  * @param \Aimeos\MW\View\Iface $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
ファイル: Standard.php プロジェクト: mvnp/aimeos-core
 /**
  * Initializes the URL view helper.
  *
  * @param \Aimeos\MW\View\Iface $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, '/');
 }
コード例 #16
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the parameter view helper.
  *
  * @param \Aimeos\MW\View\Iface $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;
 }
コード例 #17
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the Date view helper.
  *
  * @param \Aimeos\MW\View\Iface $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;
 }
コード例 #18
0
ファイル: Standard.php プロジェクト: mvnp/aimeos-core
 /**
  * Initializes the config view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param \Aimeos\MW\Config\Iface $config Configuration object
  */
 public function __construct($view, \Aimeos\MW\Config\Iface $config)
 {
     parent::__construct($view);
     $this->config = $config;
 }
コード例 #19
0
ファイル: Standard.php プロジェクト: boettner-it/aimeos-core
 /**
  * Initializes the translator view helper.
  *
  * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers
  * @param \Aimeos\MW\Translation\Iface $translator Translation object
  */
 public function __construct(\Aimeos\MW\View\Iface $view, \Aimeos\MW\Translation\Iface $translator)
 {
     parent::__construct($view);
     $this->translator = $translator;
 }