Method | Description | |
---|---|---|
__callStatic ( type $name, type $args ) : |
Statically load any INI file. IE \Core\INI::Settings()->toArray() | |
__construct ( string $namespace ) | Constructor | |
arrayToINI ( array $iniArray, integer $indent ) : String. | To convert an array into a properly formatted INI file | |
get ( type $dotNotation = "", type $emptyValue = null ) : Mix | Access value of an array with dot notation | |
getNamespace ( ) : Array | Return the namespace data | |
loadFile ( type $file, type $keyname = "" ) | To load an .ini file | |
namespaceExists ( ) : boolean | Check if a namespace exists | |
save ( type $fileName = "" ) | Save the ini file. | |
set ( array $data, type $keyName = "" ) | Set data in the loaded | |
toArray ( ) : Array | Return the INI array |
public static __callStatic ( type $name, type $args ) : |
||
$name | type | |
$args | type | |
return |
public __construct ( string $namespace ) | ||
$namespace | string | - A unique name that will hold data for each set of config |
public static arrayToINI ( array $iniArray, integer $indent ) : String. | ||
$iniArray | array | |
$indent | integer | |
return | String. |
public get ( type $dotNotation = "", type $emptyValue = null ) : Mix | ||
$dotNotation | type | - the key. ie: Key.Field1 |
$emptyValue | type | - Use this value if empty |
return | Mix | ie self::get("QA.UpVoteQuestion"); Will return the value of [QA][UpVoteQuestion] |
public loadFile ( type $file, type $keyname = "" ) | ||
$file | type | |
$keyname | type |
public namespaceExists ( ) : boolean | ||
return | boolean |
public save ( type $fileName = "" ) | ||
$fileName | type | - The filename without the extension |