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
SELECT | |
c.id AS course_id, | |
c.fullname AS course_name, | |
l.id AS lti_activity_id, | |
l.name AS lti_activity_name, | |
l.toolurl AS lti_tool_url, | |
l.instructorcustomparameters AS custom_parameters, | |
lt.id AS lti_type_id, | |
lt.name AS lti_tool_name, | |
lt.clientid AS lti_client_id, |
This file has been truncated, but you can view the full file.
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
# File: OPENSOURCE/LMS/MOODLE_403_STABLE//blocks/blog_recent/tests/behat/block_blog_recent_course.feature | |
@block @block_blog_menu @block_blog_recent | |
Feature: Students can use the recent blog entries block to view recent entries on a course page | |
In order to enable the recent blog entries block a course page | |
As a teacher | |
I can add the recent blog entries block to a course page | |
Background: | |
Given the following "users" exist: | |
| username | firstname | lastname | email | idnumber | |
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 | |
function GetRibizReferenceData() { | |
$wsdl = "https://api.bigregister.nl/zksrv/soap/4?wsdl"; // WSDL URL for the web service | |
try { | |
$client = new SoapClient($wsdl, array('trace' => 1)); | |
$params = new stdClass(); | |
$response = $client->__soapCall("GetRibizReferenceData", array($params)); |
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
SELECT ccc.id, ccc.courseid, ccc.competencyid, cf.shortname as 'referentiel', cf.idnumber as 'framework Id', c.fullname as 'cours', comp.shortname | |
FROM prefix_competency_coursecomp ccc | |
INNER JOIN prefix_course AS c ON c.id = ccc.courseid | |
INNER JOIN prefix_competency AS comp ON comp.id = ccc.competencyid | |
INNER JOIN prefix_competency_framework AS cf ON cf.id = comp.competencyframeworkid | |
JOIN prefix_course_categories cc ON c.category = cc.id | |
WHERE 1=1 | |
%%FILTER_COMPETENCYFRAMEWORKS:cf.id%% | |
%%FILTER_SUBCATEGORIES:cc.path%% | |
%%FILTER_STARTTIME:c.startdate:>=%% %%FILTER_ENDTIME:c.startdate:<=%% |
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
#!/bin/bash | |
TEMPDIR=`mktemp -d` | |
open -na "Brave Browser Beta" --args \ | |
--allow-insecure-localhost \ | |
--autoplay-policy=document-user-activation-required \ | |
--autoplay-policy=no-user-gesture-required \ | |
--bypass-app-banner-engagement-checks \ | |
--dbus-stub \ | |
--disable-audio-output \ | |
--disable-background-networking \ |
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
if [[ $(crontab -l | grep -q '/public_html/admin/cli/cron.php'; echo $?) == 1 ]] | |
then | |
crontab -l >/tmp/crontab.tmp | |
echo -e '\n* * * * * /usr/bin/php7.4 ~/public_html/admin/cli/cron.php > /dev/null 2>&1' >>/tmp/crontab.tmp | |
crontab /tmp/crontab.tmp | |
rm /tmp/crontab.tmp | |
echo 'Installed the crontab' | |
else | |
echo 'Skip the crontab installation, already there' | |
fi |
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
`.:;+o***ooi;.` | |
`,;o*%%&##########&*:` | |
'+&%%%***%%%%&$$$$$$$##&i` | |
`+$$%********%&$$$$$$$$$$$#&, | |
,&&%*********&$$$$$$$$$$$$$$$$: | |
,#$%********&$$$$$$$$$$$$$$$$$$o: | |
.$$$$&*****%%$$$########$$$$$$$$*i: | |
%$$##$&%**%$%.'..,::;i+*$$$$$$$$*i+. | |
'$#&o;,&$&&$$$+;ooi;:;i*%&$$$$$$$*iii | |
.$+::,;$$$$$$$$#$*%;`',,+#$$$$$$$oiii` |
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 | |
$htmlinput = file_get_contents('https://docs.moodle.org/dev/Releases'); | |
$doc = new \DOMDocument(); | |
libxml_use_internal_errors(true); | |
$doc->loadHTML($htmlinput); | |
$xpath = new \DOMXpath($doc); | |
$ths = $xpath->query('//tr/th[position()=1]'); | |
$versions = []; |
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 | |
// Get customfields on course context. | |
// Can be used for the plugin settings page (dropdown). | |
$handler = \core_course\customfield\course_handler::create(); | |
$fields = $handler->get_fields(); | |
// Get customfields with data for a course. | |
$courseid = 16; |
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 | |
$page = new moodle_page(); | |
$course = $DB->get_record('course', ['id' => 2]); | |
$page->set_course($course); | |
$page->set_context(context_course::instance($course->id)); | |
$page->set_pagetype('course-view-' . $course->format); | |
$page->set_url(new moodle_url('/course/view.php', ['id' => $course->id])); |
NewerOlder