PHP Class Gc\Core\Config

Inheritance: extends Gc\Db\AbstractTable
Datei anzeigen Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

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

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

getValues() public method

Return all values from core_config_data
public getValues ( ) : array
return array

setValue() public method

Set config value
public setValue ( string $identifier, string $value ) : boolean
$identifier string Identifier
$value string Value
return boolean

Property Details

$name protected_oe property

Table name
protected string $name
return string