Umfragen
|
Public Member Functions | |
set_default_values ($db) | |
display_date_select_options ($begin, $end, $selected=0) | |
get_date ($code) | |
set_date ($code, $value) | |
get_date_array ($datestr) | |
display_date_input ($code, $code2="date") | |
display_date_edit ($i) | |
handle_date_edit () | |
handle_inpt () | |
handles the answer to a question on form submit. Sets the values and generates error messages | |
display () | |
prints a widget on screen | |
![]() | |
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_config ($name, $val) | |
sets a config variable | |
get_config ($name) | |
gets an config variable or it's default value | |
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_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 |
Data Fields | |
$typ = "scheduleDate" | |
$direct_result = true | |
![]() | |
$pollID | |
ID of the poll the widget belongs to. | |
$name | |
The name of the widget, used for columname in the result table. Using the widget's ID in simple poll mode. | |
$value | |
Place to store data. For output_widget it's the shown data, for input_widget it's the result data. | |
$config | |
Config array, can be serialized as string. | |
$is_required = false | |
Is the widget a required question? | |
$dispName | |
User friendly name for the widget. Used to ask the question. | |
$index | |
Index in the widget_list. | |
$ID | |
widget's ID | |
$is_child = false | |
is the widget a child of another widget or a child of a poll? | |
$parent = -1 | |
the parent's ID if the widget is a child | |
$long_result = false | |
$direct_result = true | |
widget has a row in the result table |
Private Member Functions | |
format_int_2digit ($i) |
Definition at line 2 of file scheduleDate.class.php.
display | ( | ) |
prints a widget on screen
Implements output_widget.
Definition at line 250 of file scheduleDate.class.php.
display_date_edit | ( | $i | ) |
Definition at line 132 of file scheduleDate.class.php.
display_date_input | ( | $code, | |
$code2 = "date" |
|||
) |
Definition at line 82 of file scheduleDate.class.php.
display_date_select_options | ( | $begin, | |
$end, | |||
$selected = 0 |
|||
) |
Definition at line 13 of file scheduleDate.class.php.
|
private |
Definition at line 159 of file scheduleDate.class.php.
get_date | ( | $code | ) |
Definition at line 23 of file scheduleDate.class.php.
get_date_array | ( | $datestr | ) |
Definition at line 55 of file scheduleDate.class.php.
handle_date_edit | ( | ) |
Definition at line 167 of file scheduleDate.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 246 of file scheduleDate.class.php.
set_date | ( | $code, | |
$value | |||
) |
Definition at line 39 of file scheduleDate.class.php.
set_default_values | ( | $db | ) |
Definition at line 6 of file scheduleDate.class.php.
$direct_result = true |
Definition at line 4 of file scheduleDate.class.php.
$typ = "scheduleDate" |
Definition at line 3 of file scheduleDate.class.php.