This file contains hidden or 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'); |
This file contains hidden or 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 | |
/** | |
* Notification REST service for testing Airnotifier V2 | |
*/ | |
$body = file_get_contents('php://input'); | |
$data = json_decode($body); | |
if (!$data) { |
This file contains hidden or 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 | |
public function send_message($eventdata) { | |
global $CFG; | |
require_once($CFG->libdir . '/filelib.php'); | |
if (!empty($CFG->noemailever)) { | |
// Hidden setting for development sites, set in config.php if needed. | |
debugging('$CFG->noemailever active, no airnotifier message sent.', DEBUG_MINIMAL); | |
return true; | |
} |
This file contains hidden or 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 hidden or 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
MM.fs.getDirectory = function(path, createIfNotFound, successCallback, errorCallBack, dirEntry) { | |
MM.fs.loadFS(function() { | |
path = path.replace('file:///', ''); | |
var baseRoot = MM.fs.fileSystemRoot; | |
if (dirEntry) { | |
baseRoot = dirEntry; | |
} |
This file contains hidden or 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
var requires = [ | |
"root/externallib/text!root/plugins/notifications/notifications.html", | |
"root/externallib/text!root/plugins/notifications/notification.html", | |
"root/externallib/text!root/plugins/notifications/notifications_enable.html", | |
"root/externallib/text!root/plugins/notifications/notification_alert.html", | |
"root/externallib/text!root/plugins/notifications/notifications_full.html" | |
]; | |
define(requires, function (notifsTpl, notifTpl, notifsEnableTpl, notifAlert, notifFullTpl) { |
This file contains hidden or 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 | |
/// SETUP - NEED TO BE CHANGED | |
$token = '689f261a74ff51d54b01c4da8921ca83'; | |
$domainname = 'http://localhost/moodlebugs'; | |
$functionname = 'mod_forum_get_forum_discussions'; | |
// REST RETURNED VALUES FORMAT | |
$restformat = 'json'; //Also possible in Moodle 2.2 and later: 'json' |
This file contains hidden or 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. | |
// | |
/// SETUP - NEED TO BE CHANGED |
This file contains hidden or 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
body { | |
color: #666666; /*default*/ | |
background: #4bcaff; | |
} | |
a { | |
color: #0088cc; /*default*/ | |
} | |
h1 { | |
color: #4bcaff; | |
} |
This file contains hidden or 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
body { | |
color: #595959; | |
background: #f98012; | |
} | |
a { | |
color: #0070a8; | |
} | |
h1 { | |
color: #f98012; | |
} |