|
@@ 1637-1643 (lines=7) @@
|
| 1634 |
|
return; |
| 1635 |
|
} |
| 1636 |
|
|
| 1637 |
|
function bigbluebuttonbn_views_instance_id($id) { |
| 1638 |
|
global $DB; |
| 1639 |
|
$cm = get_coursemodule_from_id('bigbluebuttonbn', $id, 0, false, MUST_EXIST); |
| 1640 |
|
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); |
| 1641 |
|
$bigbluebuttonbn = $DB->get_record('bigbluebuttonbn', array('id' => $cm->instance), '*', MUST_EXIST); |
| 1642 |
|
return array('cm' => $cm, 'course' => $course, 'bigbluebuttonbn' => $bigbluebuttonbn); |
| 1643 |
|
} |
| 1644 |
|
|
| 1645 |
|
function bigbluebuttonbn_views_instance_bigbluebuttonbn($bigbluebuttonbnid) { |
| 1646 |
|
global $DB; |
|
@@ 1645-1651 (lines=7) @@
|
| 1642 |
|
return array('cm' => $cm, 'course' => $course, 'bigbluebuttonbn' => $bigbluebuttonbn); |
| 1643 |
|
} |
| 1644 |
|
|
| 1645 |
|
function bigbluebuttonbn_views_instance_bigbluebuttonbn($bigbluebuttonbnid) { |
| 1646 |
|
global $DB; |
| 1647 |
|
$bigbluebuttonbn = $DB->get_record('bigbluebuttonbn', array('id' => $bigbluebuttonbnid), '*', MUST_EXIST); |
| 1648 |
|
$course = $DB->get_record('course', array('id' => $bigbluebuttonbn->course), '*', MUST_EXIST); |
| 1649 |
|
$cm = get_coursemodule_from_instance('bigbluebuttonbn', $bigbluebuttonbn->id, $course->id, false, MUST_EXIST); |
| 1650 |
|
return array('cm' => $cm, 'course' => $course, 'bigbluebuttonbn' => $bigbluebuttonbn); |
| 1651 |
|
} |
| 1652 |
|
|
| 1653 |
|
function bigbluebutonbn_settings_general(&$renderer) { |
| 1654 |
|
global $CFG; |