6: 2013-06-14 (金) 23:06:12 iseki  |
現: 2018-09-18 (火) 21:09:55 iseki  |
| $PAGE->set_button($button); // ' ' | | $PAGE->set_button($button); // ' ' |
| $PAGE->set_headingmenu($menu); | | $PAGE->set_headingmenu($menu); |
| + | |
| require_login($course->id); | | require_login($course->id); |
| echo $OUTPUT->header(); | | echo $OUTPUT->header(); |
| | | |
| **** Moodle Data Cleaning Parameters [#z68f6bc6] | | **** Moodle Data Cleaning Parameters [#z68f6bc6] |
| + | - see also https://github.com/moodle/moodle/blob/master/lib/moodlelib.php |
| + | |
| - PARAM_RAW: specifies a parameter that is not cleaned or processed in any way. | | - PARAM_RAW: specifies a parameter that is not cleaned or processed in any way. |
| - PARAM_CLEAN: Obsolete, please try to use a more specific type of parameter. | | - PARAM_CLEAN: Obsolete, please try to use a more specific type of parameter. |
| -- note: do not forget to addslashes() before storing into database! | | -- note: do not forget to addslashes() before storing into database! |
| - PARAM_ALPHAEXT: the same contents as PARAM_ALPHA plus the chars in quotes: "/-_" allowed, suitable for include() and require() | | - PARAM_ALPHAEXT: the same contents as PARAM_ALPHA plus the chars in quotes: "/-_" allowed, suitable for include() and require() |
| + | - PARAM_ALPHANUMEXT: expected numbers, letters only and _-. |
| - PARAM_SAFEDIR: safe directory name, suitable for include() and require() | | - PARAM_SAFEDIR: safe directory name, suitable for include() and require() |
| - PARAM_SEQUENCE: expects a sequence of numbers like 8 to 1, 5, 6, 4, 6, 8, 9. Numbers and commas only. | | - PARAM_SEQUENCE: expects a sequence of numbers like 8 to 1, 5, 6, 4, 6, 8, 9. Numbers and commas only. |