defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_assignmentupgrade';
-$plugin->dependencies = array('mod_assign' => 2015111000);
+$plugin->dependencies = array('mod_assign' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_availabilityconditions';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_behat'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_capability'; // Full name of the plugin (used for diagnostics).
$string['acohortroleassignmentssaved'] = '{$a} cohort role assignments were saved.';
$string['assign'] = 'Assign';
-$string['assignroletocohort'] = 'Assign role to users in the context of all members of these cohorts';
-$string['backgroundsync'] = 'Note: Roles assigned on this page will not take affect immediately, the changes to role assignments will be made by a background task.';
+$string['assignroletocohort'] = 'Assign user-context roles to all cohort members';
+$string['backgroundsync'] = 'Note: New cohort role assignments will not take effect immediately. Role assignment changes will be made by a scheduled task.';
$string['cohortroleassignmentremoved'] = 'The cohort role assignment was removed.';
$string['cohortroleassignmentnotremoved'] = 'The cohort role assignment was not removed.';
$string['cohortroles'] = 'Cohort roles';
$string['existingcohortroles'] = 'Existing cohort role assignments';
-$string['managecohortroles'] = 'Assign user roles for entire cohort';
-$string['noassignableroles'] = 'No roles can be assigned at a user context level. <a href="../../roles/manage.php">Manage roles</a>';
+$string['managecohortroles'] = 'Assign user roles to cohort';
+$string['noassignableroles'] = 'There are currently no roles that can be assigned in the user context. <a href="../../roles/manage.php">Manage roles</a>';
$string['nocohortroleassignmentssaved'] = 'No cohort role assignments were saved.';
$string['onecohortroleassignmentsaved'] = 'One cohort role assignment was saved.';
$string['pluginname'] = 'Cohort roles management';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111018; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2014110400; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_cohortroles'; // Full name of the plugin (used for diagnostics).
$plugin->dependencies = array(
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_customlang'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_dbtransfer'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_filetypes';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_generator';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_health'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_ALPHA; // this version's maturity level
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_innodb'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'tool_installaddon';
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->maturity = MATURITY_STABLE;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_langimport'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'logstore_database'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'logstore_legacy'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016041200; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'logstore_standard'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_log'; // Full name of the plugin (used for diagnostics).
}
.path-admin-tool-lp .progresstext {
display: inline-block;
- height: 40px;
vertical-align: top;
}
.path-admin-tool-lp .progress {
width: 100%;
display: inline-block;
- margin-right: 2em;
+}
+.path-admin-tool-lp .progress .bar {
+ min-width: 3em;
}
.dir-rtl.path-admin-tool-lp .progress .bar {
float: right;
{{#competencycount}}
<div data-region="coursecompetencystatistics" class="well">
{{#canbegradedincourse}}
- <div class="clearfix">
- <div class="span6">
- <div class="progresstext">
+ {{< tool_lp/progress_bar}}
+ {{$progresstext}}
{{#str}}xcompetenciesproficientoutofyincourse, tool_lp, { "x": "{{proficientcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
- </div>
- </div>
- <div class="span6">
- <span class="pull-right label label-info">{{proficientcompetencypercentageformatted}} %</span>
- <div class="progress">
- <div class="bar" style="width: {{proficientcompetencypercentage}}%;"></div>
- </div>
- </div>
- </div>
+ {{/progresstext}}
+ {{$percentage}}{{proficientcompetencypercentage}}{{/percentage}}
+ {{$percentlabel}}{{proficientcompetencypercentageformatted}} %{{/percentlabel}}
+ {{/tool_lp/progress_bar}}
{{/canbegradedincourse}}
{{#canmanagecoursecompetencies}}
{{#leastproficientcount}}
* navigation - array of strings containing buttons for navigation
}}
<div data-region="managecompetencies">
-<div class="btn-group pull-left">
+<div class="pull-left">
{{#navigation}}
{{{.}}}
{{/navigation}}
* navigation - array of strings containing buttons for navigation
}}
<div data-region="managetemplates">
-<div class="btn-group pull-left">
+<div class="pull-left">
{{#navigation}}
{{{.}}}
{{/navigation}}
{{/description}}
<dt>{{#str}}progress, tool_lp{{/str}}</dt>
<dd>
- <div class="span4">
- <div class="progresstext">
- {{#str}}xcompetenciesproficientoutofy, tool_lp, { "x": "{{proficientcompetencycount}}", "y": "{{competencycount}}" }{{/str}}
- </div>
- </div>
- <div class="span4">
- <span class="pull-right label label-info">{{proficientcompetencypercentageformatted}} %</span>
- <div class="progress">
- <div class="bar" style="width: {{proficientcompetencypercentage}}%;"></div>
- </div>
- </div>
+ {{< tool_lp/progress_bar}}
+ {{$progresstext}}
+ {{#str}}xcompetenciesproficientoutofy, tool_lp, { "x": "{{proficientcompetencycount}}", "y": "{{competencycount}}" }{{/str}}
+ {{/progresstext}}
+ {{$percentage}}{{proficientcompetencypercentage}}{{/percentage}}
+ {{$percentlabel}}{{proficientcompetencypercentageformatted}} %{{/percentlabel}}
+ {{/tool_lp/progress_bar}}
</dd>
</dl>
</div>
}}
<div data-region="plans">
-<div class="btn-group pull-left">
+<div class="pull-left">
{{#navigation}}
{{{.}}}
{{/navigation}}
--- /dev/null
+{{!
+ This file is part of Moodle - http://moodle.org/
+
+ Moodle is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Moodle is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+}}
+{{!
+ @template tool_lp/progress_bar
+
+ Moodle progress bar template for tool_lp.
+
+ The purpose of this template is to render a progress bar with a brief description.
+ Inherits core/columns-1to2.
+
+ Classes required for JS:
+ * none
+
+ Data attributes required for JS:
+ * none
+
+ Context variables required for this template:
+ * progresstextvalue A brief text that describes the progress bar.
+ * percentagevalue The numeric value for the progress bar's percentage.
+ * percentlabelvalue The progress bar's label that shows the percentage value.
+
+ Example context (json):
+ {
+ "progresstextvalue": "Progress:",
+ "percentagevalue": "50",
+ "percentlabelvalue": "50.00 %"
+ }
+
+}}
+<div class="row-fluid rtl-compatible">
+ <div class="span4">
+ <div class="progresstext">
+ {{$progresstext}}{{progresstextvalue}}{{/progresstext}}
+ </div>
+ </div>
+ <div class="span8">
+ <div class="progress">
+ <div class="bar" style="width: {{$percentage}}{{percentagevalue}}{{/percentage}}%;" role="progressbar" aria-valuenow="{{$percentage}}{{percentagevalue}}{{/percentage}}" aria-valuemin="0" aria-valuemax="100">
+ {{$percentlabel}}{{percentlabelvalue}}{{/percentlabel}}
+ </div>
+ </div>
+ </div>
+</div>
}}
{{#competencycount}}
<div data-region="templatestatistics" class="well">
- <div class="clearfix">
- <div class="span4">
- <div class="progresstext">
- {{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
- </div>
- </div>
- <div class="span6">
- <span class="pull-right label label-info">{{linkedcompetencypercentageformatted}} %</span>
- <div class="progress">
- <div class="bar" style="width: {{linkedcompetencypercentage}}%;"></div>
- </div>
- </div>
- </div>
+ {{< tool_lp/progress_bar}}
+ {{$progresstext}}
+ {{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
+ {{/progresstext}}
+ {{$percentage}}{{linkedcompetencypercentage}}{{/percentage}}
+ {{$percentlabel}}{{linkedcompetencypercentageformatted}} %{{/percentlabel}}
+ {{/tool_lp/progress_bar}}
{{#plancount}}
- <div class="clearfix">
- <div class="span4">
- <div class="progresstext">
+ {{< tool_lp/progress_bar}}
+ {{$progresstext}}
{{#str}}xplanscompletedoutofy, tool_lp, { "x": "{{completedplancount}}", "y": "{{plancount}}" } {{/str}}
- </div>
- </div>
- <div class="span6">
- <span class="pull-right label label-info">{{completedplanpercentageformatted}} %</span>
- <div class="progress">
- <div class="bar" style="width: {{completedplanpercentage}}%;">
-
- </div>
- </div>
- </div>
- </div>
+ {{/progresstext}}
+ {{$percentage}}{{completedplanpercentage}}{{/percentage}}
+ {{$percentlabel}}{{completedplanpercentageformatted}} %{{/percentlabel}}
+ {{/tool_lp/progress_bar}}
{{/plancount}}
{{#usercompetencyplancount}}
- <div class="clearfix">
- <div class="span4">
- <div class="progresstext">
+ {{< tool_lp/progress_bar}}
+ {{$progresstext}}
{{#str}}averageproficiencyrate, tool_lp, {{proficientusercompetencyplanpercentageformatted}} {{/str}}
- </div>
- </div>
- <div class="span6">
- <span class="pull-right label label-info">{{proficientusercompetencyplanpercentageformatted}} %</span>
- <div class="progress">
- <div class="bar" style="width: {{proficientusercompetencyplanpercentage}}%;"></div>
- </div>
- </div>
- </div>
+ {{/progresstext}}
+ {{$percentage}}{{proficientusercompetencyplanpercentage}}{{/percentage}}
+ {{$percentlabel}}{{proficientusercompetencyplanpercentageformatted}} %{{/percentlabel}}
+ {{/tool_lp/progress_bar}}
{{/usercompetencyplancount}}
{{#leastproficientcount}}
<div>
}}
<div data-region="user-evidence-list">
-<div class="btn-group pull-left">
+<div class="pull-left">
{{#navigation}}
{{{.}}}
{{/navigation}}
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016050400; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2014110400; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_lp'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016022401; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2014110400; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_lpmigrate'; // Full name of the plugin (used for diagnostics).
$plugin->dependencies = array(
'tool_lp' => ANY_VERSION
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_messageinbound';
*/
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016032401; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2016032400.00; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_mobile'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_monitor'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_multilangupgrade'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_phpunit'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_profiling'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016030200; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_recyclebin'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_replace'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_ALPHA; // this version's maturity level
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'tool_spamcleaner'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_task'; // Full name of the plugin (used for diagnostics)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_templatelibrary'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_unsuproles'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'tool_uploadcourse'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_uploaduser'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'tool_xmldb'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_cas'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('auth_ldap' => 2015111000);
+$plugin->dependencies = array('auth_ldap' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_db'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_email'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_fc'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_imap'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_ldap'; // Full name of the plugin (used for diagnostics)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['auth_ltidescription'] = 'The LTI authentication plugin enables your site to behave as an LTI provider - this plugin works in conjunction with the LTI enrolment plugin by allowing external users to access a course or individual activities.';
+$string['auth_ltidescription'] = 'The LTI authentication plugin, together with the \'Publish as LTI tool\' enrolment plugin, allows remote users to access selected courses and activities. In other words, Moodle functions as an LTI tool provider.';
$string['pluginname'] = 'LTI';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016040800; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2016040700; // Requires this Moodle version (3.1).
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version (3.1).
$plugin->component = 'auth_lti'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_manual'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_mnet'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_nntp'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_nologin'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_none'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_pam'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_pop3'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_radius'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_shibboleth'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'auth_webservice'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'availability_completion';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'availability_date';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'availability_grade';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'availability_group';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'availability_grouping';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'availability_profile';
* point is backup when some behavior/approach channged, in order to allow
* conditional coding based on it.
*/
- const VERSION = 2015111600;
+ const VERSION = 2016052300;
/**
* Usually same than major release zero version, mainly for informative/historic purposes.
*/
$gradebookcalculationsfreeze = get_config('core', 'gradebook_calculations_freeze_' . $this->get_courseid());
preg_match('/(\d{8})/', $this->get_task()->get_info()->moodle_release, $matches);
$backupbuild = (int)$matches[1];
+ // The function floatval will return a float even if there is text mixed with the release number.
+ $backuprelease = floatval($this->get_task()->get_info()->backup_release);
// Extra credits need adjustments only for backups made between 2.8 release (20141110) and the fix release (20150619).
if (!$gradebookcalculationsfreeze && $backupbuild >= 20141110 && $backupbuild < 20150619) {
require_once($CFG->libdir . '/db/upgradelib.php');
upgrade_calculated_grade_items($this->get_courseid());
}
+ // Courses from before 3.1 (20160518) may have a letter boundary problem and should be checked for this issue.
+ // Backups from before and including 2.9 could have a build number that is greater than 20160518 and should
+ // be checked for this problem.
+ if (!$gradebookcalculationsfreeze && ($backupbuild < 20160518 || $backuprelease <= 2.9)) {
+ require_once($CFG->libdir . '/db/upgradelib.php');
+ upgrade_course_letter_boundary($this->get_courseid());
+ }
+
}
/**
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_activity_modules'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'block_activity_results'; // Full name of the plugin (used for diagnostics).
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_admin_bookmarks'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'block_badges';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_blog_menu'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_blog_recent'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_blog_tags'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_calendar_month'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_calendar_upcoming'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_comments'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_community'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'block_completionstatus';
-$plugin->dependencies = array('report_completion' => 2015111000);
+$plugin->dependencies = array('report_completion' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_course_list'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_course_overview'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_course_summary'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_feedback'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_feedback' => 2015111000);
+$plugin->dependencies = array('mod_feedback' => 2016051900);
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2016012000;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'block_globalsearch';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_glossary_random'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_glossary' => 2015111000);
+$plugin->dependencies = array('mod_glossary' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_html'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_login'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016011100;
-$plugin->requires = 2014110400;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->component = 'block_lp';
$plugin->dependencies = array(
'tool_lp' => ANY_VERSION
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_mentees'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_messages'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_mnet_hosts'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+@block @block_myprofile
+Feature: The logged in user block allows users to view their profile information
+ In order to enable the logged in user block
+ As a user
+ I can add the logged in user block and configure it to show my information
+
+ Scenario: Configure the logged in user block to show / hide the users country
+ Given the following "users" exist:
+ | username | firstname | lastname | email | country |
+ | teacher1 | Teacher | One | teacher1@example.com | AU |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display country | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "Australia" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display country | Yes |
+ And I press "Save changes"
+ And I should see "Australia" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users city
+ Given the following "users" exist:
+ | username | firstname | lastname | email | city |
+ | teacher1 | Teacher | One | teacher1@example.com | Perth |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display city | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "Perth" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display city | Yes |
+ And I press "Save changes"
+ And I should see "Perth" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users email
+ Given the following "users" exist:
+ | username | firstname | lastname | email |
+ | teacher1 | Teacher | One | teacher1@example.com |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display email | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "teacher1@example.com" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display email | Yes |
+ And I press "Save changes"
+ And I should see "teacher1@example.com" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users ICQ
+ Given the following "users" exist:
+ | username | firstname | lastname | email | icq |
+ | teacher1 | Teacher | One | teacher1@example.com | myicq |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display ICQ | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "myicq" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display ICQ | Yes |
+ And I press "Save changes"
+ And I should see "myicq" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users Skype
+ Given the following "users" exist:
+ | username | firstname | lastname | email | skype |
+ | teacher1 | Teacher | One | teacher1@example.com | myskype |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display Skype | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "myskype" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display Skype | Yes |
+ And I press "Save changes"
+ And I should see "myskype" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users Yahoo
+ Given the following "users" exist:
+ | username | firstname | lastname | email | yahoo |
+ | teacher1 | Teacher | One | teacher1@example.com | myyahoo |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display Yahoo | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "myyahoo" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display Yahoo | Yes |
+ And I press "Save changes"
+ And I should see "myyahoo" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users AIM
+ Given the following "users" exist:
+ | username | firstname | lastname | email | aim |
+ | teacher1 | Teacher | One | teacher1@example.com | myaim |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display AIM | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "myaim" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display AIM | Yes |
+ And I press "Save changes"
+ And I should see "myaim" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users MSN
+ Given the following "users" exist:
+ | username | firstname | lastname | email | msn |
+ | teacher1 | Teacher | One | teacher1@example.com | mymsn |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display MSN | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "mymsn" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display MSN | Yes |
+ And I press "Save changes"
+ And I should see "mymsn" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users phone
+ Given the following "users" exist:
+ | username | firstname | lastname | email | phone1 |
+ | teacher1 | Teacher | One | teacher1@example.com | 555-5555 |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display phone | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "555-5555" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display phone | Yes |
+ And I press "Save changes"
+ And I should see "555-5555" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users mobile phone
+ Given the following "users" exist:
+ | username | firstname | lastname | email | phone2 |
+ | teacher1 | Teacher | One | teacher1@example.com | 555-5555 |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display mobile phone | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "555-5555" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display mobile phone | Yes |
+ And I press "Save changes"
+ And I should see "555-5555" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users Institution
+ Given the following "users" exist:
+ | username | firstname | lastname | email | institution |
+ | teacher1 | Teacher | One | teacher1@example.com | myinstitution |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display institution | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "myinstitution" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display institution | Yes |
+ And I press "Save changes"
+ And I should see "myinstitution" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users address
+ Given the following "users" exist:
+ | username | firstname | lastname | email | address |
+ | teacher1 | Teacher | One | teacher1@example.com | myaddress |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display address | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "myaddress" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display address | Yes |
+ And I press "Save changes"
+ And I should see "myaddress" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users first access
+ Given the following "users" exist:
+ | username | firstname | lastname | email |
+ | teacher1 | Teacher | One | teacher1@example.com |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display first access | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "First access:" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display first access | Yes |
+ And I press "Save changes"
+ And I should see "First access:" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users last access
+ Given the following "users" exist:
+ | username | firstname | lastname | email |
+ | teacher1 | Teacher | One | teacher1@example.com |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display last access | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "Last access:" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display last access | Yes |
+ And I press "Save changes"
+ And I should see "Last access:" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users current login
+ Given the following "users" exist:
+ | username | firstname | lastname | email |
+ | teacher1 | Teacher | One | teacher1@example.com |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display current login | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "Log in:" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display current login | Yes |
+ And I press "Save changes"
+ And I should see "Log in:" in the "Logged in user" "block"
+
+ Scenario: Configure the logged in user block to show / hide the users last ip
+ Given the following "users" exist:
+ | username | firstname | lastname | email |
+ | teacher1 | Teacher | One | teacher1@example.com |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display last IP | No |
+ And I press "Save changes"
+ Then I should see "Teacher One" in the "Logged in user" "block"
+ And I should not see "IP:" in the "Logged in user" "block"
+ And I configure the "Logged in user" block
+ And I set the following fields to these values:
+ | Display last IP | Yes |
+ And I press "Save changes"
+ And I should see "IP:" in the "Logged in user" "block"
--- /dev/null
+@block @block_myprofile
+Feature: The logged in user block allows users to view their profile information in an activity
+ In order to enable the logged in user block in an activity
+ As a teacher
+ I can add the logged in user block to an activity and view my information
+
+ Scenario: View the logged in user block by a user in an activity
+ Given the following "users" exist:
+ | username | firstname | lastname | email | idnumber |
+ | teacher1 | Teacher | One | teacher1@example.com | T1 |
+ And the following "courses" exist:
+ | fullname | shortname | category |
+ | Course 1 | C1 | 0 |
+ And the following "course enrolments" exist:
+ | user | course | role |
+ | teacher1 | C1 | editingteacher |
+ And the following "activities" exist:
+ | activity | course | idnumber | name | intro |
+ | page | C1 | page1 | Test page name | Test page description |
+ And I log in as "teacher1"
+ And I follow "Course 1"
+ And I turn editing mode on
+ And I follow "Test page name"
+ When I add the "Logged in user" block
+ Then I should see "Teacher One" in the "Logged in user" "block"
--- /dev/null
+@block @block_myprofile
+Feature: The logged in user block allows users to view their profile information in a course
+ In order to enable the logged in user block in a course
+ As a teacher
+ I can add the logged in user block to a course and view my information
+
+ Scenario: View the logged in user block by a user in a course
+ Given the following "users" exist:
+ | username | firstname | lastname | email | idnumber |
+ | teacher1 | Teacher | One | teacher1@example.com | T1 |
+ And the following "courses" exist:
+ | fullname | shortname | category |
+ | Course 1 | C1 | 0 |
+ And the following "course enrolments" exist:
+ | user | course | role |
+ | teacher1 | C1 | editingteacher |
+ When I log in as "teacher1"
+ And I follow "Course 1"
+ And I turn editing mode on
+ And I add the "Logged in user" block
+ Then I should see "Teacher One" in the "Logged in user" "block"
--- /dev/null
+@block @block_myprofile
+Feature: The logged in user block allows users to view their profile information in on the dashboard
+ In order to enable the logged in user block on the dashboard
+ As a user
+ I can add the logged in user block to a the dashboard and view my information
+
+ Scenario: View the logged in user block by a user on the dashboard
+ Given the following "users" exist:
+ | username | firstname | lastname | email |
+ | teacher1 | Teacher | One | teacher1@example.com |
+ And I log in as "teacher1"
+ And I press "Customise this page"
+ When I add the "Logged in user" block
+ Then I should see "Teacher One" in the "Logged in user" "block"
--- /dev/null
+@block @block_myprofile
+Feature: The logged in user block allows users to view their profile information on the front page
+ In order to enable the logged in user block on the frontpage
+ As an admin
+ I can add the logged in user block to the frontpage and view my information
+
+ Background:
+ Given the following "users" exist:
+ | username | firstname | lastname | email | idnumber |
+ | teacher1 | Teacher | One | teacher1@example.com | T1 |
+ And I log in as "admin"
+ And I am on site homepage
+ And I navigate to "Turn editing on" node in "Front page settings"
+ And I add the "Logged in user" block
+ And I log out
+
+ Scenario: Try to view the logged in user block as a guest
+ Given I log in as "guest"
+ When I am on site homepage
+ Then I should not see "Logged in user"
+
+ Scenario: View the logged in user block by a logged in user
+ Given I log in as "teacher1"
+ When I am on site homepage
+ Then I should see "Teacher One" in the "Logged in user" "block"
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_myprofile'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_navigation'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_news_items'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_forum' => 2015111000);
+$plugin->dependencies = array('mod_forum' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_online_users'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_participants'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_private_files'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_quiz_results'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_quiz' => 2015111000);
+$plugin->dependencies = array('mod_quiz' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_recent_activity'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 24*3600; // Cron interval 1 day.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_rss_client'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 300; // Set min time between cron executions to 300 secs (5 mins)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_search_forums'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_forum' => 2015111000);
+$plugin->dependencies = array('mod_forum' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_section_links'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_selfcompletion'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_settings'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_site_main_menu'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_social_activities'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_tag_flickr'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_tag_youtube'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'block_tags'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'cachelock_file'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'cachestore_file'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'cachestore_memcache'; // Full name of the plugin.
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'cachestore_memcached'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'cachestore_mongodb'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'cachestore_session'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'cachestore_static'; // Full name of the plugin.
\ No newline at end of file
foreach ($eventlist as $eventid => $eventobj) {
$event = (array) $eventobj;
+ // Description formatting.
+ $calendareventobj = new calendar_event($event);
+ list($event['description'], $event['format']) = $calendareventobj->format_external_text();
if ($hassystemcap) {
// User can see everything, no further check is needed.
return false;
}
}
+
+ /**
+ * Format the text using the external API.
+ * This function should we used when text formatting is required in external functions.
+ *
+ * @return array an array containing the text formatted and the text format
+ */
+ public function format_external_text() {
+
+ if ($this->editorcontext === null) {
+ // Switch on the event type to decide upon the appropriate context to use for this event.
+ $this->editorcontext = $this->properties->context;
+
+ if ($this->properties->eventtype != 'user' && $this->properties->eventtype != 'course'
+ && $this->properties->eventtype != 'site' && $this->properties->eventtype != 'group') {
+ // We don't have a context here, do a normal format_text.
+ return array(format_text($this->properties->description, $this->properties->format), $this->properties->format);
+ }
+ }
+
+ // Work out the item id for the editor, if this is a repeated event then the files will be associated with the original.
+ if (!empty($this->properties->repeatid) && $this->properties->repeatid > 0) {
+ $itemid = $this->properties->repeatid;
+ } else {
+ $itemid = $this->properties->id;
+ }
+
+ return external_format_text($this->properties->description, $this->properties->format, $this->editorcontext->id,
+ 'calendar', 'event_description', $itemid);
+ }
}
/**
// Let's create a few events.
$siteevent = $this->create_calendar_event('site', $USER->id, 'site');
+
+ // This event will have description with an inline fake image.
+ $draftidfile = file_get_unused_draft_itemid();
+ $usercontext = context_course::instance($course->id);
+ $filerecord = array(
+ 'contextid' => $usercontext->id,
+ 'component' => 'user',
+ 'filearea' => 'draft',
+ 'itemid' => $draftidfile,
+ 'filepath' => '/',
+ 'filename' => 'fakeimage.png',
+ );
+ $fs = get_file_storage();
+ $fs->create_file_from_string($filerecord, 'img contents');
+
$record = new stdClass();
$record->courseid = $course->id;
+ $record->description = array(
+ 'format' => FORMAT_HTML,
+ 'text' => 'Text with img <img src="@@PLUGINFILE@@/fakeimage.png">',
+ 'itemid' => $draftidfile
+ );
$courseevent = $this->create_calendar_event('course', $USER->id, 'course', 2, time(), $record);
$userevent = $this->create_calendar_event('user', $USER->id);
$record = new stdClass();
$this->assertEquals(5, count($events['events']));
$this->assertEquals(0, count($events['warnings']));
+ // Expect the same URL in the description of two different events (because they are repeated).
+ $coursecontext = context_course::instance($course->id);
+ $expectedurl = "webservice/pluginfile.php/$coursecontext->id/calendar/event_description/$courseevent->id/fakeimage.png";
+ $withdescription = 0;
+ foreach ($events['events'] as $event) {
+ if (!empty($event['description'])) {
+ $withdescription++;
+ $this->assertContains($expectedurl, $event['description']);
+ }
+ }
+ $this->assertEquals(2, $withdescription);
+
// Let's play around with caps.
$this->setUser($user);
$events = core_calendar_external::get_calendar_events($paramevents, $options);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'calendartype_gregorian'; // Full name of the plugin (used for diagnostics).
}
$capability = 'moodle/competency:usercompetencyreview';
- $ucfields = user_competency::get_sql_fields('uc');
- $compfields = competency::get_sql_fields('c');
+ $ucfields = user_competency::get_sql_fields('uc', 'uc_');
+ $compfields = competency::get_sql_fields('c', 'c_');
$usercols = array('id') + get_user_fieldnames();
$userfields = array();
foreach ($usercols as $field) {
$records = $DB->get_recordset_sql($getsql, $params, $skip, $limit);
foreach ($records as $record) {
$objects = (object) array(
- 'usercompetency' => new user_competency(0, user_competency::extract_record($record)),
- 'competency' => new competency(0, competency::extract_record($record)),
+ 'usercompetency' => new user_competency(0, user_competency::extract_record($record, 'uc_')),
+ 'competency' => new competency(0, competency::extract_record($record, 'c_')),
'user' => persistent::extract_record($record, 'usr_'),
);
$competencies[] = $objects;
$userid = $USER->id;
}
- $planfields = plan::get_sql_fields('p');
- $tplfields = template::get_sql_fields('t');
+ $planfields = plan::get_sql_fields('p', 'plan_');
+ $tplfields = template::get_sql_fields('t', 'tpl_');
$usercols = array('id') + get_user_fieldnames();
$userfields = array();
foreach ($usercols as $field) {
$sql .= " AND p.userid $insql";
$params += $inparams;
+ // Order by ID just to have some ordering in place.
+ $ordersql = " ORDER BY p.id ASC";
+
$plans = array();
- $records = $DB->get_recordset_sql($select . $sql, $params, $skip, $limit);
+ $records = $DB->get_recordset_sql($select . $sql . $ordersql, $params, $skip, $limit);
foreach ($records as $record) {
- $plan = new plan(0, plan::extract_record($record));
+ $plan = new plan(0, plan::extract_record($record, 'plan_'));
$template = null;
if ($plan->is_based_on_template()) {
- $template = new template(0, template::extract_record($record));
+ $template = new template(0, template::extract_record($record, 'tpl_'));
}
$plans[] = (object) array(
* @return string The SQL fragment.
*/
public static function get_sql_fields($alias, $prefix = null) {
+ global $CFG;
$fields = array();
if ($prefix === null) {
$properties = array('id' => $id) + $properties;
foreach ($properties as $property => $definition) {
- $fields[] = $alias . '.' . $property . ' AS ' . $prefix . $property;
+ $as = $prefix . $property;
+ $fields[] = $alias . '.' . $property . ' AS ' . $as;
+
+ // Warn developers that the query will not always work.
+ if ($CFG->debugdeveloper && strlen($as) > 30) {
+ throw new coding_exception("The alias '$as' for column '$alias.$property' exceeds 30 characters" .
+ " and will therefore not work across all supported databases.");
+ }
}
return implode(', ', $fields);
api::delete_evidence($ev1);
}
+
+ public function test_list_plans_to_review() {
+ $dg = $this->getDataGenerator();
+ $this->resetAfterTest();
+ $ccg = $dg->get_plugin_generator('core_competency');
+ $sysctx = context_system::instance();
+ $this->setAdminUser();
+
+ $reviewer = $dg->create_user();
+ $roleallow = $dg->create_role();
+ $roleprohibit = $dg->create_role();
+ assign_capability('moodle/competency:planreview', CAP_ALLOW, $roleallow, $sysctx->id);
+ assign_capability('moodle/competency:planreview', CAP_PROHIBIT, $roleprohibit, $sysctx->id);
+ role_assign($roleallow, $reviewer->id, $sysctx->id);
+ accesslib_clear_all_caches_for_unit_testing();
+
+ $u1 = $dg->create_user();
+ $u2 = $dg->create_user();
+ $f1 = $ccg->create_framework();
+ $comp1 = $ccg->create_competency(['competencyframeworkid' => $f1->get_id()]);
+ $p1a = $ccg->create_plan(['userid' => $u1->id, 'status' => plan::STATUS_WAITING_FOR_REVIEW]);
+ $p1b = $ccg->create_plan(['userid' => $u1->id, 'status' => plan::STATUS_IN_REVIEW, 'reviewerid' => $reviewer->id]);
+ $p1c = $ccg->create_plan(['userid' => $u1->id, 'status' => plan::STATUS_DRAFT]);
+ $p2a = $ccg->create_plan(['userid' => $u2->id, 'status' => plan::STATUS_WAITING_FOR_REVIEW]);
+ $p2b = $ccg->create_plan(['userid' => $u2->id, 'status' => plan::STATUS_IN_REVIEW]);
+ $p2c = $ccg->create_plan(['userid' => $u2->id, 'status' => plan::STATUS_ACTIVE]);
+ $p2d = $ccg->create_plan(['userid' => $u2->id, 'status' => plan::STATUS_ACTIVE]);
+ api::complete_plan($p2d);
+
+ // The reviewer can review all plans waiting for review, or in review where they are the reviewer.
+ $this->setUser($reviewer);
+ $result = api::list_plans_to_review();
+ $this->assertEquals(3, $result['count']);
+ $this->assertEquals($p1a->get_id(), $result['plans'][0]->plan->get_id());
+ $this->assertEquals($p1b->get_id(), $result['plans'][1]->plan->get_id());
+ $this->assertEquals($p2a->get_id(), $result['plans'][2]->plan->get_id());
+
+ // The reviewer cannot view the plans when they do not have the permission in the user's context.
+ role_assign($roleprohibit, $reviewer->id, context_user::instance($u2->id)->id);
+ accesslib_clear_all_caches_for_unit_testing();
+ $result = api::list_plans_to_review();
+ $this->assertEquals(2, $result['count']);
+ $this->assertEquals($p1a->get_id(), $result['plans'][0]->plan->get_id());
+ $this->assertEquals($p1b->get_id(), $result['plans'][1]->plan->get_id());
+ }
+
+ public function test_list_user_competencies_to_review() {
+ $dg = $this->getDataGenerator();
+ $this->resetAfterTest();
+ $ccg = $dg->get_plugin_generator('core_competency');
+ $sysctx = context_system::instance();
+ $this->setAdminUser();
+
+ $reviewer = $dg->create_user();
+ $roleallow = $dg->create_role();
+ $roleprohibit = $dg->create_role();
+ assign_capability('moodle/competency:usercompetencyreview', CAP_ALLOW, $roleallow, $sysctx->id);
+ assign_capability('moodle/competency:usercompetencyreview', CAP_PROHIBIT, $roleprohibit, $sysctx->id);
+ role_assign($roleallow, $reviewer->id, $sysctx->id);
+ accesslib_clear_all_caches_for_unit_testing();
+
+ $u1 = $dg->create_user();
+ $u2 = $dg->create_user();
+ $f1 = $ccg->create_framework();
+ $c1 = $ccg->create_competency(['competencyframeworkid' => $f1->get_id()]);
+ $c2 = $ccg->create_competency(['competencyframeworkid' => $f1->get_id()]);
+ $c3 = $ccg->create_competency(['competencyframeworkid' => $f1->get_id()]);
+ $uc1a = $ccg->create_user_competency(['userid' => $u1->id, 'competencyid' => $c1->get_id(),
+ 'status' => user_competency::STATUS_IDLE]);
+ $uc1b = $ccg->create_user_competency(['userid' => $u1->id, 'competencyid' => $c2->get_id(),
+ 'status' => user_competency::STATUS_WAITING_FOR_REVIEW]);
+ $uc1c = $ccg->create_user_competency(['userid' => $u1->id, 'competencyid' => $c3->get_id(),
+ 'status' => user_competency::STATUS_IN_REVIEW, 'reviewerid' => $reviewer->id]);
+ $uc2a = $ccg->create_user_competency(['userid' => $u2->id, 'competencyid' => $c1->get_id(),
+ 'status' => user_competency::STATUS_WAITING_FOR_REVIEW]);
+ $uc2b = $ccg->create_user_competency(['userid' => $u2->id, 'competencyid' => $c2->get_id(),
+ 'status' => user_competency::STATUS_IDLE]);
+ $uc2c = $ccg->create_user_competency(['userid' => $u2->id, 'competencyid' => $c3->get_id(),
+ 'status' => user_competency::STATUS_IN_REVIEW]);
+
+ // The reviewer can review all plans waiting for review, or in review where they are the reviewer.
+ $this->setUser($reviewer);
+ $result = api::list_user_competencies_to_review();
+ $this->assertEquals(3, $result['count']);
+ $this->assertEquals($uc2a->get_id(), $result['competencies'][0]->usercompetency->get_id());
+ $this->assertEquals($uc1b->get_id(), $result['competencies'][1]->usercompetency->get_id());
+ $this->assertEquals($uc1c->get_id(), $result['competencies'][2]->usercompetency->get_id());
+
+ // The reviewer cannot view the plans when they do not have the permission in the user's context.
+ role_assign($roleprohibit, $reviewer->id, context_user::instance($u2->id)->id);
+ accesslib_clear_all_caches_for_unit_testing();
+ $result = api::list_user_competencies_to_review();
+ $this->assertEquals(2, $result['count']);
+ $this->assertEquals($uc1b->get_id(), $result['competencies'][0]->usercompetency->get_id());
+ $this->assertEquals($uc1c->get_id(), $result['competencies'][1]->usercompetency->get_id());
+ }
}
$this->assertFalse(core_competency_testable_persistent::record_exists($id));
}
+ public function test_get_sql_fields() {
+ $expected = '' .
+ 'c.id AS comp_id, ' .
+ 'c.shortname AS comp_shortname, ' .
+ 'c.idnumber AS comp_idnumber, ' .
+ 'c.description AS comp_description, ' .
+ 'c.descriptionformat AS comp_descriptionformat, ' .
+ 'c.parentid AS comp_parentid, ' .
+ 'c.path AS comp_path, ' .
+ 'c.sortorder AS comp_sortorder, ' .
+ 'c.competencyframeworkid AS comp_competencyframeworkid, ' .
+ 'c.ruletype AS comp_ruletype, ' .
+ 'c.ruleconfig AS comp_ruleconfig, ' .
+ 'c.ruleoutcome AS comp_ruleoutcome, ' .
+ 'c.scaleid AS comp_scaleid, ' .
+ 'c.scaleconfiguration AS comp_scaleconfiguration, ' .
+ 'c.timecreated AS comp_timecreated, ' .
+ 'c.timemodified AS comp_timemodified, ' .
+ 'c.usermodified AS comp_usermodified';
+ $this->assertEquals($expected, core_competency_testable_persistent::get_sql_fields('c', 'comp_'));
+ }
+
+ /**
+ * @expectedException coding_exception
+ * @expectedExceptionMessageRegExp /The alias .+ exceeds 30 characters/
+ */
+ public function test_get_sql_fields_too_long() {
+ core_competency_testable_persistent::get_sql_fields('c');
+ }
}
/**
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'format_singleactivity'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'format_social'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'format_topics'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'format_weeks'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016031700;
-$plugin->requires = 2016031700; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'dataformat_csv';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016031700;
-$plugin->requires = 2016031700; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'dataformat_excel';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016031700;
-$plugin->requires = 2016031700; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'dataformat_html';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016031700;
-$plugin->requires = 2016031700; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'dataformat_json';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016031700;
-$plugin->requires = 2016031700; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'dataformat_ods';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_category'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_cohort'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60*60; // run cron every hour by default, it is not out-of-sync often
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_database'; // Full name of the plugin (used for diagnostics)
//TODO: should we add cron sync?
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDRR)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDRR)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_flatfile'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111602; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_guest'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component = 'enrol_imsenterprise';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_ldap'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016042200; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2016041500; // Requires this Moodle version (3.1)
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2016051900; // Requires this Moodle version (3.1)
$plugin->component = 'enrol_lti'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_manual'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 600;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_meta'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60*60; // run cron every hour by default, it is not out-of-sync often
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_mnet'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_paypal'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111601; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'enrol_self'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 600;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_activitynames'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_algebra'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_censor'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component= 'filter_data';
-$plugin->dependencies = array('mod_data' => 2015111000);
+$plugin->dependencies = array('mod_data' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_emailprotect'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_emoticon'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600;
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component= 'filter_glossary';
-$plugin->dependencies = array('mod_glossary' => 2015111000);
+$plugin->dependencies = array('mod_glossary' => 2016051900);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2016032200;
-$plugin->requires = 2015111000; // Requires this Moodle version.
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900; // Requires this Moodle version.
$plugin->component= 'filter_mathjaxloader';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_mediaplugin'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_multilang'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_tex'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_tidy'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'filter_urltolink'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'gradeexport_ods'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'gradeexport_txt'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'gradeexport_xls'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'gradeexport_xml'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'gradingform_guide';
-$plugin->version = 2016051100;
-$plugin->requires = 2015111000;
+$plugin->version = 2016052300;
+$plugin->requires = 2016051900;
$plugin->maturity = MATURITY_STABLE;
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'gradingform_rubric';
-$plugin->version = 2015111600;
+$plugin->version = 2016052300;
-$plugin->requires = 2015111000;
+$plugin->requires = 2016051900;
$plugin->maturity = MATURITY_STABLE;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015111000; // Requires this Moodle version
+$plugin->version = 2016052300; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2016051900; // Requires this Moodle version
$plugin->component = 'gradeimport_csv'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 201