-
Notifications
You must be signed in to change notification settings - Fork 0
class Config_File
www/smartylib/Config_File.class.php
Smarty
_config_data() | _config_path() | booleanize() | fix_newlines() | overwrite() | read_hidden() |
No constants found
__construct() | _set_config_var() | _trigger_error_msg() | clear() | get() | get_file_names() | get_key() | get_section_names() | get_var_names() | load_file() | parse_contents() | set_file_contents() | set_path() |
public
$_config_data
public
$_config_path
Controls whether config values of on/true/yes and off/false/no get converted to boolean values automatically.
public
$booleanize
Controls whether or not to fix mac or dos formatted newlines.
If set to true, \r or \r\n will be changed to \n.
public
$fix_newlines
Controls whether variables with the same name overwrite each other.
public
$overwrite
Controls whether hidden config sections/vars are read from the file.
public
$read_hidden
Constructs a new config file class.
- Inherited from \Config_File
public
__construct(string $config_path = NULL) : mixed
- Inherited from \Config_File
public
_set_config_var(mixed $container, string $var_name, mixed $var_value, bool $booleanize) : mixed
- Inherited from \Config_File
public
_trigger_error_msg(string $error_msg, int $error_type = E_USER_WARNING) : mixed
Uses creates a PHP warning/error
Clear loaded config data for a certain file or all files.
- Inherited from \Config_File
public
clear(string $file_name = NULL) : mixed
Retrieves config info based on the file, section, and variable name.
- Inherited from \Config_File
public
get(string $file_name, string $section_name = NULL, string $var_name = NULL) : string|array
Get all loaded config file names.
- Inherited from \Config_File
public
get_file_names() : array
Retrieves config info based on the key.
- Inherited from \Config_File
public
get_key(mixed $config_key) : string|array
Uses retrieves information from config file and returns it
Get all section names from a loaded file.
- Inherited from \Config_File
public
get_section_names(string $file_name) : array
Get all global or section variable names.
- Inherited from \Config_File
public
get_var_names(string $file_name, mixed $section = NULL) : array
Load a configuration file manually.
- Inherited from \Config_File
public
load_file(string $file_name, bool $prepend_path = true) : mixed
parse the source of a configuration file manually.
- Inherited from \Config_File
public
parse_contents(string $contents) : mixed
Store the contents of a file manually.
- Inherited from \Config_File
public
set_file_contents(string $config_file, string $contents) : mixed
Set the path where configuration files can be found.
- Inherited from \Config_File
public
set_path(string $config_path) : mixed
\ » Classes » Config_File
Documentation generated on April 26th, 2020 at 15:54.
Powered by phpDocumentor with template GitHub-wiki.