|
Moodle
2.2.1
http://www.collinsharper.com
|
Allows the admin to manage question behaviours.
questionengine
Allows the admin to manage question types.
questionbank
Includes AutoGroupTest class extension supporting code coverage
This class extends AutoGroupTest to add the funcitionalities necessary to run code coverage, allowing its activation and specifying included / excluded files to be analysed
simpletestcoverage
CoverageRecorder class extension supporting multiple coverage instrumentations to be accumulated
This class extends CoverageRecorder class in order to support multimple xdebug code coverage sessions to be executed and get acummulated info about all them in order to produce one unique report (default CoverageRecorder resets info on each instrumentation (coverage session)
simpletestcoverage
HtmlCoverageReporter class extension supporting Moodle customizations
This class extends the HtmlCoverageReporter class in order to implement Moodle look and feel, inline reporting after executing unit tests, proper linking and other tweaks here and there.
simpletestcoverage
An expectation for comparing strings ignoring whitespace.
simpletestex
An Expectation that two arrays contain the same list of values.
simpletestex
An Expectation that compares to objects, and ensures that for every field in the expected object, there is a key of the same name in the actual object, with the same value. (The actual object may have other fields to, but we ignore them.)
simpletestex
This class lets you write unit tests that access a separate set of test tables with a different prefix. Only those tables you explicitly ask to be created will be.
This class has failities for flipping $USER->id.
The tear-down method for this class should automatically revert any changes you make during test set-up using the metods defined here. That is, it will drop tables for you automatically and revert to the real $DB and $USER->id.
simpletestex
simpletestex
This is a Database Engine proxy class: It replaces the global object $DB with itself through a call to the static instantiate() method, and restores the original global $DB through restore(). Internally, it routes all calls to $DB to a real instance of the database engine (aggregated as a member variable), except those that are defined in this proxy class. This makes it possible to add extra code to the database engine without subclassing it.
simpletestex
This file contains the mnet services for the mnet authentication plugin
auth
Web service auth plugin, reserves username, prevents normal login. TODO: add IP restrictions and some other features - MDL-17135
webservice
backup
Manage backup files
backup-imscc
backup-imscc
backup-imscc
backup-imscc
backup-controller
backup-tests
backup-moodle2
Base class for course report backup plugins.
NOTE: When you back up a course, it potentially may run backup for all course reports. In order to control whether a particular report gets backed up, a course report should make use of the second and third parameters in get_plugin_element().
backup-moodle2
backup-moodle2
Base class for report backup plugins.
NOTE: When you back up a course, it potentially may run backup for all reports. In order to control whether a particular report gets backed up, a report should make use of the second and third parameters in get_plugin_element().
backup-moodle2
backup-moodle2
Restore for course plugin: course report.
backup-moodle2
Restore for plugin report.
backup-moodle2
Restore for course plugin: theme.
backup-moodle2
Import backup file or select existing backup file from moodle
Import backup file form
backup-factories
backup-dbops
backup-helper
backup-helper
TODO: Finish phpdocs
backup-includes
backup-interfaces
backup-logger
backup-output
TODO: Finish phpdocs
backup-plan
backup-settings
backup-structure
TODO: Finish phpdocs
Mockup elements shared by various structure tests
backup-tests
Unit tests for base_final_element.class.php
backup-tests
Unit tests for base_atom.class.php
backup-tests
Unit tests for base_attribute.class.php
backup-tests
Unit tests for backup/backup_nested_element.class.php
backup-tests
This file contains the generic moodleform bridge for the backup user interface as well as the individual forms that relate to the different stages the user interface can exist within.
This file contains the backup user interface class
This file contains the setting user interface classes that all backup/restore settings use to represent the UI they have.
Backup user interface stages
This file contains the classes required to manage the stages that make up the backup user interface. These will be primarily operated a {
This file contains extension of the backup classes that override some methods and functionality in order to customise the backup UI for the purposes of import.
This file contains backup and restore output renderers
This file contains the forms used by the restore stages
This file contains the restore user interface class
This file contains components used by the restore UI
restore user interface stages
This file contains the classes required to manage the stages that make up the restore user interface. These will be primarily operated a {
backup-xml
xml
xml
Form for editing tag block instances.
Form for editing Blog tags block instances.
backup-moodle2
Form for editing HTML block instances.
Form for editing Mentees block instances.
Defines the form for editing Quiz results block instances.
Form for editing RSS client block instances.
Script to let a user edit the properties of a particular RSS feed.
Script to let a user manage their RSS feeds.
Section links block
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Form for editing tag_flickr block instances.
Form for editing tag_youtube block instances.
Blog entry edit page
blog
Form page for an external blog link.
blog
Moodleform for the user interface for managing external blog links.
blog
List of external blogs for current user.
blog
Core global functions for Blog.
blog
Classes for Blogs.
blog
Blog_entry class. Represents an entry in a user's blog. Contains all methods for managing this entry. This class does not contain any HTML-generating code. See blog_listing sub-classes for such code. This class follows the Object Relational Mapping technique, its member variables being mapped to the fields of the post table.
blog
Abstract Blog_Listing class: used to gather blog entries and output them as listings. One of the subclasses must be used.
blog
Form page for blog preferences
blog
Form for blog preferences
blog
Unit tests for blog
blog
Edit course settings
This file contains general functions for the course format SCORM
This file contains general functions for the course format Social
This file contains general functions for the course format Topic
This file contains general functions for the course format Week
Adds or updates modules in a course using new formslib
Renderer for use with the course section and all the goodness that falls within it.
This renderer should contain methods useful to courses, and categories.
List of all resource type modules in course
Unit tests for Course lib.
External files API
webservice
List of grade letters.
Edit page for grade outcomes.
Listing page for grade outcomes.
Edit and review page for grade categories and items.
Grade export key edit page.
Grade export key management form.
Grade export key management page.
Import key management.
Grade import key management form.
Grade import key management page.
Functions used by gradebook plugins and reports.
A simple class containing info about grade plugins. Can be subclassed for special rules
Utility class used for return tracking when using edit and other forms in grade plugins
General structure representing grade items in course
Flat structure similar to grade tree.
This class represents a complete tree of categories, grade_items and final grades, organises as an array primarily, but which can also be converted to other formats. It has simple method calls with complex implementations, allowing for easy insertion, deletion and moving of items and categories within the tree.
Form for grader report preferences.
grade
Renderer for the grade user report
Unit tests for grade/edit/tree/lib.php.
Unit tests for grade/report/lib.php.
External groups API
webservice
This file contains the strings used by backup
Strings for component 'cohort', language 'en', branch 'MOODLE_20_STABLE'
cohort
Library functions to facilitate the use of ajax JavaScript in Moodle.
This file is used to deliver a branch from the navigation structure in XML format back to a page from an AJAX call
Code to update a user preference in response to an ajax call. You should not send requests to this script directly. Instead use the set_user_preference function in javascript_static.js.
http://www.gnu.org/copyleft/gpl.html GNU Public License
Abstract authentication plugin.
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Box REST Client Library for PHP5 Developers
Thanks to Mathieu Collas (http://www.myefarm.com/) for finding a display/formatting bug in the _build_link_list() function: email readers would show the left bracket and number ("[1") as part of the rendered email address. Updated 12/16/04.
Thanks to Wojciech Bajon (http://histeria.pl/) for submitting code to handle relative links, which I hadn't considered. I modified his code a bit to handle normal HTTP links and MAILTO links. Also for suggesting three additional HTML entity codes to search for. Updated 03/02/05.
Thanks to Jacob Chandler for pointing out another link condition for the _build_link_list() function: "https". Updated 04/06/05.
Thanks to Marc Bertrand (http://www.dresdensky.com/) for suggesting a revision to the word wrapping functionality; if you specify a $width of 0 or less, word wrapping will be ignored. Updated 11/02/06.
*** Big housecleaning updates below:
Thanks to Colin Brown (http://www.sparkdriver.co.uk/) for suggesting the fix to handle and blank lines (whitespace). Christian Basedau (http://www.movetheweb.de/) also suggested the blank lines fix.
Special thanks to Marcus Bointon (http://www.synchromedia.co.uk/), Christian Basedau, Norbert Laposa (http://ln5.co.uk/), Bas van de Weijer, and Marijn van Butselaar for pointing out my glaring error in the
handling. Marcus also supplied a host of fixes.
Thanks to Jeffrey Silverman (http://www.newtnotes.com/) for pointing out that extra spaces should be compressed--a problem addressed with Marcus Bointon's fixes but that I had not yet incorporated.
Thanks to Daniel Schledermann (http://www.typoconsult.dk/) for suggesting a valuable fix with tag handling.
Thanks to Wojciech Bajon (again!) for suggesting fixes and additions, including the tag handling that Daniel Schledermann pointed out but that I had not yet incorporated. I haven't (yet) incorporated all of Wojciech's changes, though I may at some future time.
*** End of the housecleaning updates. Updated 08/08/07.
PHP lexer code snarfed from the CVS tree for the lamplib project at http://sourceforge.net/projects/lamplib This project is administered by Markus Baker, Harry Fuecks and Matt Mitchell, and the project code is in the public domain.
Thanks, guys!
Compounded regular expression. Any of the contained patterns could match and when one does it's label is returned.
States for a stack machine.
Accepts text and breaks it into tokens. Some optimisation to make the sure the content is only scanned by the PHP regex parser once. Lexer modes must not start with leading underscores.
Clues to reading this code:
The functions that move things around the tree structure just update the database - they don't update the in-memory structure, instead they trigger a page reload so everything is rebuilt from scratch.
This class abstracts PHP's PECL memcached API to provide
Author: Martin Langhoff <martin@catalyst.net.nz>
Note: do NOT store booleans here. With memcached, a false value is indistinguisable from a "not found in cache" response.
Interface describing class which is responsible for getting of localised strings from language packs.
Standard string_manager implementation
Minimalistic string fetching implementation that is used in installer before we fetch the wanted language pack from moodle.org lang download site.
This class is used to represent a node in a navigation tree
This class is used to represent a node in a navigation tree within Moodle, the tree could be one of global navigation, settings navigation, or the navbar. Each node can be one of two types either a Leaf (default) or a branch. When a node is first created it is created as a leaf, when/if children are added the node then becomes a branch.
navigation
Navigation node collection
This class is responsible for managing a collection of navigation nodes. It is required because a node's unique identifier is a combination of both its key and its type.
Originally an array was used with a string key that was a combination of the two however it was decided that a better solution would be to use a class that implements the standard IteratorAggregate interface.
navigation
The global navigation class used for... the global navigation
This class is used by PAGE to store the global navigation for the site and is then used by the settings nav and navbar to save on processing and DB calls
See
navigation
The limited global navigation class used for the AJAX extension of the global navigation class.
The primary methods that are used in the global navigation class have been overriden to ensure that only the relevant branch is generated at the root of the tree. This can be done because AJAX is only used when the backwards structure for the requested branch exists. This has been done only because it shortens the amounts of information that is generated which of course will speed up the response time.. because no one likes laggy AJAX.
navigation
Navbar class
This class is used to manage the navbar, which is initialised from the navigation object held by PAGE
navigation
Class used to manage the settings option for the current page
This class is used to manage the settings options in a tree format (recursively) and was created initially for use with the settings blocks.
navigation
Simple class used to output a navigation branch in XML
navigation
The cache class used by global navigation and settings navigation to cache bits and bobs that are used during their generation.
It is basically an easy access point to session with a bit of smarts to make sure that the information that is cached is valid still.
Example use: if (!$cache->viewdiscussion()) { // Code to do stuff and produce cachable content $cache->viewdiscussion = has_capability('mod/forum:viewdiscussion', $coursecontext); } $content = $cache->viewdiscussion;
navigation
OAuth helper class
1. You can extends oauth_helper to add specific functions, such as twitter extends oauth_helper 2. Call request_token method to get oauth_token and oauth_token_secret, and redirect user to authorize_url, developer needs to store oauth_token and oauth_token_secret somewhere, we will use them to request access token later on 3. User approved the request, and get back to moodle 4. Call get_access_token, it takes previous oauth_token and oauth_token_secret as arguments, oauth_token will be used in OAuth request, oauth_token_secret will be used to bulid signature, this method will return access_token and access_secret, store these two values in database or session 5. Now you can access oauth protected resources by access_token and access_secret using oauth_helper::request method (or get() post())
Note: 1. This class only support HMAC-SHA1 2. oauth_helper class don't store tokens and secrets, you must store them manually 3. Some functions are based on http://code.google.com/p/oauth/
The xml used here is derived from output of KSpread 1.6.1
Known problems:
Define and operate over one Format.
pdflib.php - Moodle PDF library
We currently use the TCPDF library by Nicola Asuni.
The default location for fonts that are included with TCPDF is lib/tcpdf/fonts/. If PDF_CUSTOM_FONT_PATH exists, this directory will be used instead of lib/tcpdf/fonts/. If there is only one font present in PDF_CUSTOM_FONT_PATH, the font is used as the default font.
See lib/tcpdf/fonts/README for details on how to convert fonts for use with TCPDF.
Example usage: $doc = new pdf; $doc->setPrintHeader(false); $doc->setPrintFooter(false); $doc->AddPage(); $doc->Write(5, 'Hello World!'); $doc->Output();
Wrapper class that extends TCPDF (lib/tcpdf/tcpdf.php). Moodle customisations are done here.
plagiarismlib.php - Contains core Plagiarism related functions.
plagiarism
use this to add a portfolio button or icon or form to a page
These class methods do not check permissions. the caller must check permissions first. Later, during the export process, the caller class is instantiated and the check_permissions method is called If you are exporting a single file, you should always call set_format_by_file($file)
This class can be used like this: $button = new portfolio_add_button(); $button->set_callback_options('name_of_caller_class', array('id' => 6), '/your/mod/lib.php'); $button->render(PORTFOLIO_ADD_FULL_FORM, get_string('addeverythingtoportfolio', 'yourmodule'));
or like this: $button = new portfolio_add_button(array('callbackclass' => 'name_of_caller_class', 'callbackargs' => array('id' => 6), 'callbackfile' => '/your/mod/lib.php')); $somehtml .= $button->to_html(PORTFOLIO_ADD_TEXT_LINK);
See http://docs.moodle.org/dev/Adding_a_Portfolio_Button_to_a_page for more information
portfolio
Code for handling and processing questions
This is code that is module independent, i.e., can be used by any module that uses questions, like quiz, lesson, .. This script also loads the questiontype classes Code for handling the editing of questions is in question/editlib.php
TODO: separate those functions which form part of the API from the helper functions.
questionbank
This is a PHP library that handles calling reCAPTCHA.
Copyright (c) 2007 reCAPTCHA -- http://www.google.com/recaptcha AUTHORS: Mike Crawford Ben Maurer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
A ReCaptchaResponse is returned from recaptcha_check_answer()
Class to hold token/value pairs after they're parsed.
This class does the heavy lifting of lexing the search string into tokens. Using a full-blown lexer is probably overkill for this application, but might be useful for other tasks.
This class takes care of sticking the proper token type/value pairs into the parsed token array. Most functions in this class should only be called by the lexer, the one exception being getParseArray() which returns the result.
This is a tiny standalone diagnostic script to test that sessions are working correctly on a given server.
Just run it from a browser. The first time you run it will set a new variable, and after that it will try to find it again. The random number is just to prevent browser caching.
add code that actually tests moodle sessions, the old one only tested PHP sessions used from installer, not the real moodle sessions
Tests for the parts of ../filterlib.php that handle creating filter objects, and using them to filter strings.
http://www.gnu.org/copyleft/gpl.html GNU Public License
Unit tests for ../portfoliolib.php.
Unit tests for (some of) ../../backup/backuplib.php.
Tests for the block_manager class in ../blocklib.php.
http://www.gnu.org/copyleft/gpl.html GNU Public License
Unit tests for /lib/componentlib.class.php.
Unit tests for ../deprecatedlib.php.
Tests for the parts of ../filterlib.php that involve loading the configuration from, and saving the configuration to, the database.
http://www.gnu.org/copyleft/gpl.html GNU Public License
Unit tests for (some of) ../gradelib.php.
Unit tests for the html_writer class.
Unit tests for (some of) ../moodlelib.php.
Note, tests for get_string are in the separate file testgetstring.php.
Unit tests for lib/navigationlib.php
Unit tests for (some of) ../outputlib.php.
Tests for the moodle_page class in ../pagelib.php.
http://www.gnu.org/copyleft/gpl.html GNU Public License
Unit tests for (some of) ../questionlib.php.
questionbank
Unit tests for ../repositorylib.php.
Unit tests for (some of) ../weblib.php.
#@-
Based on Drupal's search.module version 1.224
http://cvs.drupal.org/viewcvs/drupal/drupal/modules/search/search.module?view=markup
Usage: $tokens = tokenise_text($text) Returns an array of tokens (key) with their score (value) (see function definition for more info)
Major Contributors
This class handles all aspects of fileuploading
About validateUrlSyntax(): This function will verify if a http URL is formatted properly, returning either with true or false.
I used rfc #2396 URI: Generic Syntax as my guide when creating the regular expression. For all the details see the comments below.
Usage: validateUrlSyntax( url_to_check[, options])
url_to_check - string - The url to check
options - string - A optional string of options to set which parts of the url are required, optional, or not allowed. Each option must be followed by a "+" for required, "?" for optional, or "-" for not allowed.
s - Scheme. Allows "+?-", defaults to "s?" H - http:// Allows "+?-", defaults to "H?" S - https:// (SSL). Allows "+?-", defaults to "S?" E - mailto: (email). Allows "+?-", defaults to "E-" F - ftp:// Allows "+?-", defaults to "F-" Dependant on scheme being enabled u - User section. Allows "+?-", defaults to "u?" P - Password in user section. Allows "+?-", defaults to "P?" Dependant on user section being enabled a - Address (ip or domain). Allows "+?-", defaults to "a+" I - Ip address. Allows "+?-", defaults to "I?" If I+, then domains are disabled If I-, then domains are required Dependant on address being enabled p - Port number. Allows "+?-", defaults to "p?" f - File path. Allows "+?-", defaults to "f?" q - Query section. Allows "+?-", defaults to "q?" r - Fragment (anchor). Allows "+?-", defaults to "r?"
Paste the funtion code, or include_once() this template at the top of the page you wish to use this function.
Examples: validateUrlSyntax('http://george@www.cnn.com/#top')
validateUrlSyntax('https://games.yahoo.com:8080/board/chess.htm?move=true')
validateUrlSyntax('http://www.hotmail.com/', 's+u-I-p-q-r-')
validateUrlSyntax('/directory/file.php::top', 's-u-a-p-f+')
if (validateUrlSyntax('http://www.canowhoopass.com/', 'u-')) { echo 'URL SYNTAX IS VERIFIED'; } else { echo 'URL SYNTAX IS ILLEGAL'; }
Last Edited: December 15th 2004
Changelog: December 15th 2004 -Added new TLD's - .jobs, .mobi, .post and .travel. They are official, but not yet active.
August 31th 2004 -Fixed bug allowing empty username even when it was required -Changed and added a few options to add extra schemes -Added mailto: ftp:// and http:// options -https option was 'l' now it is 'S' (capital) -Added password option. Now passwords can be disabled while usernames are ok (for email) -IP Address option was 'i' now it is 'I' (capital) -Options are now case sensitive -Added validateEmailSyntax() and validateFtpSyntax() functions below
August 27th, 2004 -IP group range is more specific. Used to allow 0-299. Now it is 0-255 -Port range more specific. Used to allow 0-69999. Now it is 0-65535
-Fixed bug disallowing 'i-' option.
-Changed license to GPL
July 8th, 2004 -Fixed bug disallowing 'l-' option. Thanks Dr. Cheap
June 15, 2004 -Added options parameter to make it easier for people to plug the function in without needed to rework the code. -Split the example application away from the function
June 1, 2004 -Complete rewrite -Now more modular -Easier to disable sections -Easier to port to other languages -Easier to port to verify email addresses -Uses only simple regular expressions so it is more portable -Follows RFC closer for domain names. Some "play" domains may break -Renamed from 'verifyUrl()' to 'validateUrlSyntax()' -Removed extra code which added 'http://' and trailing '/' if it was missing -That code was better suited for a massaging function, not verifying -Bug fixes: -Now splits up and forces '/path?query::fragment' order -No longer requires a path when using a query or fragment
August 29, 2003 -Allowed port numbers above 9999. Now allows up to 69999
Sometime, 2002 -Added new top level domains -aero, coop, museum, name, info, biz, pro
October 5, 2000 -First Version
Intentional Limitations: -Does not verify url actually exists. Only validates the syntax -Strictly follows the RFC standards. Some urls exist in the wild which will not validate. Including ones with square brackets in the query section '[]'
Known Problems: -None at this time
Author(s): Rod Apeldoorn - rod(at)canowhoopass(dot)com
Homepage: http://www.canowhoopass.com/
Thanks!: -WEAV -Several members of Weav helped to test - http://weav.bc.ca/ -There were also a number of emails from other developers expressing thanks and suggestions. It is nice to be appreciated. Thanks!
Alternate Commercial Licenses: For information in regards to alternate licensing, contact me.
webdav_client v0.1.5, a php based webdav client class. class webdav client. a php based nearly RFC 2518 conforming client.
This class implements methods to get access to an webdav server. Most of the methods are returning boolean false on error, an integer status (http response status) on success or an array in case of a multistatus response (207) from the webdav server. Look at the code which keys are used in arrays. It's your responsibility to handle the webdav server responses in an proper manner. Please notice that all Filenames coming from or going to the webdav server should be UTF-8 encoded (see RFC 2518). This class tries to convert all you filenames into utf-8 when it's needed.
Class for creating and manipulating urls.
It can be used in moodle pages where config.php has been included without any further includes.
It is useful for manipulating urls with long lists of params. One situation where it will be useful is a page which links to itself to perform various actions and / or to process form data. A moodle_url object : can be created for a page to refer to itself with all the proper get params being passed from page call to page call and methods can be used to output a url including all the params, optionally adding and overriding params and can also be used to
See short write up here http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later A class for tabs, Some code to print tabs http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later To use this class.constructcall create (or use the 3rd param to the constructor)call update or update_full() or update() repeatedly http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Use this class from long operations where you want to output occasional information about what is going on, but don't know if, or in what format, the output should be. http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This subclass of progress_trace does not ouput anything. http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This subclass of progress_trace outputs to plain text. http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This subclass of progress_trace outputs as HTML. http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later HTML List Progress Tree http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later #@- Howard Miller, 2005 http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Return token 2011 Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later External message API message 2011 Moodle Pty Ltd (http://moodle.com) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later A page displaying the user's contacts and messages 2010 Andrew Davis http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This is the "graphical" structure of the chat mod: chat (CL,pk->id) | | | chat_messages (UL,pk->id, fk->chatid) Meaning: pk->primary key field of the table fk->foreign key to link with parent nt->nested field (recursive data) CL->course level info UL->user level info backup-moodle2 2010 onwards Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later backup-moodle2 2010 onwards Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later My Moodle -- a user's personal dashboard each user can currently have their own page (cloned from system and then customised)only the user can see their own dashboardusers can add any blocks they wantthe administrators can define a default site dashboard for users who have not created their own dashboard This script implements the user's view of the dashboard, and allows editing of the dashboard. my 2010 Remote-Learner.net Hubert Chathi <hubert@remote-learner.net> Olav Jordan <olav.jordan@remote-learner.net> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later My Moodle -- a user's personal dashboard This file contains common functions for the dashboard and profile pages. my 2010 Remote-Learner.net Hubert Chathi <hubert@remote-learner.net> Olav Jordan <olav.jordan@remote-learner.net> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later External notes API notes 2011 Moodle Pty Ltd (http://moodle.com) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later lib.php - Contains Plagiarism base class used by plugins. 2.0 plagiarism 2010 Dan Marsden http://danmarsden.com http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains the mnet services for the mahara portfolio plugin 2.0 portfolio 2010 Penny Leach http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains the class definition for the mahara portfolio plugin 2.0 portfolio 2009 Penny Leach http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file is the landing point for returning to moodle after authenticating at mahara 2.0 portfolio 2009 Penny Leach http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Shows a screen where the user can choose a question type, before being redirected to question.php questionbank 2009 Tim Hunt http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the quetsion behaviour base class questionbehaviours 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the renderer base class for question behaviours. questionbehaviours 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This script allows a teacher to create, edit and delete question categories. questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later A class for representing question categories. questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the form for editing question categories. questionbank 2007 Jamie Pratt me@jamiep.org http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Page to edit the question bank questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Functions used to show question editing interface questionbank 1999 onwards Martin Dougiamas and others http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later More object oriented wrappers around parts of the Moodle question bank. In due course, I expect that the question bank will be converted to a fully object oriented structure, at which point this file can be a starting point. questionbank 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Code for loading and saving question attempts to and from the database. A note for future reference. This code is pretty efficient but there are two potential optimisations that could be contemplated, at the cost of making the code more complex: 1. (This is the easier one, but probably not worth doing.) In the unit-of-work save method, we could get all the ids for steps due to be deleted or modified, and delete all the question_attempt_step_data for all of those steps in one query. That would save one DB query for each ->stepsupdated. However that number is 0 except when re-grading, and when regrading, there are many more inserts into question_attempt_step_data than deletes, so it is really hardly worth it. 2. A more significant optimisation would be to write an efficient $DB->insert_records($arrayofrecords) method (for example using functions like pg_copy_from) and then whenever we save stuff (unit_of_work->save and insert_questions_usage_by_activity) collect together all the records that need to be inserted into question_attempt_step_data, and insert them with a single call to $DB->insert_records. This is likely to be the biggest win. We do a lot of separate inserts into question_attempt_step_data. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This defines the core classes of the Moodle question engine. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file defines the question attempt class, and a few related classes. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file defines the question attempt step class, and a few related classes. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file defines the question usage class, and a few related classes. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Renderers for outputting parts of the question engine. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains helper classes for testing the question engine. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for some of the code in ../datalib.php. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_attempt class. Action methods like start, process_action and finish are assumed to be tested by walkthrough tests in the various behaviours. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_attempt_iterator class. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_attempt_step class. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_attempt_step_iterator class. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_bank class. questionbank 2011 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_cbm class. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_engine class. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_state class and subclasses. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_usage_by_activity class. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_utils} class. questionengine 2010 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains tests for the question_engine_unit_of_work class. questionengine 2012 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This defines the states a question can be in. questionengine 2010 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains classes for handling the different question behaviours during upgrade. questionengine 2010 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Code that deals with logging stuff during the question engine upgrade. questionengine 2010 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains test helper code for testing the upgrade to the new question engine. The acutal tests are organised by question type in files like question/type/truefalse/db/simpletest/testupgradelibnewqe.php. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains the code required to upgrade all the attempt data from old versions of Moodle into the tables used by the new question engine. questionengine 2010 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Script for importing questions into the question bank. questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the export questions form. questionbank 2007 Jamie Pratt me@jamiep.org http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the base class for question import and export formats. questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the import questions form. questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the import questions form. questionbank 2007 Jamie Pratt me@jamiep.org http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Form for moving questions between categories. questionbank 2008 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This page displays a preview of a question The preview uses the option settings from the activity within which the question is previewed or the default settings if no activity is specified. The question session information is stored in the session as an array of subsequent states rather than in the database. questionengine Alex Smith http://maths.york.ac.uk/serving_maths} and numerous contributors. http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Library functions used by question/preview.php. questionengine 2010 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Page for editing questions. questionbank 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Renderers for outputting parts of the question bank. questionbank 2011 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Unit tests for the question import and export system. questionbank 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Used by ajax calls to toggle the flagged state of a question in an attempt. questionengine 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later A base class for question editing forms. questiontypes 2006 The Open University http://www.gnu.org/copyleft/gpl.html GNU Public License Unit tests for the numerical question definition class. questiontypes 2008 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file defines the class question_definition} and its subclasses. questiontypes 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later The default questiontype class. questiontypes 1999 onwards Martin Dougiamas http://moodle.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Defines the renderer base classes for question types. questiontypes 2009 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Unit tests for the question definition base classes. questiontypes 2008 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Unit tests for the question type base class. questiontypes 2008 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains datbase upgrade code that is called from lib/db/upgrade.php, and also check methods that can be used for pre-install checks via admin/environment.php and lib/environmentlib.php. questionbank 2007 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Unit tests for rating/lib.php rating 2011 onwards Eloy Lafuente (stronk7) http://stronk7.com} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This class is used to manage repository plugins A repository_type is a repository plug-in. It can be Box.net, Flick-r, ... A repository type can be edited, sorted and hidden. It is mandatory for an administrator to create a repository type in order to be able to create some instances of this type. Coding note:a repository_type object is mapped to the "repository" database table"typename" attibut maps the "type" database field. It is unique.general "options" for a repository type are saved in the config_plugin tablewhen you delete a repository, all instances are deleted, and general options are also deleted from databaseWhen you create a type for a plugin that can't have multiple instances, a instance is automatically created. repository 2009 Jerome Mouneyrac http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This is the base class of the repository class To use repository plugin, see: http://docs.moodle.org/dev/Repository_How_to_Create_Plugin class repository is an abstract class, some functions must be implemented in subclass. See an example: repository/boxnet/lib.php A few notes: // for ajax file picker, this will print a json string to tell file picker // how to build a login form $repo->print_login(); // for ajax file picker, this will return a files list. $repo->get_listing(); // this function will be used for non-javascript version. $repo->print_listing(); // print a search box $repo->print_search(); repository 2009 Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Exception class for repository api 2.0 repository 2009 Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This is a class used to define a repository instance form 2.0 repository 2009 Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This is a class used to define a repository type setting form 2.0 repository 2009 Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'repository_recent', language 'en', branch 'MOODLE_20_STABLE' 2010 Dongsheng Cai <dongsheng@moodle.com> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later rss/file.php - entry point to serve rss streams This script simply checks the parameters to construct a $USER then finds and calls a function in the relevant component to actually check security and create the RSS stream 1999 onwards Martin Dougiamas http://moodle.com http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later locallib.php - moodle tag local library - output functions http://www.gnu.org/copyleft/gpl.html GNU Public License Configuration for Moodle's arialist theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley (http://newschoollearning.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_arialist', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's base theme. This theme is special, and implements a minimalist theme with only basic layout. It is intended as a base for other themes to build upon. It is not recommend to actually choose this theme for production sites! DO NOT COPY THIS TO START NEW THEMES! Start with another theme, like "standard". For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2009 Tim Hunt http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's nonzero theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley (http://newschoollearning.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_binarius', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's boxxie theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_boxxie', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's brick theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 John Stabinger (http://newschoollearning.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_brick', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's Canvas theme. This theme is special, and implements a minimalist theme with basic styles. It is intended to be used with Base as a starting point for other themes to build upon. It is not recommend to actually choose this theme for production sites! DO NOT COPY THIS TO START NEW THEMES! Start with another theme, like "standard". For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's nonzero theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 Mediatouch 2000 (http://mediatouch.it/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's formfactor theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_formfactor', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's fusion theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley (http://newschoollearning.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_fusion', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file is responsible for serving the one theme and plugin images. 2009 Petr Skoda (skodak) http://skodak.org} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file is responsible for serving the one huge CSS of each theme. 2009 Petr Skoda (skodak) http://skodak.org} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's leatherbound theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_leatherbound', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's nimble theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Patrick Malley (http://newschoollearning.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_nimble', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's nonzero theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2008 NodeThirtyThree (http://nodethirtythree.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_nonzero', language 'en', branch 'MOODLE_20_STABLE' 2010 Patrick Malley http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file contains the settings for the Nonzero theme. Currently you can set the following settings:Region pre widthRegion post widthSome custom CSS 2010 Dietmar Wagner http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's overlay theme. DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2008 NodeThirtyThree (http://nodethirtythree.com/) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Strings for component 'theme_overlay', language 'en', branch 'MOODLE_20_STABLE' 2010 John Stabinger http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later DO NOT MODIFY THIS THEME! COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 Configuration for Moodle's standard theme. This theme is the default theme within Moodle 2.0, it builds upon the base theme adding only CSS to create the simple look and feel Moodlers have come to recognise. For full information about creating Moodle themes, see: http://docs.moodle.org/dev/Themes_2.0 2010 Sam Hemelryk http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Configuration for Moodle's standard theme. DO NOT COPY THIS INTO NEW THEMES! Instead use some other theme as a base for your experiments. Options related to theme customisations can be found at http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html For an overview of how Moodle themes work, Please see http://docs.moodle.org/en/Developement:How_Moodle_outputs_HTML 2009 Tim Hunt http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file is responsible for serving of individual style sheets in designer mode. 2009 Petr Skoda (skodak) http://skodak.org} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later This file is responsible for serving of yui images 2009 Petr Skoda (skodak) http://skodak.org} http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later External user API webservice 2009 Moodle Pty Ltd (http://moodle.com) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later View private user files 2010 Petr Skoda (http://skodak.org) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later External user API user 2009 Moodle Pty Ltd (http://moodle.com) http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Public Profile -- a user's public profile page each user can currently have their own page (cloned from system and then customised)users can add any blocks they wantthe administrators can define a default site public profile for users who have not created their own public profile This script implements the user's view of the public profile, and allows editing of the public profile. my 2010 Remote-Learner.net Hubert Chathi <hubert@remote-learner.net> Olav Jordan <olav.jordan@remote-learner.net> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later System Public Profile. This script allows the site administrator to edit the default site profile. my 2010 Remote-Learner.net Hubert Chathi <hubert@remote-learner.net> Olav Jordan <olav.jordan@remote-learner.net> http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Accept uploading files by web service token POST params: token => the web service user token (needed for authentication) filepath => the private file aera path (where files will be stored) [_FILES] => for example you can send the files with , or with curl magic: 'file_1' => '@/path/to/file', or ...
files