Home
News
Forum
Wiki
Blog
Contents
Gallery
Movies
Downloads
About NSL
If you want to see English page, please click "English" Button at Left.
[
タイトル一覧
|
ページ一覧
|
新規
|
単語検索
|
最終更新
|
ヘルプ
]
Moodle/Programming/1.x→2.x
をテンプレートにして作成
[
トップ
]
[ ]
開始行:
** Moodle 1.x -> 2.x
- [[1.9>../1.9]]
- [[2.2>../2.2]]
- [[2.4>../2.4]]
#br
*** DB
- DataBase には $DB 変数を使用してアクセスする.関数の直...
- lib/dml/moodle_database.php
- %%get_record($table, $field1, $value1, $field2="", $val...
-- $DB-> get_record($table, array $conditions, $fields='*...
- %%get_records($table, $field="", $value="", $sort="", $...
-- $DB->get_records($table, array $conditions=null, $sort...
#br
*** 権限
- 廃止
-- %%isadmin()%%
-- %%isguest()%%
-- %%isteacher($course->id)%%
**** 2.x
- see jbxl_moodle_tools.php
#br
*** OUTPUT
- %%print_heading()%% → echo $OUTPUT->heading()
- %%print_footer()%% → echo $OUTPUT->footer()
- %%print_simple_box_start()%% → echo $OUTPUT->box_start()
- %%print_simple_box_end()%% → echo $OUTPUT->box_end()
- %%helpbutton()%% → echo $OUTPUT->help_icon()
- %%popup_form()%% → echo $OUTPUT->single_select()
- %%print_user_picture()%% → echo $OUTPUT->user_picture(...
- %%link_to_popup_window($url, $lavel, $icon_url, $height...
#br
**** $OUTPUT->header()
- %%print_header($title, $heading, $navigation, $focus, $...
-- $PAGE と $OUTPUT を使う
$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();
**** user_picture(stdClass $user, array $options = null)
- lib/outputrenderers.php
- lib/outputcomponents.php
- $user : ユーザオブジェクト
- $options: courseid, link=true, size=35, alttext=true, p...
#br
*** html_writer
- %%choose_from_menu()%% → html_writer::select()
- %%print_date_selector("endday", "endmonth", "endyear")%...
-- html_writer::select_time() は 時間,分の既定値(select...
- %%print_table($table)%% → html_writer::table($table)
#br
**** html_writer::select()
- html_writer::select()
$ltimes = array(1=>0,5,10,15,20,25,30,35,40,45,50,55,60,...
echo html_writer::select($ltimes, 'lmin', 1, false);
**** html_writer::select_time()
- html_writer::select_time()
echo html_writer::select_time('years', 'startyear', 0);
echo html_writer::select_time('months', 'startmonth', 0);
echo html_writer::select_time('days', 'startday', 0);
#br
**** html_writer::table()
- html_writer::table($table)
$table = new html_table();
$table->head = array(title1, title2, title3, ....);
$table->align = array('left', 'center', 'center', ....);
$table->width = "100%";
$table->data[] = array(....) // 1行目
$table->data[] = array(....) // 2行目
$table->data[] = array(....) // 3行目
....
echo html_writer::table($table);
#br
*** etc.etc.
- %%error()%% → print_error()
#br
終了行:
** Moodle 1.x -> 2.x
- [[1.9>../1.9]]
- [[2.2>../2.2]]
- [[2.4>../2.4]]
#br
*** DB
- DataBase には $DB 変数を使用してアクセスする.関数の直...
- lib/dml/moodle_database.php
- %%get_record($table, $field1, $value1, $field2="", $val...
-- $DB-> get_record($table, array $conditions, $fields='*...
- %%get_records($table, $field="", $value="", $sort="", $...
-- $DB->get_records($table, array $conditions=null, $sort...
#br
*** 権限
- 廃止
-- %%isadmin()%%
-- %%isguest()%%
-- %%isteacher($course->id)%%
**** 2.x
- see jbxl_moodle_tools.php
#br
*** OUTPUT
- %%print_heading()%% → echo $OUTPUT->heading()
- %%print_footer()%% → echo $OUTPUT->footer()
- %%print_simple_box_start()%% → echo $OUTPUT->box_start()
- %%print_simple_box_end()%% → echo $OUTPUT->box_end()
- %%helpbutton()%% → echo $OUTPUT->help_icon()
- %%popup_form()%% → echo $OUTPUT->single_select()
- %%print_user_picture()%% → echo $OUTPUT->user_picture(...
- %%link_to_popup_window($url, $lavel, $icon_url, $height...
#br
**** $OUTPUT->header()
- %%print_header($title, $heading, $navigation, $focus, $...
-- $PAGE と $OUTPUT を使う
$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();
**** user_picture(stdClass $user, array $options = null)
- lib/outputrenderers.php
- lib/outputcomponents.php
- $user : ユーザオブジェクト
- $options: courseid, link=true, size=35, alttext=true, p...
#br
*** html_writer
- %%choose_from_menu()%% → html_writer::select()
- %%print_date_selector("endday", "endmonth", "endyear")%...
-- html_writer::select_time() は 時間,分の既定値(select...
- %%print_table($table)%% → html_writer::table($table)
#br
**** html_writer::select()
- html_writer::select()
$ltimes = array(1=>0,5,10,15,20,25,30,35,40,45,50,55,60,...
echo html_writer::select($ltimes, 'lmin', 1, false);
**** html_writer::select_time()
- html_writer::select_time()
echo html_writer::select_time('years', 'startyear', 0);
echo html_writer::select_time('months', 'startmonth', 0);
echo html_writer::select_time('days', 'startday', 0);
#br
**** html_writer::table()
- html_writer::table($table)
$table = new html_table();
$table->head = array(title1, title2, title3, ....);
$table->align = array('left', 'center', 'center', ....);
$table->width = "100%";
$table->data[] = array(....) // 1行目
$table->data[] = array(....) // 2行目
$table->data[] = array(....) // 3行目
....
echo html_writer::table($table);
#br
*** etc.etc.
- %%error()%% → print_error()
#br
ページ名:
サイト内 検索
高度な検索
ログイン
ユーザー名:
パスワード:
パスワード紛失
新規登録
サブ メニュー
新着情報
Books
リンク
サイトマップ
e-Learning
TUIS 認証局証明書
ミニカレンダー
2025年 2月
日
月
火
水
木
金
土
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
<今日>
オンライン状況
73 人のユーザが現在オンラインです。 (7 人のユーザが xpwiki を参照しています。)
登録ユーザ: 0
ゲスト: 73
もっと...
アクセスカウンタ
今日 :
昨日 :
総計 :
Powered by XOOPS Cube 2.1© 2001-2006
XOOPS Cube Project
Design by
XoopsDesign.com