flagflag  
  
Cur: 2021-07-29 (Thu) 14:23:22 iseki source
Line 1: Line 1:
 +*** get_coursemodule_from_id [#ta601390]
 +- get_coursemodule_from_id($dbname, $id)
 +-- $dbname : モジュール名
 +-- $id : モジュールのインスタンスID
 + $cm = get_coursemodule_from_id('altwiki', 60);
 + print_r($cm);
 + 
 + [id] => 60        モジュールオブジェクトのインスタンスID (Moodle全体で一意的)
 + [course] => 2      コースID
 + [module] => 56    モジュールID
 + [instance] => 2    そのモジュール内でのインスタンスID (モジュール内で一意的.データベースのID)
 + [section] => 2
 + [idnumber] =>
 + [added] => 1371440189
 + [score] => 0
 + [indent] => 0
 + [visible] => 1
 + [visibleold] => 1
 + [groupmode] => 0
 + [groupingid] => 0
 + [groupmembersonly] => 0
 + [completion] => 0
 + [completiongradeitemnumber] =>
 + [completionview] => 0
 + [completionexpected] => 0
 + [availablefrom] => 0
 + [availableuntil] => 0
 + [showavailability] => 0
 + [showdescription] => 0
 + [name] => ALT2
 + [modname] => altwiki
 +
 +#br
  

  • Backup diff of Moodle/Programming/get_coursemodule_from​_id(No. All)
    • Cur: 2021-07-29 (Thu) 14:23:22 iseki

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 (6 user(s) are browsing xpwiki)

Members: 0
Guests: 47

more...

Access Counter

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