PHP Class Gc\Core\Config

Inheritance: extends Gc\Db\AbstractTable
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name string Table name

Méthodes publiques

Méthode Description
getValue ( string $data, string $field = 'identifier' ) : string Get config value
getValues ( ) : array Return all values from core_config_data
setValue ( string $identifier, string $value ) : boolean Set config value

Method Details

getValue() public méthode

Get config value
public getValue ( string $data, string $field = 'identifier' ) : string
$data string Data
$field string Optional database field, by default 'identifier'
Résultat string value

getValues() public méthode

Return all values from core_config_data
public getValues ( ) : array
Résultat array

setValue() public méthode

Set config value
public setValue ( string $identifier, string $value ) : boolean
$identifier string Identifier
$value string Value
Résultat boolean

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string