class AdminResources

This class contains all Thelia admin resources

Constants

SUPERADMINISTRATOR

ADDRESS

ADMINISTRATOR

ADVANCED_CONFIGURATION

AREA

ATTRIBUTE

BRAND

CATEGORY

CONFIG

CONTENT

COUNTRY

STATE

COUPON

CURRENCY

CUSTOMER

FEATURE

FOLDER

HOME

LANGUAGE

MAILING_SYSTEM

MESSAGE

MODULE

HOOK

MODULE_HOOK

ORDER

ORDER_STATUS

PRODUCT

PROFILE

SHIPPING_ZONE

TAX

TEMPLATE

SYSTEM_LOG

ADMIN_LOG

STORE

TRANSLATIONS

UPDATE

EXPORT

IMPORT

TOOLS

SALES

API

TITLE

Methods

static  string
retrieve($name)

No description

__construct( array $resources)

Create a new AdminRessources instance.

string
getResource( string $name, string $module = 'thelia')

No description

addModuleResources($data, $module = 'thelia')

No description

addResource( string $name, string $value, string $module = 'thelia')

No description

Details

at line 37
static string retrieve($name)

Parameters

$name

Return Value

string the constant value

at line 155
__construct( array $resources)

Create a new AdminRessources instance.

Parameters

array $resources with format module => [ KEY => value ].

at line 165
string getResource( string $name, string $module = 'thelia')

Parameters

string $name
string $module

Return Value

string

at line 191
addModuleResources($data, $module = 'thelia')

Parameters

$data with format [ "ADDRESS" => "admin.address", ... ]
$module string ModuleCode

Exceptions

Exception

at line 205
addResource( string $name, string $value, string $module = 'thelia')

Parameters

string $name
string $value
string $module