ConfigHtml Class Reference

Inheritance diagram for ConfigHtml:
Config

Public Member Functions

 ConfigHtml ($config_code, $back_url)
 display_form ($property_list=null, $section_selected=null, $url_params=null)
 display_form_elt ($name, $value)
 get_def_section_list ()
 display_section_menu ($section_selected, $url_params=null)

Data Fields

 $back_url = null

Detailed Description

To use this class.

Example : $fooConfig = new Config('CLFOO');

$fooConfig->load(); Load property with actual values in configs files. $fooConfig->save(); write a new config file if (following def file), a property would be in the config file, and this property is in memory, the value would be write in the new config file)

Definition at line 38 of file configHtml.class.php.


Member Function Documentation

ConfigHtml ( config_code,
back_url 
)

Definition at line 42 of file configHtml.class.php.

display_form ( property_list = null,
section_selected = null,
url_params = null 
)

Function to create the different elements of the configuration form to display

Parameters:
array $property_list
string $section_selected
string $url_params appeded to POST query
Returns:
the HTML code to display web form to edit config file

Definition at line 57 of file configHtml.class.php.

display_form_elt ( name,
value 
)

Display the form elt of a property

Definition at line 153 of file configHtml.class.php.

display_section_menu ( section_selected,
url_params = null 
)

Display section menu

Definition at line 463 of file configHtml.class.php.

get_def_section_list (  ) 

Return list of displayed section

Definition at line 437 of file configHtml.class.php.


Field Documentation

$back_url = null

Definition at line 40 of file configHtml.class.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 8 12:28:38 2010 for Claroline API by  doxygen 1.6.3