PHP Class Aimeos\ShopBundle\Service\View

Show file Open project: aimeos/aimeos-symfony2

Public Methods

Method Description
__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.

Protected Methods

Method Description
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

Method Details

__construct() public method

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() protected method

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
return Aimeos\MW\View\Iface Modified view object

addConfig() protected method

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
return Aimeos\MW\View\Iface Modified view object

addCsrf() protected method

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
return Aimeos\MW\View\Iface Modified view object

addNumber() protected method

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
return Aimeos\MW\View\Iface Modified view object

addParam() protected method

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
return Aimeos\MW\View\Iface Modified view object

addRequest() protected method

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
return Aimeos\MW\View\Iface Modified view object

addResponse() protected method

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
return Aimeos\MW\View\Iface Modified view object

addTranslate() protected method

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"
return Aimeos\MW\View\Iface Modified view object

addUrl() protected method

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
return Aimeos\MW\View\Iface Modified view object

create() public method

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
return Aimeos\MW\View\Iface View object