現: 2021-07-29 (木) 14:23:22 iseki | |||
---|---|---|---|
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 |
- Moodle/Programming/get_coursemodule_from_id のバックアップ差分(No. All)
- 現: 2021-07-29 (木) 14:23:22 iseki