|
@@ 1614-1620 (lines=7) @@
|
| 1611 |
|
return; |
| 1612 |
|
} |
| 1613 |
|
|
| 1614 |
|
function bigbluebuttonbn_views_instance_id($id) { |
| 1615 |
|
global $DB; |
| 1616 |
|
$cm = get_coursemodule_from_id('bigbluebuttonbn', $id, 0, false, MUST_EXIST); |
| 1617 |
|
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); |
| 1618 |
|
$bigbluebuttonbn = $DB->get_record('bigbluebuttonbn', array('id' => $cm->instance), '*', MUST_EXIST); |
| 1619 |
|
return array('cm' => $cm, 'course' => $course, 'bigbluebuttonbn' => $bigbluebuttonbn); |
| 1620 |
|
} |
| 1621 |
|
|
| 1622 |
|
function bigbluebuttonbn_views_instance_bigbluebuttonbn($bigbluebuttonbnid) { |
| 1623 |
|
global $DB; |
|
@@ 1622-1628 (lines=7) @@
|
| 1619 |
|
return array('cm' => $cm, 'course' => $course, 'bigbluebuttonbn' => $bigbluebuttonbn); |
| 1620 |
|
} |
| 1621 |
|
|
| 1622 |
|
function bigbluebuttonbn_views_instance_bigbluebuttonbn($bigbluebuttonbnid) { |
| 1623 |
|
global $DB; |
| 1624 |
|
$bigbluebuttonbn = $DB->get_record('bigbluebuttonbn', array('id' => $bigbluebuttonbnid), '*', MUST_EXIST); |
| 1625 |
|
$course = $DB->get_record('course', array('id' => $bigbluebuttonbn->course), '*', MUST_EXIST); |
| 1626 |
|
$cm = get_coursemodule_from_instance('bigbluebuttonbn', $bigbluebuttonbn->id, $course->id, false, MUST_EXIST); |
| 1627 |
|
return array('cm' => $cm, 'course' => $course, 'bigbluebuttonbn' => $bigbluebuttonbn); |
| 1628 |
|
} |
| 1629 |
|
|
| 1630 |
|
function bigbluebutonbn_settings_general(&$renderer) { |
| 1631 |
|
// Configuration for BigBlueButton. |