PHP Класс Aimeos\ShopBundle\Controller\ExtadmController

Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Показать файл Открыть проект

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

Метод Описание
doAction ( Request $request ) : Response Single entry point for all JSON admin requests.
fileAction ( ) : Response Returns the JS file content
indexAction ( Request $request ) : Response Returns the initial HTML view for the admin interface.

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

Метод Описание
getJsonClientConfig ( Aimeos\MShop\Context\Item\Iface $context ) : string Returns the JSON encoded configuration for the ExtJS client.
getJsonClientI18n ( array $i18nPaths, string $lang ) : string Returns the JSON encoded translations for the ExtJS client.
getJsonLanguages ( ) : array Creates a list of all available translations.
getJsonSiteItem ( Aimeos\MShop\Context\Item\Iface $context, string $site ) : string Returns the JSON encoded site item.

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

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

Single entry point for all JSON admin requests.
public doAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
Результат Symfony\Component\HttpFoundation\Response JSON RPC message response

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

Returns the JS file content
public fileAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response Response object

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

Returns the JSON encoded configuration for the ExtJS client.
protected getJsonClientConfig ( Aimeos\MShop\Context\Item\Iface $context ) : string
$context Aimeos\MShop\Context\Item\Iface Context item object
Результат string JSON encoded configuration object

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

Returns the JSON encoded translations for the ExtJS client.
protected getJsonClientI18n ( array $i18nPaths, string $lang ) : string
$i18nPaths array List of file system paths which contain the translation files
$lang string ISO language code like "en" or "en_GB"
Результат string JSON encoded translation object

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

Creates a list of all available translations.
protected getJsonLanguages ( ) : array
Результат array List of language IDs with labels

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

Returns the JSON encoded site item.
protected getJsonSiteItem ( Aimeos\MShop\Context\Item\Iface $context, string $site ) : string
$context Aimeos\MShop\Context\Item\Iface Context item object
$site string Unique site code
Результат string JSON encoded site item object

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

Returns the initial HTML view for the admin interface.
public indexAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
Результат Symfony\Component\HttpFoundation\Response Generated output for the admin interface