/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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 . '" />'; } }
/** * 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(); }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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, '/'); }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }