Umfragen
buttonListContainer Class Reference

common class for radioButtonList and checkBoxList More...

Inheritance diagram for buttonListContainer:
container widget checkBoxList radioButtonList

Public Member Functions

 get_config ($name)
 gets an config variable or it's default value
 set_config ($name, $val)
 sets a config variable
 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
- Public Member Functions inherited from container
 __construct ()
 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
 set_default_values ($db)
 sets the widget and option list
 check_required ()
 checks for each child widget widget::check_required()
 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()
 display ()
 handle_inpt ()
- Public Member Functions inherited from 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

Additional Inherited Members

- Data Fields inherited from container
 $typ = "container"
 $direct_result = false
 true if the container itself holds the result of the question, false if the containing widgets should do this
 $child_widgets_whitelist = array("*")
 defines a whitelist of widgettypes "*" means all widgets
 $child_options_whitelist = array("*")
 defines a whitelist of widgettypes "*" means all widgets
 $option_list = array()
 the list of options to choose from (e.g. radioButtonList)
 $widget_list = array()
 the list of child widgets

Detailed Description

common class for radioButtonList and checkBoxList

needs the definition of dummyRadioButton, defined in the radioButtonList file!!

Definition at line 517 of file container.class.php.

Member Function Documentation

display_chartType_edit ( )

Definition at line 561 of file container.class.php.

display_columns_edit ( )

Definition at line 572 of file container.class.php.

display_show_charts_edit ( )

Definition at line 594 of file container.class.php.

get_config (   $name)

gets an config variable or it's default value

Parameters
string$namevariable name
Returns
mixed config

Reimplemented from widget.

Reimplemented in radioButtonList, and checkBoxList.

Definition at line 519 of file container.class.php.

handle_chartType_edit ( )

Definition at line 567 of file container.class.php.

handle_columns_edit ( )

Definition at line 586 of file container.class.php.

handle_show_charts_edit ( )

Definition at line 602 of file container.class.php.

rotate_option_list ( )

uses the "br" tags in the options to make a column based table

Returns
array of the option objects mixed with dummy objects to fill holes

Definition at line 622 of file container.class.php.

set_config (   $name,
  $val 
)

sets a config variable

Parameters
string$nameconfigvar name to be set
mixed$valvalue to be set
Returns
true if success else error string

Reimplemented from widget.

Reimplemented in radioButtonList, and checkBoxList.

Definition at line 540 of file container.class.php.


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