PHP Class Redaxscript\Config

Since: 2.4.0
Author: Henry Ruhs
Inheritance: extends Singleton
Exibir arquivo Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_configArray array array of the config
$_configFile string path to config file

Public Methods

Method Description
clear ( ) clear the config
get ( string $key = null ) : mixed get item from config
init ( string $configFile = null ) init the class
parse ( string $dbUrl = null ) parse from database url
set ( string $key = null, string $value = null ) set item to config
write ( ) : boolean write config to file

Method Details

clear() public method

clear the config
Since: 3.0.0
public clear ( )

get() public method

get item from config
Since: 2.2.0
public get ( string $key = null ) : mixed
$key string key of the item
return mixed

init() public method

init the class
Since: 2.4.0
public init ( string $configFile = null )
$configFile string file with config

parse() public method

parse from database url
Since: 3.0.0
public parse ( string $dbUrl = null )
$dbUrl string database url to be parsed

set() public method

set item to config
Since: 2.2.0
public set ( string $key = null, string $value = null )
$key string key of the item
$value string value of the item

write() public method

write config to file
Since: 2.4.0
public write ( ) : boolean
return boolean

Property Details

$_configArray protected_oe static_oe property

array of the config
protected static array $_configArray
return array

$_configFile protected_oe static_oe property

path to config file
protected static string $_configFile
return string