PHP Class Aimeos\Shop\Base\View

Afficher le fichier Open project: aimeos/aimeos-laravel Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( I18n $i18n, Support $support ) Initializes the 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.

Méthodes protégées

Méthode 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 méthode

Initializes the object
public __construct ( I18n $i18n, Support $support )
$i18n I18n I18n object
$support Support Support object

addAccess() protected méthode

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

addConfig() protected méthode

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

addCsrf() protected méthode

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

addNumber() protected méthode

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

addParam() protected méthode

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

addRequest() protected méthode

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

addResponse() protected méthode

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

addTranslate() protected méthode

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

addUrl() protected méthode

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

create() public méthode

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
Résultat Aimeos\MW\View\Iface View object