flagflag  
2: 2012-04-14 (Sat) 10:18:24 iseki source 3: 2012-04-14 (Sat) 18:18:37 iseki source
Line 5: Line 5:
*** DB [#g671c657] *** DB [#g671c657]
-- $DB 必須+- DataBase には $DB 変数を使用してアクセスする.関数の直接呼出しは全て廃止された.
-**** 1.9 [#ma608eb6] 
- %%get_record($table, $field1, $value1, $field2="", $value2="", $field3="", $value3="", $fields='*')%% - %%get_record($table, $field1, $value1, $field2="", $value2="", $field3="", $value3="", $fields='*')%%
 +-- $DB-> get_record($table, array $conditions, $fields='*', $strictness=IGNORE_MISSING)
- %%get_records($table, $field="", $value="", $sort="", $fields='*', $limitfrom="", $limitnum="") %% - %%get_records($table, $field="", $value="", $sort="", $fields='*', $limitfrom="", $limitnum="") %%
 +-- $DB->get_records($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0)
-**** 2.x [#k2c87506] 
-- DataBase には $DB 変数を使用してアクセスする.関数の直接呼出しは全て廃止された. 
-- $DB-> get_record($table, array $conditions, $fields='*', $strictness=IGNORE_MISSING) 
-- $DB->get_records($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) 
-- .... 
#br #br
*** 権限 [#hcf796d2] *** 権限 [#hcf796d2]
-**** 1.9 [#j36c195a] +- 廃止 
-- %%isadmin()%% +-- %%isadmin()%% 
-- %%isguest()%% +-- %%isguest()%% 
-- %%isteacher($course->id)%%+-- %%isteacher($course->id)%% 
**** 2.x [#se62698c] **** 2.x [#se62698c]
- see jbxl_moodle_tools.php - see jbxl_moodle_tools.php
#br #br
-*** Heading, Footer [#ib4a87b2+*** OUTPUT [#ib4a87b2] 
-**** 1.9 [#w13fb3f0+- %%print_heading()%% → $OUTPUT->heading() 
-- %%print_heading()%% +- %%print_footer()%% → $OUTPUT->footer() 
-- %%print_footer()%% +- %%print_simple_box_start()%% → $OUTPUT->box_start() 
-**** 2.x [#m34a66ec] +- %%print_simple_box_end()%% → $OUTPUT->box_end() 
-- $OUTPUT->heading() +- %%helpbutton()%% → $OUTPUT->help_icon() 
-- $OUTPUT->footer() +#br#br 
-#br+
*** HTML [#u71f5b4f] *** HTML [#u71f5b4f]
-**** 1.9 [#z18d6031] 
- %%choose_from_menu()%% → html_writer::select() - %%choose_from_menu()%% → html_writer::select()
- %%print_date_selector("endday", "endmonth", "endyear")%% → html_writer::select_time() を3回使用する - %%print_date_selector("endday", "endmonth", "endyear")%% → html_writer::select_time() を3回使用する
 +- %%print_table($table)%%  → html_writer::table($table)
 +#br
-**** 2.x [#c156b5e2]+**** 2.x example [#c156b5e2]
- html_writer::select() - html_writer::select()
 $ltimes = array(1=>0,5,10,15,20,25,30,35,40,45,50,​55,60,65,70,75,80,85,90,95,100,105,110,1​15,120);  $ltimes = array(1=>0,5,10,15,20,25,30,35,40,45,50,​55,60,65,70,75,80,85,90,95,100,105,110,1​15,120);
Line 47: Line 45:
 echo html_writer::select_time('months', 'startmonth', 0);  echo html_writer::select_time('months', 'startmonth', 0);
 echo html_writer::select_time('days',  'startday',  0);  echo html_writer::select_time('days',  'startday',  0);
 +- html_writer::table($table) 
 + $table = new html_table(); 
 + $table->data = .... 
 + .... 
 + echo html_writer::table($table);
#br #br
-*** Help ボタン [#nd3e090e] +*** etc.etc. [#t735cd8f
-**** 1.9 [#ecbaa178+- %%error()%% → print_error()
-- %%helpbutton()%% +
-**** 2.x [#f5f06eb5] +
-- $OUTPUT->help_icon()+
#br #br


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

47 user(s) are online (4 user(s) are browsing xpwiki)

Members: 0
Guests: 47

more...

Access Counter

Today : 4183418341834183
Yesterday : 5790579057905790
Total : 2365697923656979236569792365697923656979236569792365697923656979
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com