flagflag  If you want to see English page, please click "English" Button at Left.
2: 2012-04-14 (土) 09:49:00 iseki ソース 現: 2018-09-18 (火) 21:09:55 iseki ソース
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 120: Line 135:
#br #br
-*** Form [#o9495a23]+*** User Table [#ne3233f5] 
 +- [id] => 237 
 +- [auth] => email 
 +- [confirmed] => 1 
 +- [policyagreed] => 0 
 +- [deleted] => 0 
 +- [suspended] => 0 
 +- [mnethostid] => 1 
 +- [username] => alice 
 +- [password] => ************** 
 +- [idnumber] => 
 +- [firstname] => 電脳空間内アリス 
 +- [lastname] => alice 
 +- [email] => alice@edu.tuis.ac.jp 
 +- [emailstop] => 0 
 +- [icq] => 
 +- [skype] => 
 +- [yahoo] => 
 +- [aim] => 
 +- [msn] => 
 +- [phone1] => 
 +- [phone2] => 
 +- [institution] => 
 +- [department] => 
 +- [address] => 
 +- [city] => 電脳空間内 
 +- [country] => AQ 
 +- [lang] => ja 
 +- [theme] => 
 +- [timezone] => 99 
 +- [firstaccess] => 1272419261 
 +- [lastaccess] => 1334212672 
 +- [lastlogin] => 1309493183 
 +- [currentlogin] => 1334212371 
 +- [lastip] => 202.26.159.212 
 +- [secret] => 
 +- [picture] => 0 
 +- [url] => 
 +- [description] => 
 +- [descriptionformat] => 1 
 +- [mailformat] => 1 
 +- [maildigest] => 0 
 +- [maildisplay] => 2 
 +- [htmleditor] => 1 
 +- [ajax] => 1 
 +- [autosubscribe] => 1 
 +- [trackforums] => 0 
 +- [timecreated] => 1272419261 
 +- [timemodified] => 1334212362 
 +- [trustbitmask] => 0 
 +- [imagealt] => 
 +- [screenreader] => 0
#br #br
Line 130: 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 152: 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.


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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
<今日>

オンライン状況

109 人のユーザが現在オンラインです。 (18 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 109

もっと...

アクセスカウンタ

今日 : 3712371237123712
昨日 : 1615016150161501615016150
総計 : 2348300523483005234830052348300523483005234830052348300523483005
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com