mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-45618' of git://github.com/timhunt/moodle
This commit is contained in:
commit
4e8a350c35
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file is used to display a categories sub categories, external pages, and settings.
|
||||
*
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
* @package admin
|
||||
* @copyright 2011 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file contains functions used by the admin pages
|
||||
*
|
||||
* @since 2.1
|
||||
* @since Moodle 2.1
|
||||
* @package admin
|
||||
* @copyright 2011 Andrew Davis
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains the mnet services for the mnet authentication plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package auth_mnet
|
||||
* @copyright 2010 Penny Leach
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -232,7 +232,7 @@ abstract class backup_general_helper extends backup_helper {
|
||||
*
|
||||
* @param string $filepath absolute path to the MBZ file.
|
||||
* @return stdClass containing information.
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
*/
|
||||
public static function get_backup_information_from_mbz($filepath) {
|
||||
global $CFG;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_community
|
||||
* @copyright 2010 Jerome Mouneyrac
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_completionstatus
|
||||
* @copyright 2012 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_course_summary
|
||||
* @copyright 2012 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file keeps track of upgrades to the html block
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_html
|
||||
* @copyright 2010 Dongsheng Cai
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -18,7 +18,7 @@
|
||||
* This file contains classes used to manage the navigation structures in Moodle
|
||||
* and was introduced as part of the changes occuring in Moodle 2.0
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_navigation
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_navigation
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Form for editing global navigation instances.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_navigation
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file contains language strings used in the global navigation block
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_navigation
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Outputs the navigation tree.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_navigation
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
* @package block_section_links
|
||||
* @copyright 2013 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Renderer for the section links block.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
* @package block_section_links
|
||||
* @copyright 2013 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_selfcompletion
|
||||
* @copyright 2012 Mark Nelson <markn@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -18,7 +18,7 @@
|
||||
* This file contains classes used to manage the navigation structures in Moodle
|
||||
* and was introduced as part of the changes occuring in Moodle 2.0
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_settings
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Please do not forget to use upgrade_set_timeout()
|
||||
* before any action that may take longer time to finish.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_settings
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Form for editing settings navigation instances.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_settings
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file contains language strings used in the settings navigation block
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package block_settings
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
4
cache/classes/definition.php
vendored
4
cache/classes/definition.php
vendored
@ -205,7 +205,7 @@ class cache_definition {
|
||||
|
||||
/**
|
||||
* Gets set to true if this definition requires searchable stores.
|
||||
* @since 2.4.4
|
||||
* @since Moodle 2.4.4
|
||||
* @var bool
|
||||
*/
|
||||
protected $requiresearchable = false;
|
||||
@ -734,7 +734,7 @@ class cache_definition {
|
||||
|
||||
/**
|
||||
* Returns true if this definition requires a searchable cache.
|
||||
* @since 2.4.4
|
||||
* @since Moodle 2.4.4
|
||||
* @return bool
|
||||
*/
|
||||
public function require_searchable() {
|
||||
|
2
cache/classes/factory.php
vendored
2
cache/classes/factory.php
vendored
@ -309,7 +309,7 @@ class cache_factory {
|
||||
|
||||
/**
|
||||
* Returns the cache instances that have been used within this request.
|
||||
* @since 2.6
|
||||
* @since Moodle 2.6
|
||||
* @return array
|
||||
*/
|
||||
public function get_caches_in_use() {
|
||||
|
2
cache/classes/interfaces.php
vendored
2
cache/classes/interfaces.php
vendored
@ -344,7 +344,7 @@ interface cache_is_key_aware {
|
||||
* Cache stores can choose to implement this interface.
|
||||
* In order for a store to be usable as a session cache it must implement this interface.
|
||||
*
|
||||
* @since 2.4.4
|
||||
* @since Moodle 2.4.4
|
||||
*/
|
||||
interface cache_is_searchable {
|
||||
/**
|
||||
|
4
cache/classes/loaders.php
vendored
4
cache/classes/loaders.php
vendored
@ -892,7 +892,7 @@ class cache implements cache_loader {
|
||||
/**
|
||||
* Returns the loader associated with this instance.
|
||||
*
|
||||
* @since 2.4.4
|
||||
* @since Moodle 2.4.4
|
||||
* @return cache|false
|
||||
*/
|
||||
protected function get_loader() {
|
||||
@ -902,7 +902,7 @@ class cache implements cache_loader {
|
||||
/**
|
||||
* Returns the data source associated with this cache.
|
||||
*
|
||||
* @since 2.4.4
|
||||
* @since Moodle 2.4.4
|
||||
* @return cache_data_source|false
|
||||
*/
|
||||
protected function get_datasource() {
|
||||
|
6
cache/classes/store.php
vendored
6
cache/classes/store.php
vendored
@ -87,7 +87,7 @@ interface cache_store_interface {
|
||||
* All cache store plugins must extend this base class.
|
||||
* It lays down the foundation for what is required of a cache store plugin.
|
||||
*
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
* @package core
|
||||
* @category cache
|
||||
* @copyright 2012 Sam Hemelryk
|
||||
@ -256,7 +256,7 @@ abstract class cache_store implements cache_store_interface {
|
||||
/**
|
||||
* Performs any necessary operation when the store instance has been created.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public function instance_created() {
|
||||
// By default, do nothing.
|
||||
@ -267,7 +267,7 @@ abstract class cache_store implements cache_store_interface {
|
||||
*
|
||||
* This method may be called before the store has been initialised.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
* @see cleanup()
|
||||
*/
|
||||
public function instance_deleted() {
|
||||
|
@ -269,7 +269,7 @@ abstract class format_base {
|
||||
* So if 'Return to course' does not make sense in your format your should probably return false.
|
||||
*
|
||||
* @return boolean
|
||||
* @since 2.6
|
||||
* @since Moodle 2.6
|
||||
*/
|
||||
public function has_view_page() {
|
||||
return true;
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains main class for the course format Social
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package format_social
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains main class for the course format Topic
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package format_topics
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains main class for the course format Weeks
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package format_weeks
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -1645,7 +1645,7 @@ function set_coursemodule_visible($id, $visible) {
|
||||
* event to the DB.
|
||||
*
|
||||
* @param int $cmid the course module id
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
function course_delete_module($cmid) {
|
||||
global $CFG, $DB;
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file contains functions used by course reports
|
||||
*
|
||||
* @since 2.1
|
||||
* @since Moodle 2.1
|
||||
* @package coursereport
|
||||
* @copyright 2011 Andrew Davis
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -23,7 +23,7 @@
|
||||
* The reason that we created this file was so that user didn't get redirected back
|
||||
* to the course view page only to be redirected again.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package course
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -20,7 +20,7 @@
|
||||
* If we rewrite MNet as proposed in MDL-21993 this file would contain
|
||||
* just a declaration of xml-rpc methods that this plugin publishes.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package enrol_mnet
|
||||
* @copyright 2010 Penny Leach
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -1269,7 +1269,7 @@ function reload_all_capabilities() {
|
||||
* Useful for the "temporary guest" access we grant to logged-in users.
|
||||
* This is useful for enrol plugins only.
|
||||
*
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
* @param context_course $coursecontext
|
||||
* @param int $roleid
|
||||
* @return void
|
||||
@ -1309,7 +1309,7 @@ function load_temp_course_role(context_course $coursecontext, $roleid) {
|
||||
* Removes any extra guest roles from current USER->access array.
|
||||
* This is useful for enrol plugins only.
|
||||
*
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
* @param context_course $coursecontext
|
||||
* @return void
|
||||
*/
|
||||
@ -4975,7 +4975,7 @@ function role_change_permission($roleid, $context, $capname, $permission) {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*
|
||||
* @property-read int $id context id
|
||||
* @property-read int $contextlevel CONTEXT_SYSTEM, CONTEXT_COURSE, etc.
|
||||
@ -5786,7 +5786,7 @@ abstract class context extends stdClass implements IteratorAggregate {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_helper extends context {
|
||||
|
||||
@ -6062,7 +6062,7 @@ class context_helper extends context {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_system extends context {
|
||||
/**
|
||||
@ -6303,7 +6303,7 @@ class context_system extends context {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_user extends context {
|
||||
/**
|
||||
@ -6487,7 +6487,7 @@ class context_user extends context {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_coursecat extends context {
|
||||
/**
|
||||
@ -6716,7 +6716,7 @@ class context_coursecat extends context {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_course extends context {
|
||||
/**
|
||||
@ -6935,7 +6935,7 @@ class context_course extends context {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_module extends context {
|
||||
/**
|
||||
@ -7174,7 +7174,7 @@ class context_module extends context {
|
||||
* @category access
|
||||
* @copyright Petr Skoda {@link http://skodak.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.2
|
||||
* @since Moodle 2.2
|
||||
*/
|
||||
class context_block extends context {
|
||||
/**
|
||||
|
@ -19,7 +19,7 @@
|
||||
* This file is used to deliver a branch from the navigation structure
|
||||
* in XML format back to a page from an AJAX call
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -19,7 +19,7 @@
|
||||
* This file is used to deliver a branch from the site administration
|
||||
* in XML format back to a page from an AJAX call
|
||||
*
|
||||
* @since 2.6
|
||||
* @since Moodle 2.6
|
||||
* @package core
|
||||
* @copyright 2013 Rajesh Taneja <rajesh@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -518,7 +518,7 @@ class auth_plugin_base {
|
||||
* authentication method manually is allowed.
|
||||
*
|
||||
* @return bool
|
||||
* @since 2.6
|
||||
* @since Moodle 2.6
|
||||
*/
|
||||
function can_be_manually_set() {
|
||||
// Override if needed.
|
||||
|
@ -256,7 +256,7 @@ class core_text {
|
||||
* @param string $needle The string to find in haystack.
|
||||
* @param boolean $part If true, returns the portion before needle, else return the portion after (including needle).
|
||||
* @return string|false False when not found.
|
||||
* @since 2.4.6, 2.5.2, 2.6
|
||||
* @since Moodle 2.4.6, 2.5.2, 2.6
|
||||
*/
|
||||
public static function strrchr($haystack, $needle, $part = false) {
|
||||
|
||||
|
@ -1617,7 +1617,7 @@ abstract class moodle_database {
|
||||
* This method is intended for inserting of large number of small objects,
|
||||
* do not use for huge objects with text or binary fields.
|
||||
*
|
||||
* @since 2.7
|
||||
* @since Moodle 2.7
|
||||
*
|
||||
* @param string $table The database table to be inserted into
|
||||
* @param array|Traversable $dataobjects list of objects to be inserted, must be compatible with foreach
|
||||
@ -2229,7 +2229,7 @@ abstract class moodle_database {
|
||||
/**
|
||||
* Does this driver support tool_replace?
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @since Moodle 2.6.1
|
||||
* @return bool
|
||||
*/
|
||||
public function replace_all_text_supported() {
|
||||
@ -2239,7 +2239,7 @@ abstract class moodle_database {
|
||||
/**
|
||||
* Replace given text in all rows of column.
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @since Moodle 2.6.1
|
||||
* @param string $table name of the table
|
||||
* @param database_column_info $column
|
||||
* @param string $search
|
||||
|
@ -1266,7 +1266,7 @@ s only returning name of SQL substring function, it now requires all parameters.
|
||||
/**
|
||||
* Does this driver support tool_replace?
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @since Moodle 2.6.1
|
||||
* @return bool
|
||||
*/
|
||||
public function replace_all_text_supported() {
|
||||
|
@ -1153,7 +1153,7 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
* This method is intended for inserting of large number of small objects,
|
||||
* do not use for huge objects with text or binary fields.
|
||||
*
|
||||
* @since 2.7
|
||||
* @since Moodle 2.7
|
||||
*
|
||||
* @param string $table The database table to be inserted into
|
||||
* @param array|Traversable $dataobjects list of objects to be inserted, must be compatible with foreach
|
||||
@ -1535,7 +1535,7 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
/**
|
||||
* Does this driver support tool_replace?
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @since Moodle 2.6.1
|
||||
* @return bool
|
||||
*/
|
||||
public function replace_all_text_supported() {
|
||||
|
@ -950,7 +950,7 @@ class pgsql_native_moodle_database extends moodle_database {
|
||||
* This method is intended for inserting of large number of small objects,
|
||||
* do not use for huge objects with text or binary fields.
|
||||
*
|
||||
* @since 2.7
|
||||
* @since Moodle 2.7
|
||||
*
|
||||
* @param string $table The database table to be inserted into
|
||||
* @param array|Traversable $dataobjects list of objects to be inserted, must be compatible with foreach
|
||||
@ -1345,7 +1345,7 @@ class pgsql_native_moodle_database extends moodle_database {
|
||||
/**
|
||||
* Does this driver support tool_replace?
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @since Moodle 2.6.1
|
||||
* @return bool
|
||||
*/
|
||||
public function replace_all_text_supported() {
|
||||
|
@ -1333,7 +1333,7 @@ class sqlsrv_native_moodle_database extends moodle_database {
|
||||
/**
|
||||
* Does this driver support tool_replace?
|
||||
*
|
||||
* @since 2.6.1
|
||||
* @since Moodle 2.6.1
|
||||
* @return bool
|
||||
*/
|
||||
public function replace_all_text_supported() {
|
||||
|
2
lib/external/externallib.php
vendored
2
lib/external/externallib.php
vendored
@ -45,7 +45,7 @@ class core_external extends external_api {
|
||||
*
|
||||
* @param array $stringparams
|
||||
* @return object|string
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
*/
|
||||
public static function format_string_parameters($stringparams) {
|
||||
// Check if there are some string params.
|
||||
|
@ -694,7 +694,7 @@ class external_format_value extends external_value {
|
||||
* @param array $format the format to validate
|
||||
* @return the validated format
|
||||
* @throws coding_exception
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
*/
|
||||
function external_validate_format($format) {
|
||||
$allowedformats = array(FORMAT_HTML, FORMAT_MOODLE, FORMAT_PLAIN, FORMAT_MARKDOWN);
|
||||
|
@ -541,7 +541,7 @@ function file_get_draft_area_info($draftitemid, $filepath = '/') {
|
||||
* @param int $newfilesize the size that would be added to the current area.
|
||||
* @param bool $includereferences true to include the size of the references in the area size.
|
||||
* @return bool true if the area will/has exceeded its limit.
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
*/
|
||||
function file_is_draft_area_limit_reached($draftitemid, $areamaxbytes, $newfilesize = 0, $includereferences = false) {
|
||||
if ($areamaxbytes != FILE_AREA_MAX_BYTES_UNLIMITED) {
|
||||
|
@ -199,7 +199,7 @@ class file_storage {
|
||||
* @param string $filename the file name.
|
||||
* @return string available file name.
|
||||
* @throws coding_exception if the file name is invalid.
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public function get_unused_filename($contextid, $component, $filearea, $itemid, $filepath, $filename) {
|
||||
global $DB;
|
||||
@ -280,7 +280,7 @@ class file_storage {
|
||||
* @param int $itemid area item ID.
|
||||
* @param string $suggestedpath the suggested file path.
|
||||
* @return string available file path
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public function get_unused_dirname($contextid, $component, $filearea, $itemid, $suggestedpath) {
|
||||
global $DB;
|
||||
|
@ -247,7 +247,7 @@ class filter_manager {
|
||||
*
|
||||
* @param moodle_page $page the page we are going to add requirements to.
|
||||
* @param context $context the context which contents are going to be filtered.
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
*/
|
||||
public function setup_page_for_filters($page, $context) {
|
||||
$filters = $this->get_text_filters($context);
|
||||
@ -409,7 +409,7 @@ abstract class moodle_text_filter {
|
||||
*
|
||||
* @param moodle_page $page the page we are going to add requirements to.
|
||||
* @param context $context the context which contents are going to be filtered.
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
*/
|
||||
public function setup($page, $context) {
|
||||
// Override me, if needed.
|
||||
|
@ -67,7 +67,7 @@ class MoodleQuickForm_text extends HTML_QuickForm_text{
|
||||
/**
|
||||
* Freeze the element so that only its value is returned and set persistantfreeze to false
|
||||
*
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@ -81,7 +81,7 @@ class MoodleQuickForm_text extends HTML_QuickForm_text{
|
||||
/**
|
||||
* Returns the html to be used when the element is frozen
|
||||
*
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
* @return string Frozen html
|
||||
*/
|
||||
function getFrozenHtml()
|
||||
|
@ -183,7 +183,7 @@ class moodle_google_curlio extends Google_CurlIO {
|
||||
* @param int $constant value of a CURL constant.
|
||||
* @return string name of the constant if found, or throws exception.
|
||||
* @throws coding_exception when the constant is not found.
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public function get_option_name_from_constant($constant) {
|
||||
if (is_null(self::$constants)) {
|
||||
|
@ -1455,7 +1455,7 @@ function grade_floats_different($f1, $f2) {
|
||||
* Do not use rounding for 10,5 at the database level as the results may be
|
||||
* different from php round() function.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @param float $f1 Float one to compare
|
||||
* @param float $f2 Float two to compare
|
||||
* @return bool True if the values should be considered as the same grades
|
||||
|
@ -19,7 +19,7 @@
|
||||
/**
|
||||
* A namespace contains license specific functions
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core
|
||||
* @subpackage lib
|
||||
* @copyright 2010 Dongsheng Cai <dongsheng@moodle.com>
|
||||
|
@ -2174,7 +2174,7 @@ function userdate($date, $format = '', $timezone = 99, $fixday = true, $fixhour
|
||||
* @param string $format strftime format.
|
||||
* @param int|float $tz the numerical timezone, typically returned by {@link get_user_timezone_offset()}.
|
||||
* @return string the formatted date/time.
|
||||
* @since 2.3.3
|
||||
* @since Moodle 2.3.3
|
||||
*/
|
||||
function date_format_string($date, $format, $tz = 99) {
|
||||
global $CFG;
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains classes used to manage the navigation structures within Moodle.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -697,7 +697,7 @@ class navigation_node implements renderable {
|
||||
/**
|
||||
* Hides the node and any children it has.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
* @param array $typestohide Optional. An array of node types that should be hidden.
|
||||
* If null all nodes will be hidden.
|
||||
* If an array is given then nodes will only be hidden if their type mtatches an element in the array.
|
||||
@ -1323,7 +1323,7 @@ class global_navigation extends navigation_node {
|
||||
* other user being viewed this function returns false.
|
||||
* In order to set the user for whom we are checking against you must call {@link set_userid_for_parent_checks()}
|
||||
*
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
* @return bool
|
||||
*/
|
||||
protected function current_user_is_parent_role() {
|
||||
|
@ -3224,7 +3224,7 @@ EOD;
|
||||
/**
|
||||
* Get the HTML for blocks in the given region.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param string $region The region to get HTML for.
|
||||
* @return string HTML.
|
||||
*/
|
||||
@ -3271,7 +3271,7 @@ EOD;
|
||||
/**
|
||||
* Returns the CSS classes to apply to the body tag.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param array $additionalclasses Any additional classes to apply.
|
||||
* @return string
|
||||
*/
|
||||
@ -3301,7 +3301,7 @@ EOD;
|
||||
/**
|
||||
* The ID attribute to apply to the body tag.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @return string
|
||||
*/
|
||||
public function body_id() {
|
||||
@ -3311,7 +3311,7 @@ EOD;
|
||||
/**
|
||||
* Returns HTML attributes to use within the body tag. This includes an ID and classes.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param string|array $additionalclasses Any additional classes to give the body tag,
|
||||
* @return string
|
||||
*/
|
||||
@ -3325,7 +3325,7 @@ EOD;
|
||||
/**
|
||||
* Gets HTML for the page heading.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param string $tag The tag to encase the heading in. h1 by default.
|
||||
* @return string HTML.
|
||||
*/
|
||||
@ -3336,7 +3336,7 @@ EOD;
|
||||
/**
|
||||
* Gets the HTML for the page heading button.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @return string HTML.
|
||||
*/
|
||||
public function page_heading_button() {
|
||||
@ -3346,7 +3346,7 @@ EOD;
|
||||
/**
|
||||
* Returns the Moodle docs link to use for this page.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param string $text
|
||||
* @return string
|
||||
*/
|
||||
@ -3364,7 +3364,7 @@ EOD;
|
||||
/**
|
||||
* Returns the page heading menu.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @return string HTML.
|
||||
*/
|
||||
public function page_heading_menu() {
|
||||
@ -3374,7 +3374,7 @@ EOD;
|
||||
/**
|
||||
* Returns the title to use on the page.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @return string
|
||||
*/
|
||||
public function page_title() {
|
||||
@ -3384,7 +3384,7 @@ EOD;
|
||||
/**
|
||||
* Returns the URL for the favicon.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @return string The favicon URL
|
||||
*/
|
||||
public function favicon() {
|
||||
@ -3853,7 +3853,7 @@ class core_media_renderer extends plugin_renderer_base {
|
||||
* is running a maintenance related task.
|
||||
* It must always extend the core_renderer as we switch from the core_renderer to this renderer in a couple of places.
|
||||
*
|
||||
* @since 2.6
|
||||
* @since Moodle 2.6
|
||||
* @package core
|
||||
* @category output
|
||||
* @copyright 2013 Sam Hemelryk
|
||||
|
@ -642,7 +642,7 @@ class moodle_page {
|
||||
/**
|
||||
* Returns an array of minipulations or false if there are none to make.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @return bool|array
|
||||
*/
|
||||
protected function magic_get_blockmanipulations() {
|
||||
@ -1906,7 +1906,7 @@ class moodle_page {
|
||||
/**
|
||||
* Returns the block region having made any required theme manipulations.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param string $region
|
||||
* @return string
|
||||
*/
|
||||
|
@ -134,7 +134,7 @@ class pdf extends TCPDF {
|
||||
* @param $name (string) The name of the file when saved. Note that special characters are removed and blanks characters are replaced with the underscore character.
|
||||
* @param $dest (string) Destination where to send the document. It can take one of the following values:<ul><li>I: send the file inline to the browser (default). The plug-in is used if available. The name given by name is used when one selects the "Save as" option on the link generating the PDF.</li><li>D: send to the browser and force a file download with the name given by name.</li><li>F: save to a local server file with the name given by name.</li><li>S: return the document as a string (name is ignored).</li><li>FI: equivalent to F + I option</li><li>FD: equivalent to F + D option</li><li>E: return the document as base64 mime multi-part email attachment (RFC 2045)</li></ul>
|
||||
* @public
|
||||
* @since 1.0
|
||||
* @since Moodle 1.0
|
||||
* @see Close()
|
||||
*/
|
||||
public function Output($name='doc.pdf', $dest='I') {
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* plagiarismlib.php - Contains core Plagiarism related functions.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package moodlecore
|
||||
* @subpackage plagiarism
|
||||
* @copyright 2010 Dan Marsden http://danmarsden.com
|
||||
|
@ -588,7 +588,7 @@ EOD;
|
||||
* @param array|stdClass $record data to use to up set the instance.
|
||||
* @param array $options options
|
||||
* @return stdClass repository instance record
|
||||
* @since 2.5.1
|
||||
* @since Moodle 2.5.1
|
||||
*/
|
||||
public function create_repository($type, $record=null, array $options = null) {
|
||||
$generator = $this->get_plugin_generator('repository_'.$type);
|
||||
@ -602,7 +602,7 @@ EOD;
|
||||
* @param array|stdClass $record data to use to up set the instance.
|
||||
* @param array $options options
|
||||
* @return repository_type object
|
||||
* @since 2.5.1
|
||||
* @since Moodle 2.5.1
|
||||
*/
|
||||
public function create_repository_type($type, $record=null, array $options = null) {
|
||||
$generator = $this->get_plugin_generator('repository_'.$type);
|
||||
|
@ -32,7 +32,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @category test
|
||||
* @copyright 2013 Frédéric Massart
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since 2.5.1
|
||||
* @since Moodle 2.5.1
|
||||
*/
|
||||
class testing_repository_generator extends component_generator_base {
|
||||
|
||||
|
@ -1999,7 +1999,7 @@ function upgrade_save_orphaned_questions() {
|
||||
* @see backup_cron_automated_helper::remove_excess_backups()
|
||||
* @link http://tracker.moodle.org/browse/MDL-35116
|
||||
* @return void
|
||||
* @since 2.4
|
||||
* @since Moodle 2.4
|
||||
*/
|
||||
function upgrade_rename_old_backup_files_using_shortname() {
|
||||
global $CFG;
|
||||
|
@ -973,7 +973,7 @@ function page_doc_link($text='') {
|
||||
/**
|
||||
* Returns the path to use when constructing a link to the docs.
|
||||
*
|
||||
* @since 2.5.1 2.6
|
||||
* @since Moodle 2.5.1 2.6
|
||||
* @param moodle_page $page
|
||||
* @return string
|
||||
*/
|
||||
|
@ -189,7 +189,7 @@ class core_message_external extends external_api {
|
||||
* Create contacts parameters description.
|
||||
*
|
||||
* @return external_function_parameters
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function create_contacts_parameters() {
|
||||
return new external_function_parameters(
|
||||
@ -207,7 +207,7 @@ class core_message_external extends external_api {
|
||||
*
|
||||
* @param array $userids array of user IDs.
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function create_contacts($userids) {
|
||||
$params = array('userids' => $userids);
|
||||
@ -231,7 +231,7 @@ class core_message_external extends external_api {
|
||||
* Create contacts return description.
|
||||
*
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function create_contacts_returns() {
|
||||
return new external_warnings();
|
||||
@ -241,7 +241,7 @@ class core_message_external extends external_api {
|
||||
* Delete contacts parameters description.
|
||||
*
|
||||
* @return external_function_parameters
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function delete_contacts_parameters() {
|
||||
return new external_function_parameters(
|
||||
@ -259,7 +259,7 @@ class core_message_external extends external_api {
|
||||
*
|
||||
* @param array $userids array of user IDs.
|
||||
* @return null
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function delete_contacts($userids) {
|
||||
$params = array('userids' => $userids);
|
||||
@ -276,7 +276,7 @@ class core_message_external extends external_api {
|
||||
* Delete contacts return description.
|
||||
*
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function delete_contacts_returns() {
|
||||
return null;
|
||||
@ -286,7 +286,7 @@ class core_message_external extends external_api {
|
||||
* Block contacts parameters description.
|
||||
*
|
||||
* @return external_function_parameters
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function block_contacts_parameters() {
|
||||
return new external_function_parameters(
|
||||
@ -304,7 +304,7 @@ class core_message_external extends external_api {
|
||||
*
|
||||
* @param array $userids array of user IDs.
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function block_contacts($userids) {
|
||||
$params = array('userids' => $userids);
|
||||
@ -328,7 +328,7 @@ class core_message_external extends external_api {
|
||||
* Block contacts return description.
|
||||
*
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function block_contacts_returns() {
|
||||
return new external_warnings();
|
||||
@ -338,7 +338,7 @@ class core_message_external extends external_api {
|
||||
* Unblock contacts parameters description.
|
||||
*
|
||||
* @return external_function_parameters
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function unblock_contacts_parameters() {
|
||||
return new external_function_parameters(
|
||||
@ -356,7 +356,7 @@ class core_message_external extends external_api {
|
||||
*
|
||||
* @param array $userids array of user IDs.
|
||||
* @return null
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function unblock_contacts($userids) {
|
||||
$params = array('userids' => $userids);
|
||||
@ -373,7 +373,7 @@ class core_message_external extends external_api {
|
||||
* Unblock contacts return description.
|
||||
*
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function unblock_contacts_returns() {
|
||||
return null;
|
||||
@ -383,7 +383,7 @@ class core_message_external extends external_api {
|
||||
* Get contacts parameters description.
|
||||
*
|
||||
* @return external_function_parameters
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function get_contacts_parameters() {
|
||||
return new external_function_parameters(array());
|
||||
@ -394,7 +394,7 @@ class core_message_external extends external_api {
|
||||
*
|
||||
* @param array $userids array of user IDs.
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function get_contacts() {
|
||||
global $CFG;
|
||||
@ -427,7 +427,7 @@ class core_message_external extends external_api {
|
||||
* Get contacts return description.
|
||||
*
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function get_contacts_returns() {
|
||||
return new external_single_structure(
|
||||
@ -476,7 +476,7 @@ class core_message_external extends external_api {
|
||||
* Search contacts parameters description.
|
||||
*
|
||||
* @return external_function_parameters
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function search_contacts_parameters() {
|
||||
return new external_function_parameters(
|
||||
@ -494,7 +494,7 @@ class core_message_external extends external_api {
|
||||
* @param string $searchtext query string.
|
||||
* @param bool $onlymycourses limit the search to the user's courses only.
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function search_contacts($searchtext, $onlymycourses = false) {
|
||||
global $CFG, $USER;
|
||||
@ -553,7 +553,7 @@ class core_message_external extends external_api {
|
||||
* Search contacts return description.
|
||||
*
|
||||
* @return external_description
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public static function search_contacts_returns() {
|
||||
return new external_multiple_structure(
|
||||
|
@ -663,7 +663,7 @@ function chat_update_chat_times($chatid=0) {
|
||||
* @param bool $system False for non-system messages, true for system messages.
|
||||
* @param object $cm The course module object, pass it to save a database query when we trigger the event.
|
||||
* @return int The message ID.
|
||||
* @since 2.6
|
||||
* @since Moodle 2.6
|
||||
*/
|
||||
function chat_send_chatmessage($chatuser, $messagetext, $system = false, $cm = null) {
|
||||
global $DB;
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* lib.php - Contains Plagiarism base class used by plugins.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package moodlecore
|
||||
* @subpackage plagiarism
|
||||
* @copyright 2010 Dan Marsden http://danmarsden.com
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file contains the mnet services for the mahara portfolio plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package moodlecore
|
||||
* @subpackage portfolio
|
||||
* @copyright 2010 Penny Leach
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file contains the class definition for the mahara portfolio plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package moodlecore
|
||||
* @subpackage portfolio
|
||||
* @copyright 2009 Penny Leach
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This file is the landing point for returning to moodle after authenticating at mahara
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package moodlecore
|
||||
* @subpackage portfolio
|
||||
* @copyright 2009 Penny Leach
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains the version information for the mahara portfolio plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package portfolio
|
||||
* @subpackage mahara
|
||||
* @copyright 2009 Penny Leach
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_calculated
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_calculatedmulti
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_calculatedsimple
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_essay
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_match
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_multichoice
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_numerical
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_randomsamatch
|
||||
* @copyright 2013 Jean-Michel Vedrine
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_shortanswer
|
||||
* @copyright Dongsheng Cai <dongsheng@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Serve question type files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package qtype_truefalse
|
||||
* @copyright 2010 The Open Unviersity
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access alfresco repository
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_alfresco
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -28,7 +28,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
||||
* repository_alfresco class
|
||||
* This is a class used to browse files from alfresco
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_alfresco
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access box.net repository
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_boxnet
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -28,7 +28,7 @@ require_once($CFG->libdir . '/boxlib.php');
|
||||
/**
|
||||
* repository_boxnet class implements box.net client
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_boxnet
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access coursefiles repository
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_coursefiles
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -27,7 +27,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
||||
/**
|
||||
* repository_coursefiles class is used to browse course files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_coursefiles
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -25,7 +25,7 @@
|
||||
/**
|
||||
* This file is used to manage draft files in non-javascript browsers
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core
|
||||
* @subpackage repository
|
||||
* @copyright 2010 Dongsheng Cai <dongsheng@moodle.com>
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access user's dropbox files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_dropbox
|
||||
* @copyright 2012 Marina Glancy
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* A helper class to access dropbox resources
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_dropbox
|
||||
* @copyright 2012 Marina Glancy
|
||||
* @copyright 2010 Dongsheng Cai
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Callback for equella repository.
|
||||
*
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
* @package repository_equella
|
||||
* @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access equella repositories.
|
||||
*
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
* @package repository_equella
|
||||
* @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -30,7 +30,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
||||
/**
|
||||
* repository_equella class implements equella_client
|
||||
*
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
* @package repository_equella
|
||||
* @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* Version information for equella repository.
|
||||
*
|
||||
* @since 2.3
|
||||
* @since Moodle 2.3
|
||||
* @package repository_equella
|
||||
* @copyright 2012 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -19,7 +19,7 @@
|
||||
/**
|
||||
* This file is used to browse repositories in non-javascript mode
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core
|
||||
* @subpackage repository
|
||||
* @copyright 2009 Dongsheng Cai <dongsheng@moodle.com>
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access files on server file system
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_filesystem
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access flickr pictures
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_flickr
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -28,7 +28,7 @@ require_once($CFG->libdir.'/flickrlib.php');
|
||||
/**
|
||||
* This plugin is used to access user's private flickr repository
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_flickr
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access flickr pictures
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_flickr_public
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -32,7 +32,7 @@ require_once(dirname(__FILE__) . '/image.php');
|
||||
* You can set up a public account in admin page, so everyone can access
|
||||
* flickr photos from this plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_flickr_public
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access Google Drive.
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_googledocs
|
||||
* @copyright 2009 Dan Poltawski <talktodan@gmail.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -32,7 +32,7 @@ require_once($CFG->libdir . '/google/contrib/Google_DriveService.php');
|
||||
/**
|
||||
* Google Docs Plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_googledocs
|
||||
* @copyright 2009 Dan Poltawski <talktodan@gmail.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This file contains classes used to manage the repository plugins in Moodle
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core_repository
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -659,7 +659,7 @@ abstract class repository implements cacheable_object {
|
||||
* Returns the type name of the repository.
|
||||
*
|
||||
* @return string type name of the repository.
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public function get_typename() {
|
||||
if (empty($this->typename)) {
|
||||
@ -1868,7 +1868,7 @@ abstract class repository implements cacheable_object {
|
||||
* can be edited.
|
||||
*
|
||||
* @return bool true if the user can edit the instance.
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public final function can_be_edited_by_user() {
|
||||
global $USER;
|
||||
@ -1925,7 +1925,7 @@ abstract class repository implements cacheable_object {
|
||||
* the user instances will be protected when they need to.
|
||||
*
|
||||
* @return boolean True when the repository accesses private external data.
|
||||
* @since 2.5
|
||||
* @since Moodle 2.5
|
||||
*/
|
||||
public function contains_private_data() {
|
||||
return true;
|
||||
@ -2219,7 +2219,7 @@ abstract class repository implements cacheable_object {
|
||||
*
|
||||
* @param array $breadcrumb contains each element of the breadcrumb.
|
||||
* @return array of breadcrumb elements.
|
||||
* @since 2.3.3
|
||||
* @since Moodle 2.3.3
|
||||
*/
|
||||
protected static function prepare_breadcrumb($breadcrumb) {
|
||||
global $OUTPUT;
|
||||
@ -2240,7 +2240,7 @@ abstract class repository implements cacheable_object {
|
||||
*
|
||||
* @param array $list of files and folders.
|
||||
* @return array of files and folders.
|
||||
* @since 2.3.3
|
||||
* @since Moodle 2.3.3
|
||||
*/
|
||||
protected static function prepare_list($list) {
|
||||
global $OUTPUT;
|
||||
@ -2958,7 +2958,7 @@ abstract class repository implements cacheable_object {
|
||||
/**
|
||||
* Exception class for repository api
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core_repository
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -2969,7 +2969,7 @@ class repository_exception extends moodle_exception {
|
||||
/**
|
||||
* This is a class used to define a repository instance form
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core_repository
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -3089,7 +3089,7 @@ final class repository_instance_form extends moodleform {
|
||||
/**
|
||||
* This is a class used to define a repository type setting form
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core_repository
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access local files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_local
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -27,7 +27,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
||||
/**
|
||||
* repository_local class is used to browse moodle files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_local
|
||||
* @copyright 2012 Marina Glancy
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
|
@ -19,7 +19,7 @@
|
||||
/**
|
||||
* This file is used to manage repositories
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package core
|
||||
* @subpackage repository
|
||||
* @copyright 2009 Dongsheng Cai <dongsheng@moodle.com>
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access merlot files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_merlot
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -27,7 +27,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
||||
/**
|
||||
* repository_merlot is used to search merlot.org in moodle
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_merlot
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -17,7 +17,7 @@
|
||||
/**
|
||||
* This plugin is used to access picasa pictures
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_picasa
|
||||
* @copyright 2009 Dan Poltawski <talktodan@gmail.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -28,7 +28,7 @@ require_once($CFG->libdir.'/googleapi.php');
|
||||
/**
|
||||
* Picasa Repository Plugin
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository
|
||||
* @subpackage picasa
|
||||
* @copyright 2009 Dan Poltawski
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* This plugin is used to access recent used files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_recent
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -28,7 +28,7 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
||||
/**
|
||||
* repository_recent class is used to browse recent used files
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository_recent
|
||||
* @copyright 2010 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
@ -18,7 +18,7 @@
|
||||
/**
|
||||
* The Web service script that is called from the filepicker front end
|
||||
*
|
||||
* @since 2.0
|
||||
* @since Moodle 2.0
|
||||
* @package repository
|
||||
* @copyright 2009 Dongsheng Cai {@link http://dongsheng.org}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user