flagflag  
3: 2012-04-15 (Sun) 03:35:47 iseki source Cur: 2018-09-18 (Tue) 21:09:55 iseki source
Line 1: Line 1:
-** Moodle2.x Programing [#l2cb4679]+** Moodle2.2 Programing [#l2cb4679]
- Block: http://docs.moodle.org/en/Development:Bl​ocks - Block: http://docs.moodle.org/en/Development:Bl​ocks
-- [[1.9→2.x>../1.9→2.x]]+- [[1.x→2.x>../1.x→2.x]]
#br #br
Line 46: Line 46:
- required_param('course',  PARAM_INT); - required_param('course',  PARAM_INT);
- optional_param('mode', default, PARAM_ALPHA); - optional_param('mode', default, PARAM_ALPHA);
 +#br
 +
 +*** PAGE, OUTPUT [#p5713263]
 +**** エラー: The theme has already been set up for this page ready for output. Therefore, you can no longer change the theme, or anything that might affect what the current theme is, for example, the course. [#ocfe165c]
 +- 通常は require_login() を実行してから ヘッダーを書く.
 +- ヘッダーを書いた後に require_login() を実行すると,上記のエラーが出る.
 +- 対策: require_login() を実行してから ヘッダーを書く.
 + $PAGE->set_title($title);
 + $PAGE->set_heading($heading);
 + $PAGE->set_cacheable($cache); // true
 + $PAGE->set_button($button); // ' '
 + $PAGE->set_headingmenu($menu);
 + 
 + require_login($course->id);
 + echo $OUTPUT->header();
#br #br
Line 181: Line 196:
**** Moodle Data Cleaning Parameters [#z68f6bc6] **** Moodle Data Cleaning Parameters [#z68f6bc6]
 +- see also https://github.com/moodle/moodle/blob/ma​ster/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.
Line 203: Line 220:
-- 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.


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

20 user(s) are online (3 user(s) are browsing xpwiki)

Members: 0
Guests: 20

more...

Access Counter

Today : 5692569256925692
Yesterday : 8599859985998599
Total : 2365269823652698236526982365269823652698236526982365269823652698
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com