FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
Config_Model Class Reference

Public Member Functions

 get_value_from_name ($name= '')
 Gets value from config.
 get_all_values ()
 Gets all values from config to assoc.
 check_exist_variable ($name= '')
 Checks if var exists in config.
 update_variable ($name, $value)
 Updates value in config.
 insert_variable ($name, $value)
 Insert value in config.

Member Function Documentation

Config_Model::check_exist_variable (   $name = '')

Checks if var exists in config.

Parameters
string$nameKey value
Returns
boolean
Config_Model::get_all_values ( )

Gets all values from config to assoc.

array where key is name and value is value.

Do not fetch values which containst word 'pass', because of security of services provided by freenetis.

Returns
array
Config_Model::get_value_from_name (   $name = '')

Gets value from config.

Parameters
string$nameKey value
Returns
string
Config_Model::insert_variable (   $name,
  $value 
)

Insert value in config.

Parameters
string$nameKey value
string$valueValue
Returns
boolean
Config_Model::update_variable (   $name,
  $value 
)

Updates value in config.

Parameters
string$nameKey value
string$valueValue
Returns
boolean

The documentation for this class was generated from the following file: