CI_Config Class Reference

List of all members.

Public Member Functions

 CI_Config ()
 load ($file= '', $use_sections=FALSE, $fail_gracefully=FALSE)
 item ($item, $index= '')
 slash_item ($item)
 site_url ($uri= '')
 system_url ()
 set_item ($item, $value)

Public Attributes

 $config = array()
 $is_loaded = array()


Member Function Documentation

CI_Config::CI_Config (  ) 

Constructor

Sets the $config data from the primary config.php file as a class variable

public

Parameters:
string the config file name
boolean if configuration values should be loaded into their own section
boolean true if errors should just return false, false if an error message should be displayed
Returns:
boolean if the file was successfully loaded or not

CI_Config::item ( item,
index = '' 
)

Fetch a config file item

public

Parameters:
string the config item name
string the index name
bool 
Returns:
string

CI_Config::load ( file = '',
use_sections = FALSE,
fail_gracefully = FALSE 
)

Load Config File

public

Parameters:
string the config file name
Returns:
boolean if the file was loaded correctly

CI_Config::set_item ( item,
value 
)

Set a config file item

public

Parameters:
string the config item key
string the config item value
Returns:
void

CI_Config::site_url ( uri = ''  ) 

Site URL

public

Parameters:
string the URI string
Returns:
string

CI_Config::slash_item ( item  ) 

Fetch a config file item - adds slash after item

The second parameter allows a slash to be added to the end of the item, in the case of a path.

public

Parameters:
string the config item name
bool 
Returns:
string

CI_Config::system_url (  ) 

System URL

public

Returns:
string


Member Data Documentation

CI_Config::$config = array()

CI_Config::$is_loaded = array()


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

Generated on Sun Nov 16 16:09:07 2008 for CodeIgniter by  doxygen 1.5.7.1