Umfragen
|
Public Member Functions | |
__construct () | |
set_default_values ($db) | |
sets default values and childs. Used when creating a new widget | |
get_config ($name) | |
gets an config variable or it's default value | |
set_config ($name, $val) | |
sets a config variable | |
check_required () | |
display_display_as_drop_down_edit () | |
handle_display_as_drop_down_edit () | |
display_edit () | |
prints a widget on screen with edit buttons for the edit page | |
display () | |
prints a widget on screen | |
handle_inpt () | |
handles the answer to a question on form submit. Sets the values and generates error messages | |
count ($db) | |
counts results | |
chart_make () | |
makes the chartobject and loads count. Must be executed before any chart action | |
chart_format_data_doughnutChart () | |
formats the count data to be displayed with a doughnutChart | |
chart_format_data_radarChart () | |
formats the count data to be displayed with a radarChart | |
chart_format_data () | |
formats data for charting | |
chart_display_legend () | |
displays the legend for the chart | |
chart_display_chart () | |
display only the chart | |
chart_display () | |
display legend and the chart | |
![]() | |
display_chartType_edit () | |
handle_chartType_edit () | |
display_columns_edit () | |
handle_columns_edit () | |
display_show_charts_edit () | |
handle_show_charts_edit () | |
rotate_option_list () | |
uses the "br" tags in the options to make a column based table | |
![]() | |
get_option_by_id ($ID) | |
gets an option from the container::option_list by ID | |
get_widget_by_id ($ID) | |
gets a widget from the container::widget_list by ID | |
get_all_childs () | |
gets a list of all child widgets and options | |
set_options ($options) | |
sets a list of options | |
set_widgets ($widgets) | |
sets a list of child widgets | |
insert_option ($index=-1, &$opt) | |
inserts an option into container::option_list | |
insert_widget ($index=-1, &$opt) | |
inserts a widget into container::widget_list | |
delete_option ($db, $id) | |
deletes an option | |
delete_widget ($db, $id) | |
deletes a widget | |
move_option ($db, $index1, $index2) | |
moves an option from one index to another | |
move_widget ($db, $index1, $index2) | |
moves a widget from one index to another | |
display_option_list_edit ($polltype) | |
prints the edit form for the option list. | |
handle_option_list_edit () | |
handles the edit form for the option list. | |
save_option_list ($db) | |
saves the option list to database using db::mass_update_widget() | |
save_widget_list ($db) | |
saves the widget list to database using db::mass_update_widget() | |
![]() | |
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 | |
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 | |
check_vital_vars () | |
checks if widget::typ widget::name widget::index and widget::pollID are set | |
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_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) |
Data Fields | |
$typ = "radioButtonList" | |
$direct_result = true | |
$child_widgets_whitelist = array() | |
defines a whitelist of widgettypes "*" means all widgets | |
$child_options_whitelist = array("radioButton") | |
defines a whitelist of widgettypes "*" means all widgets | |
$option_list = array() |
Private Member Functions | |
chart_format_data_barChart () | |
formats the count data to be displayed with a barChart | |
chart_format_data_pieChart () | |
formats the count data to be displayed with a pieChart | |
chart_display_legend_barChart () | |
displays the legend for barChart | |
chart_display_legend_radarChart () | |
displays the legend for radarChart | |
chart_display_legend_pieChart () | |
displays the legend for pieChart | |
chart_display_legend_doughnutChart () | |
displays the legend for doughnutChart |
Private Attributes | |
$chart = null |
Definition at line 6 of file radioButtonList.class.php.
__construct | ( | ) |
Reimplemented from container.
Definition at line 16 of file radioButtonList.class.php.
chart_display | ( | ) |
display legend and the chart
Implements chartable_widget.
Definition at line 463 of file radioButtonList.class.php.
chart_display_chart | ( | ) |
display only the chart
Implements chartable_widget.
Definition at line 454 of file radioButtonList.class.php.
chart_display_legend | ( | ) |
displays the legend for the chart
Implements chartable_widget.
Definition at line 435 of file radioButtonList.class.php.
|
private |
displays the legend for barChart
Definition at line 384 of file radioButtonList.class.php.
|
private |
displays the legend for doughnutChart
Definition at line 430 of file radioButtonList.class.php.
|
private |
displays the legend for pieChart
Definition at line 409 of file radioButtonList.class.php.
|
private |
displays the legend for radarChart
Definition at line 402 of file radioButtonList.class.php.
chart_format_data | ( | ) |
formats data for charting
Implements chartable_widget.
Definition at line 360 of file radioButtonList.class.php.
|
private |
formats the count data to be displayed with a barChart
Definition at line 322 of file radioButtonList.class.php.
chart_format_data_doughnutChart | ( | ) |
formats the count data to be displayed with a doughnutChart
Definition at line 347 of file radioButtonList.class.php.
|
private |
formats the count data to be displayed with a pieChart
Definition at line 335 of file radioButtonList.class.php.
chart_format_data_radarChart | ( | ) |
formats the count data to be displayed with a radarChart
Definition at line 355 of file radioButtonList.class.php.
chart_make | ( | ) |
makes the chartobject and loads count. Must be executed before any chart action
Implements chartable_widget.
Definition at line 293 of file radioButtonList.class.php.
check_required | ( | ) |
Implements iWidget.
Definition at line 57 of file radioButtonList.class.php.
count | ( | $db | ) |
counts results
db | $db | database object |
executes SQL through the database class individually for each widgettype a data "count" enty is created
Implements countable_widget.
Definition at line 255 of file radioButtonList.class.php.
display | ( | ) |
prints a widget on screen
Implements output_widget.
Definition at line 153 of file radioButtonList.class.php.
display_display_as_drop_down_edit | ( | ) |
Definition at line 81 of file radioButtonList.class.php.
display_edit | ( | ) |
prints a widget on screen with edit buttons for the edit page
Implements iWidget.
Definition at line 106 of file radioButtonList.class.php.
get_config | ( | $name | ) |
gets an config variable or it's default value
string | $name | variable name |
Reimplemented from buttonListContainer.
Definition at line 34 of file radioButtonList.class.php.
handle_display_as_drop_down_edit | ( | ) |
Definition at line 89 of file radioButtonList.class.php.
handle_inpt | ( | ) |
handles the answer to a question on form submit. Sets the values and generates error messages
Implements input_widget.
Definition at line 213 of file radioButtonList.class.php.
set_config | ( | $name, | |
$val | |||
) |
sets a config variable
string | $name | configvar name to be set |
mixed | $val | value to be set |
Reimplemented from buttonListContainer.
Definition at line 44 of file radioButtonList.class.php.
set_default_values | ( | $db | ) |
sets default values and childs. Used when creating a new widget
Implements iWidget.
Definition at line 19 of file radioButtonList.class.php.
|
private |
Definition at line 14 of file radioButtonList.class.php.
$child_options_whitelist = array("radioButton") |
defines a whitelist of widgettypes "*" means all widgets
Definition at line 10 of file radioButtonList.class.php.
$child_widgets_whitelist = array() |
defines a whitelist of widgettypes "*" means all widgets
Definition at line 9 of file radioButtonList.class.php.
$direct_result = true |
Definition at line 8 of file radioButtonList.class.php.
$option_list = array() |
Definition at line 12 of file radioButtonList.class.php.
$typ = "radioButtonList" |
Definition at line 7 of file radioButtonList.class.php.