PHP Класс Gc\Core\Translator

Наследование: extends Gc\Db\AbstractTable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$name string Table name

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

Метод Описание
generateCache ( ) : void Generate php array file as cache
getValue ( string $source, string $locale = null ) : string Get config value
getValues ( string $locale = null, integer $limit = null ) : array Return all values from core_config_data
setValue ( string $source, array $destinations ) : boolean Set config value

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

generateCache() публичный Метод

Generate php array file as cache
public generateCache ( ) : void
Результат void

getValue() публичный Метод

Get config value
public getValue ( string $source, string $locale = null ) : string
$source string Source
$locale string Optional locale
Результат string value

getValues() публичный Метод

Return all values from core_config_data
public getValues ( string $locale = null, integer $limit = null ) : array
$locale string Locale
$limit integer Limit
Результат array

setValue() публичный Метод

Set config value
public setValue ( string $source, array $destinations ) : boolean
$source string Source
$destinations array Destinations
Результат boolean

Описание свойств

$name защищенное свойство

Table name
protected string $name
Результат string