Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Nicols andrewnicols

View GitHub Profile
View dml_test.php
<?php
class core_dml_testcase extends database_driver_testcase {
/**
* Test the database instrumentation as SQL comment.
*/
public function test_instrument_sql() {
global $CFG;
require_once($CFG->dirroot . '/lib/tests/fixtures/test_dml_instrumentation_fixture.php');
$fixture = new \core\test_dml_instrumentation_fixture($this);
View en.yml
intro:
thankyou: Thank you for choosing Moodle!
webelieve: We believe that software, especially educational tools, should always be open and free. We rely on our community to support and help us to continuously improve our LMS.
supportthework: Support the work of our developers by making a <a href="{{{campaign.link}}}" target="_blank">donation</a>.
alttext: Donation banner
View tablelib.php
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle is distributed in the hope that it will be useful,
View dynamic.js
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
View promise.js
import PendingPromise from 'core/pending';
export default (...args) => {
const pendingPromise = new PendingPromise('core/promise');
return Promise.resolve.apply(this, args)
.then(result => {
pendingPromise.resolve();
return new Promise().resolve.apply(this, result);
View request.js
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
View 36920
Hi all,
After discussion with others in the Integration team, and careful consideration, the decision has been made to close this issue as "Will not fix".
Adding additional database engines to the list of supported engines is an extremely large undertaking. Even if the initial support level appears trivial, it is highly that this will introduce severe limitations to the product, and potential new features.
Whilst SQLite has many benefits, we do not feel that it has the featureset required to support the entire of Moodle LMS product in either its current form, nor potential future features that we introduce int he future. Therefore we cannot entertain adding full SQLite support in this, or any future version of Moodle.
That said, we will of course continue to support SQLite in locations where it is already supported. Notably areas such as the database enrolment, and database authentication plugins.
View example.php
<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
// start Chrome with 5 second timeout
View example.php
<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
// start Chrome with 5 second timeout
$host = 'http://localhost:4444/wd/hub'; // this is the default
View example.php
<?php
namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
// start Chrome with 5 second timeout
$host = 'http://localhost:4444/wd/hub'; // this is the default
You can’t perform that action at this time.