Umfragen
|
Public Member Functions | |
display ($sel=false, $columns="columns", $name="") | |
![]() | |
__construct () | |
set_default_values ($db) | |
sets default values and childs. Used when creating a new widget | |
get_config ($name) | |
set_config ($name, $val) | |
set_data ($name, $val) | |
sets a data variable. Data is meant for non persistend data storage such as count | |
get_data ($name) | |
gets a data variable or it's default value | |
set_value ($val) | |
display_option_edit ($polltype) | |
handle_option_edit () | |
display2 ($sel=false) | |
handle_inpt () | |
handles the answer to a question on form submit. Sets the values and generates error messages | |
display_edit () | |
prints a widget on screen with edit buttons for the edit page | |
![]() | |
serialize_config () | |
makes a string (php serializer) of the widget config and stores it in widget::config | |
unserialize_config () | |
takes widget::config in string form (php serializer) and makes an array | |
init_config () | |
initialise config. unserialize when necessary | |
check_vital_vars () | |
checks if widget::typ widget::name widget::index and widget::pollID are set | |
check_required () | |
checks if widget's name is in $_POST (question answered) if the widget is a required question | |
check_max () | |
checks if a maximum limit of different answers to a question has been exceeded | |
set_dispName ($dispName) | |
sets widget's display name by escaping html characters ant checking for a maximum length of 256 chars | |
set_name ($name) | |
sets widget's name. Max 25 chars. Sets the widget's ID if input is empty | |
display_edit_begin () | |
prints edit toolbar and widget container div for a widget. Used as link to widget's edit page | |
display_name_edit () | |
prints edit widget name | |
handle_name_edit () | |
handles widget name edit and sets widget::name | |
display_dispName_edit () | |
prints display name edit | |
handle_dispName_edit () | |
handles widget display name edit and sets widget:: dispName | |
display_required_edit () | |
prints widget is_required checkbox edit | |
handle_required_edit () | |
handles widget is_required checkbox edit and sets widget::is_required | |
display_chartType_edit_generic ($allowed, $allowed_names) | |
prints widget chart type select edit | |
handle_chartType_edit_generic ($allowed) | |
handles widget chart type select edit and sets config value | |
save_config ($db) | |
saves the widget config array to database | |
save_dispName ($db) | |
saves the widget's display name widget::dispName | |
save_required ($db) | |
saves the widget's is required widget::is_required | |
save_name ($db, $new_name) | |
sets the widget's name in the result table and the widget table | |
![]() | |
serialize_config () | |
unserialize_config () | |
check_vital_vars () | |
check_required () | |
check_max () | |
set_dispName ($dispName) | |
set_name ($name) | |
display_edit_begin () | |
display_name_edit () | |
handle_name_edit () | |
display_dispName_edit () | |
handle_dispName_edit () | |
display_required_edit () | |
handle_required_edit () | |
display_chartType_edit_generic ($allowed, $allowed_names) | |
handle_chartType_edit_generic ($allowed) | |
save_config ($db) | |
save_dispName ($db) | |
save_required ($db) | |
save_name ($db, $new_name) | |
![]() | |
display () | |
prints a widget on screen |
Additional Inherited Members | |
![]() | |
$typ = "radioButton" | |
$id | |
$direct_result = false | |
widget has a row in the result table |
Definition at line 260 of file radioButton.class.php.
display | ( | $sel = false , |
|
$columns = "columns" , |
|||
$name = "" |
|||
) |
Reimplemented from radioButton.
Definition at line 261 of file radioButton.class.php.