Skip to content

Instantly share code, notes, and snippets.

@jleyva
jleyva / client.php
Created February 6, 2014 11:14
PHP Client for testing MDL-44020
<?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.
//
/**
* REST client for Moodle 2
@jleyva
jleyva / client_forum_get_posts.php
Last active August 29, 2015 13:57
Test client for forum_get_posts MDL-30106
<?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.
//
/**
@jleyva
jleyva / client_forum_get_discussions.php
Created March 4, 2014 15:10
client_forum_get_discussions MDL-44408
<?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.
//
/**
@jleyva
jleyva / client.php
Last active August 29, 2015 13:57
MDL-44603
<?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.
//
/**
@jleyva
jleyva / client_airnotifier_system.php
Created April 3, 2014 13:35
client_airnotifier_system.php
<?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
@jleyva
jleyva / client_airnotifier_preferences.php
Created April 3, 2014 13:48
client_airnotifier_preferences.php
<?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
{"id":"current_site",
"name":"current_site",
"value":{"sitename":"<span lang=\"de\" class=\"multilang\">GERMAN TITLE</span><span lang=\"en\" class=\"multilang\">ENGLISH TITLE</span>","username":"student","firstname":"John","lastname":"Student","fullname":"John Student","lang":"en","userid":3,"siteurl":"http://mm.cvaconsulting.com/moodle","userpictureurl":"http://mm.cvaconsulting.com/moodle/pluginfile.php/243/user/icon/f1",
"functions":[{"name":"moodle_enrol_get_users_courses","version":"2013111801.01"},
{"name":"moodle_enrol_get_enrolled_users","version":"2013111801.01"},
{"name":"moodle_user_get_users_by_id","version":"2013111801.01"},
{"name":"moodle_webservice_get_siteinfo","version":"2013111801.01"},
{"name":"moodle_notes_create_notes","version":"2013111801.01"},
{"name":"moodle_user_get_course_participants_by_id","version":"2013111801.01"},
{"name":"moodle_user_get_users_by_courseid","version":"2013111801.01"},
<?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
@jleyva
jleyva / get_messages.php
Created May 7, 2014 11:44
get_messages.php
<?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.
//
/**
<?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.
//
/**