Свойство | Type | Description | |
---|---|---|---|
$_config_paths | array | List of paths to search when trying to load a config file. | |
$config | array | List of all loaded config values | |
$is_loaded | array | List of all loaded config files |
Méthode | Description | |
---|---|---|
__construct ( ) : void | Class constructor | |
base_url ( string | string[] $uri = '', string $protocol = NULL ) : string | Base URL | |
item ( string $item, string $index = '' ) : string | null | Fetch a config file item | |
load ( string $file = '', boolean $use_sections = FALSE, boolean $fail_gracefully = FALSE ) : boolean | Load Config File | |
set_item ( string $item, string $value ) : void | Set a config file item | |
site_url ( string | string[] $uri = '', string $protocol = NULL ) : string | Site URL | |
slash_item ( string $item ) : string | null | Fetch a config file item with slash appended (if not empty) | |
system_url ( ) : string | System URL |
Méthode | Description | |
---|---|---|
_uri_string ( string | string[] $uri ) : string | Build URI string |
public __construct ( ) : void | ||
Résultat | void |
protected _uri_string ( string | string[] $uri ) : string | ||
$uri | string | string[] | URI string or an array of segments |
Résultat | string |
public load ( string $file = '', boolean $use_sections = FALSE, boolean $fail_gracefully = FALSE ) : boolean | ||
$file | string | Configuration file name |
$use_sections | boolean | Whether configuration values should be loaded into their own section |
$fail_gracefully | boolean | Whether to just return FALSE or display an error message |
Résultat | boolean | TRUE if the file was loaded correctly or FALSE on failure |
public array $_config_paths | ||
Résultat | array |
public array $is_loaded | ||
Résultat | array |