Метод | Описание | |
---|---|---|
__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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |