This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file is NOT a part of Moodle - http://moodle.org/ | |
// | |
// This client for Moodle 2 is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return true if this plugin can upgrade an old Moodle 2.2 assignment of this type | |
* and version. | |
* | |
* @param string $type | |
* @param int $version | |
* @return bool True if upgrade is possible | |
*/ | |
public function can_upgrade($type, $version) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check if the given SCORM is available (time restrictions). | |
* The remote Web Service check that, but if we are offline maybe we have passed the timeclose date. | |
*/ | |
isAvailable = function(scorm) { | |
var timeNow = $mmUtil.timestamp(); | |
if (scorm.timeopen > 0 && scorm.timeopen > timeNow) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This client for local_illl is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
/** | |
* XMLRPC client for Moodle 2 - local_illl | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns description of method parameters | |
* | |
* @return external_function_parameters | |
* @since Moodle 2.3 | |
*/ | |
public static function get_categories_parameters() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns description of method parameters | |
* @return external_function_parameters | |
*/ | |
public static function duplicate_course_parameters() { | |
return new external_function_parameters( | |
array( | |
'courseid' => new external_value(PARAM_INT, 'course to duplicate id'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bar-side-menu { | |
background-color: blue; | |
} | |
.bar-content { | |
background-color: blue; | |
} | |
.button.button-positive { | |
border-color: blue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// message/externallib.php | |
/** | |
* Retrieve a list of users blocked | |
* | |
* @param int $userid the user whose blocked users we want to retrieve | |
* @return external_description | |
* @since 2.9 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script language="javascript"> | |
function test() { | |
var siteURL = document.getElementById("url").value; | |
var token = document.getElementById("token").value; | |
var data = { | |
"wsfunction": "moodle_webservice_get_siteinfo", | |
"wstoken": token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function test_custom_parameter() { | |
global $DB, $SITE, $USER; | |
$custom1 = 'a=one;b=two;three=3'; | |
$custom2 = "a=one\nb=two\nthree=3"; | |
$this->resetAfterTest(true); | |
$ltigenerator = $this->getDataGenerator()->get_plugin_generator('mod_lti'); |