PHP Класс Aimeos\ShopBundle\Service\View

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\DependencyInjection\Container $container ) Initializes the context manager object
create ( Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, string | null $locale = null ) : Aimeos\MW\View\Iface Creates the view object for the HTML client.

Защищенные методы

Метод Описание
addAccess ( Aimeos\MW\View\Iface $view, Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MW\View\Iface Adds the "access" helper to the view object
addConfig ( Aimeos\MW\View\Iface $view, Aimeos\MW\Config\Iface $config ) : Aimeos\MW\View\Iface Adds the "config" helper to the view object
addCsrf ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface Adds the "access" helper to the view object
addNumber ( Aimeos\MW\View\Iface $view, Aimeos\MW\Config\Iface $config ) : Aimeos\MW\View\Iface Adds the "number" helper to the view object
addParam ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface Adds the "param" helper to the view object
addRequest ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface Adds the "request" helper to the view object
addResponse ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface Adds the "response" helper to the view object
addTranslate ( Aimeos\MW\View\Iface $view, string | null $locale ) : Aimeos\MW\View\Iface Adds the "translate" helper to the view object
addUrl ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface Adds the "url" helper to the view object

Описание методов

__construct() публичный метод

Initializes the context manager object
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\DependencyInjection\Container $container )
$requestStack Symfony\Component\HttpFoundation\RequestStack Current request stack
$container Symfony\Component\DependencyInjection\Container Container object to access parameters

addAccess() защищенный метод

Adds the "access" helper to the view object
protected addAccess ( Aimeos\MW\View\Iface $view, Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
$context Aimeos\MShop\Context\Item\Iface Context object
Результат Aimeos\MW\View\Iface Modified view object

addConfig() защищенный метод

Adds the "config" helper to the view object
protected addConfig ( Aimeos\MW\View\Iface $view, Aimeos\MW\Config\Iface $config ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
$config Aimeos\MW\Config\Iface Configuration object
Результат Aimeos\MW\View\Iface Modified view object

addCsrf() защищенный метод

Adds the "access" helper to the view object
protected addCsrf ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
Результат Aimeos\MW\View\Iface Modified view object

addNumber() защищенный метод

Adds the "number" helper to the view object
protected addNumber ( Aimeos\MW\View\Iface $view, Aimeos\MW\Config\Iface $config ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
$config Aimeos\MW\Config\Iface Configuration object
Результат Aimeos\MW\View\Iface Modified view object

addParam() защищенный метод

Adds the "param" helper to the view object
protected addParam ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
Результат Aimeos\MW\View\Iface Modified view object

addRequest() защищенный метод

Adds the "request" helper to the view object
protected addRequest ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
Результат Aimeos\MW\View\Iface Modified view object

addResponse() защищенный метод

Adds the "response" helper to the view object
protected addResponse ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
Результат Aimeos\MW\View\Iface Modified view object

addTranslate() защищенный метод

Adds the "translate" helper to the view object
protected addTranslate ( Aimeos\MW\View\Iface $view, string | null $locale ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
$locale string | null ISO language code, e.g. "de" or "de_CH"
Результат Aimeos\MW\View\Iface Modified view object

addUrl() защищенный метод

Adds the "url" helper to the view object
protected addUrl ( Aimeos\MW\View\Iface $view ) : Aimeos\MW\View\Iface
$view Aimeos\MW\View\Iface View object
Результат Aimeos\MW\View\Iface Modified view object

create() публичный метод

Creates the view object for the HTML client.
public create ( Aimeos\MShop\Context\Item\Iface $context, array $templatePaths, string | null $locale = null ) : Aimeos\MW\View\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
$templatePaths array List of base path names with relative template paths as key/value pairs
$locale string | null Code of the current language or null for no translation
Результат Aimeos\MW\View\Iface View object