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 | |
$map = [ | |
'otherMails-0' => 'email' | |
]; | |
$userinfo = json_decode('{ | |
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(*)/$entity", | |
"otherMails": [ | |
"0@", | |
"1", | |
"2" |
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 | |
$map = [ | |
'otherMails-0' => 'email' | |
]; | |
$userinfo = json_decode('{ | |
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(*)/$entity", | |
"otherMails": [ | |
"0@", | |
"1", | |
"2" |
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 | |
// A simple file to do some php stuff then do some html stuff. | |
// Make connection to the database, query the database, get the results. | |
$records = [ | |
['id' => 1, 'firstname' => 'Harry', 'lastname' => 'Potter'], | |
['id' => 2, 'firstname' => 'Hermione', 'lastname' => 'Granger'] | |
['id' => 3, 'firstname' => 'Ronald', 'lastname' => 'Weasly'], | |
['id' => 3, 'firstname' => 'Tom', 'lastname' => 'Riddle'] | |
]; |
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 | |
// A simple file to do some php stuff then do some html stuff. | |
// The "array $records = []" means that the parameter $records has to be of data type array, and if there is no parameter | |
// passed, $records will default to an empty array. This will reduce the amount of error checking in the function. This | |
// is called an optional parameter. Order of optional and required parameters are important. Read some php docs about it. | |
// A required parameter would just be function stuff($parameter1, $parameter2) {}. | |
function div_the_things(array $records = []) { | |
$returnString = "<div class='outer-div'>"; | |
for ($i = 0; $i < count($records); $i++) { |
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
diff --git a/lib/dml/mariadb_native_moodle_database.php b/lib/dml/mariadb_native_moodle_database.php | |
old mode 100644 | |
new mode 100755 | |
index 358a493647..c6f21e736e | |
--- a/lib/dml/mariadb_native_moodle_database.php | |
+++ b/lib/dml/mariadb_native_moodle_database.php | |
@@ -79,13 +79,10 @@ class mariadb_native_moodle_database extends mysqli_native_moodle_database { | |
* @return array Array containing 'description' and 'version' info | |
*/ | |
public function get_server_info() { |
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
<?xml version="1.0"?> | |
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://www.megabus.com.au/MWS" targetNamespace="http://www.megabus.com.au/MWS"> | |
<types> | |
<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.megabus.com.au/MWS"> | |
<complexType name="AdditionalAttribute"> | |
<sequence> | |
<element name="DisplayOrder" type="s:int"/> | |
<element name="AttributeName" type="s:string"/> | |
<element name="DataType" type="s:int"/> | |
<element name="StringLength" type="s:int"/> |