PHP Class Gc\Core\Translator

Inheritance: extends Gc\Db\AbstractTable
Show file Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

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

Method Details

generateCache() public method

Generate php array file as cache
public generateCache ( ) : void
return void

getValue() public method

Get config value
public getValue ( string $source, string $locale = null ) : string
$source string Source
$locale string Optional locale
return string value

getValues() public method

Return all values from core_config_data
public getValues ( string $locale = null, integer $limit = null ) : array
$locale string Locale
$limit integer Limit
return array

setValue() public method

Set config value
public setValue ( string $source, array $destinations ) : boolean
$source string Source
$destinations array Destinations
return boolean

Property Details

$name protected property

Table name
protected string $name
return string