mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-19125 module restrictions: addinstance capabilities for all mods
This commit is contained in:
parent
9665ecd275
commit
88eca3cd26
@ -39,6 +39,18 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/assignment:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/assignment:submit' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
|
@ -32,6 +32,7 @@ $string['allownotes_help'] = 'If enabled, students may enter notes into a text a
|
||||
$string['allowresubmit'] = 'Allow resubmitting';
|
||||
$string['allowresubmit_help'] = 'If enabled, students will be allowed to resubmit assignments after they have been graded (for them to be re-graded).';
|
||||
$string['alreadygraded'] = 'Your assignment has already been graded and resubmission is not allowed.';
|
||||
$string['assignment:addinstance'] = 'Add a new assignment';
|
||||
$string['assignmentdetails'] = 'Assignment details';
|
||||
$string['assignment:exportownsubmission'] = 'Export own submission';
|
||||
$string['assignment:exportsubmission'] = 'Export submission';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_assignment'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/chat:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/chat:chat' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
@ -92,5 +104,3 @@ $capabilities = array(
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
@ -47,6 +47,7 @@ $string['explaingeneralconfig'] = 'These settings are <strong>always</strong> us
|
||||
$string['explainmethoddaemon'] = 'These settings matter <strong>only</strong> if you have selected "Chat server daemon" for chat_method';
|
||||
$string['explainmethodnormal'] = 'These settings matter <strong>only</strong> if you have selected "Normal method" for chat_method';
|
||||
$string['generalconfig'] = 'General configuration';
|
||||
$string['chat:addinstance'] = 'Add a new chat';
|
||||
$string['chat:deletelog'] = 'Delete chat logs';
|
||||
$string['chat:exportparticipatedsession'] = 'Export chat session which you took part in';
|
||||
$string['chat:exportsession'] = 'Export any chat session';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_chat'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 300;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/choice:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/choice:choose' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
|
@ -35,6 +35,7 @@ $string['atleastoneoption'] = 'You need to provide at least one possible answer.
|
||||
$string['full'] = '(Full)';
|
||||
$string['havetologin'] = 'You have to log in before you can submit your choice';
|
||||
$string['choice'] = 'Choice';
|
||||
$string['choice:addinstance'] = 'Add a new choice';
|
||||
$string['choiceclose'] = 'Until';
|
||||
$string['choice:deleteresponses'] = 'Delete responses';
|
||||
$string['choice:downloadresponses'] = 'Download responses';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/data:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/data:viewentry' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
@ -72,6 +72,7 @@ $string['csvfile'] = 'CSV file';
|
||||
$string['csvimport'] = 'CSV file import';
|
||||
$string['csvimport_help'] = 'Entries may be imported via a plain text file with a list of field names as the first line, then the data, with one record per line.';
|
||||
$string['csvwithselecteddelimiter'] = '<acronym title="Comma Separated Values">CSV</acronym> text with selected delimiter:';
|
||||
$string['data:addinstance'] = 'Add a new database';
|
||||
$string['data:approve'] = 'Approve unapproved entries';
|
||||
$string['data:comment'] = 'Write comments';
|
||||
$string['data:exportallentries'] = 'Export all database entries';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/feedback:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/feedback:view' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
@ -106,6 +106,7 @@ You can view it <a href="{$a->url}">here</a>.';
|
||||
$string['entries_saved'] = 'Your answers have been saved. Thank you.';
|
||||
$string['export_questions'] = 'Export questions';
|
||||
$string['export_to_excel'] = 'Export to Excel';
|
||||
$string['feedback:addinstance'] = 'Add a new feedback';
|
||||
$string['feedbackclose'] = 'Close the feedback at';
|
||||
$string['feedbackcloses'] = 'Feedback closes';
|
||||
$string['feedback:complete'] = 'Complete a feedback';
|
||||
|
@ -25,8 +25,8 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
||||
|
@ -25,6 +25,19 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/folder:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/folder:view' => array(
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
|
@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
$string['contentheader'] = 'Content';
|
||||
$string['folder:addinstance'] = 'Add a new folder';
|
||||
$string['folder:managefiles'] = 'Manage files in folder module';
|
||||
$string['folder:view'] = 'View folder content';
|
||||
$string['foldercontent'] = 'Files and subfolders';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_folder'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/forum:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/forum:viewdiscussion' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
@ -149,6 +149,7 @@ $string['existingsubscribers'] = 'Existing subscribers';
|
||||
$string['exportdiscussion'] = 'Export whole discussion';
|
||||
$string['forcessubscribe'] = 'This forum forces everyone to be subscribed';
|
||||
$string['forum'] = 'Forum';
|
||||
$string['forum:addinstance'] = 'Add a new forum';
|
||||
$string['forum:addnews'] = 'Add news';
|
||||
$string['forum:addquestion'] = 'Add question';
|
||||
$string['forumauthorhidden'] = 'Author (hidden)';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/glossary:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/glossary:write' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
|
@ -170,6 +170,7 @@ $string['fillfields'] = 'Concept and definition are mandatory fields.';
|
||||
$string['filtername'] = 'Glossary auto-linking';
|
||||
$string['fullmatch'] = 'Match whole words only';
|
||||
$string['fullmatch_help'] = 'This setting specifies whether only whole words will be linked, for example, a glossary entry named "construct" will not create a link inside the word "constructivism".';
|
||||
$string['glossary:addinstance'] = 'Add a new glossary';
|
||||
$string['glossary:approve'] = 'Approve unapproved entries';
|
||||
$string['glossary:comment'] = 'Create comments';
|
||||
$string['glossary:export'] = 'Export entries';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2012022000; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -34,6 +34,18 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/imscp:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
/* TODO: review public portfolio API first!
|
||||
'mod/imscp:portfolioexport' => array(
|
||||
|
||||
|
@ -30,6 +30,7 @@ $string['contentheader'] = 'Content';
|
||||
$string['deploymenterror'] = 'Content package error!';
|
||||
$string['keepold'] = 'Archive packages';
|
||||
$string['keepoldexplain'] = 'How many packages should be archived?';
|
||||
$string['imscp:addinstance'] = 'Add a new IMS content package';
|
||||
$string['imscp:view'] = 'View IMS content';
|
||||
$string['modulename'] = 'IMS content package';
|
||||
$string['modulename_help'] = 'An IMS content package allows for packages created according to the IMS Content Packaging specification to be displayed in the course.';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
41
mod/label/db/access.php
Normal file
41
mod/label/db/access.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
// 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/>.
|
||||
|
||||
/**
|
||||
* Capability definitions for the label module.
|
||||
*
|
||||
* @package mod_label
|
||||
* @copyright 2012 The Open University
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/label:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
);
|
@ -24,6 +24,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['label:addinstance'] = 'Add a new label';
|
||||
$string['labeltext'] = 'Label text';
|
||||
$string['modulename'] = 'Label';
|
||||
$string['modulename_help'] = 'A label enables text and images to be inserted among the activity links on the course page.';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_label'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -28,6 +28,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/lesson:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/lesson:edit' => array(
|
||||
|
||||
'riskbitmask' => RISK_XSS, // we want flash and JS in question pages
|
||||
|
@ -208,6 +208,7 @@ $string['jumps_help'] = 'Each answer (for questions) or description (for content
|
||||
$string['jumpsto'] = 'Jumps to <em>{$a}</em>';
|
||||
$string['leftduringtimed'] = 'You have left during a timed lesson.<br />Please click on Continue to restart the lesson.';
|
||||
$string['leftduringtimednoretake'] = 'You have left during a timed lesson and you are<br />not allowed to retake or continue the lesson.';
|
||||
$string['lesson:addinstance'] = 'Add a new lesson';
|
||||
$string['lessonattempted'] = 'Lesson attempted';
|
||||
$string['lessonclosed'] = 'This lesson closed on {$a}.';
|
||||
$string['lessoncloses'] = 'Lesson closes';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -43,6 +43,18 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/lti:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/lti:grade' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
|
@ -219,6 +219,7 @@ real estate to the tool, and others provide a more integrated feel with the Mood
|
||||
It is possible that browsers will prevent the new window from opening.';
|
||||
$string['launchoptions'] = 'Launch Options';
|
||||
$string['lti'] = 'LTI';
|
||||
$string['lti:addinstance'] = 'Add a new LTI activity';
|
||||
$string['lti:addcoursetool'] = 'Grade LTI activities';
|
||||
$string['lti:grade'] = 'Grade LTI activities';
|
||||
$string['lti:manage'] = 'Edit LTI activities';
|
||||
|
@ -49,7 +49,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_lti'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -34,6 +34,19 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/page:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
|
||||
/* TODO: review public portfolio API first!
|
||||
'mod/page:portfolioexport' => array(
|
||||
|
||||
|
@ -38,6 +38,7 @@ $string['modulenameplural'] = 'Pages';
|
||||
$string['neverseen'] = 'Never seen';
|
||||
$string['optionsheader'] = 'Options';
|
||||
$string['page-mod-page-x'] = 'Any page module page';
|
||||
$string['page:addinstance'] = 'Add a new page resource';
|
||||
$string['page:view'] = 'View page content';
|
||||
$string['pluginadministration'] = 'Page module administration';
|
||||
$string['pluginname'] = 'Page';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_page'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -40,6 +40,19 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
// Ability to add a new quiz to the course.
|
||||
'mod/quiz:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
// Ability to do the quiz as a 'student'.
|
||||
'mod/quiz:attempt' => array(
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
|
@ -540,6 +540,7 @@ $string['questiontext'] = 'Question text';
|
||||
$string['questiontextisempty'] = '[Empty question text]';
|
||||
$string['questiontype'] = 'Question type {$a}';
|
||||
$string['questiontypesetupoptions'] = 'Setup options for question types:';
|
||||
$string['quiz:addinstance'] = 'Add a new quiz';
|
||||
$string['quiz:attempt'] = 'Attempt quizzes';
|
||||
$string['quizavailable'] = 'The quiz is available until: {$a}';
|
||||
$string['quizclose'] = 'Close the quiz';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011120703; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60;
|
||||
|
@ -34,6 +34,18 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/resource:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
/* TODO: review public portfolio API first!
|
||||
'mod/resource:portfolioexport' => array(
|
||||
|
||||
|
@ -81,6 +81,7 @@ $string['printheading'] = 'Display resource name';
|
||||
$string['printheadingexplain'] = 'Display resource name above content? Some display types may not display resource name even if enabled.';
|
||||
$string['printintro'] = 'Display resource description';
|
||||
$string['printintroexplain'] = 'Display resource description below content? Some display types may not display description even if enabled.';
|
||||
$string['resource:addinstance'] = 'Add a new resource';
|
||||
$string['resourcecontent'] = 'Files and subfolders';
|
||||
$string['resourcedetails_sizetype'] = '{$a->size} {$a->type}';
|
||||
$string['resource:exportresource'] = 'Export resource';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_resource'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/scorm:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/scorm:viewreport' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
@ -253,6 +253,7 @@ $string['review'] = 'Review';
|
||||
$string['reviewmode'] = 'Review mode';
|
||||
$string['scoes'] = 'Learning objects';
|
||||
$string['score'] = 'Score';
|
||||
$string['scorm:addinstance'] = 'Add a new SCORM package';
|
||||
$string['scormclose'] = 'Until';
|
||||
$string['scormcourse'] = 'Learning course';
|
||||
$string['scorm:deleteresponses'] = 'Delete SCORM attempts';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112901; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 300;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/survey:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/survey:participate' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
@ -234,6 +234,7 @@ $string['scaletimes5'] = 'Almost never,Seldom,Sometimes,Often,Almost always';
|
||||
$string['seemoredetail'] = 'Click here to see more detail';
|
||||
$string['selectedquestions'] = 'Selected questions from a scale, all students';
|
||||
$string['summary'] = 'Summary';
|
||||
$string['survey:addinstance'] = 'Add a new survey';
|
||||
$string['surveycompleted'] = 'You\'ve completed this survey. The graph below shows a summary of your results compared to the class averages.';
|
||||
$string['survey:download'] = 'Download responses';
|
||||
$string['surveygraph'] = 'Survey graph';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_survey'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -34,6 +34,18 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/url:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
/* TODO: review public portfolio API first!
|
||||
'mod/url:portfolioexport' => array(
|
||||
|
||||
|
@ -67,4 +67,5 @@ $string['printintro'] = 'Display URL description';
|
||||
$string['printintroexplain'] = 'Display URL description below content? Some display types may not display description even if enabled.';
|
||||
$string['rolesinparams'] = 'Include role names in parameters';
|
||||
$string['serverurl'] = 'Server URL';
|
||||
$string['url:addinstance'] = 'Add a new URL resource';
|
||||
$string['url:view'] = 'View URL';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_url'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -26,6 +26,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
'mod/wiki:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
'mod/wiki:viewpage' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
@ -225,6 +225,7 @@ $string['wikinowikitext'] = 'No wiki text';
|
||||
$string['wikiorderedlist'] = 'Ordered list';
|
||||
$string['wikisettings'] = 'Wiki settings';
|
||||
$string['wikiunorderedlist'] = 'Unordered list';
|
||||
$string['wiki:addinstance'] = 'Add a new wiki';
|
||||
$string['wiki:createpage'] = 'Create new wiki pages';
|
||||
$string['wiki:editcomment'] = 'Add comments to pages';
|
||||
$string['wiki:editpage'] = 'Save wiki pages';
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
@ -40,6 +40,19 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
// Ability to add a new workshop to the course.
|
||||
'mod/workshop:addinstance' => array(
|
||||
'riskbitmask' => RISK_XSS,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'archetypes' => array(
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'manager' => CAP_ALLOW
|
||||
),
|
||||
'clonepermissionsfrom' => 'moodle/course:manageactivities'
|
||||
),
|
||||
|
||||
// Ability to change the current phase (stage) of the workshop, for example
|
||||
// allow submitting, start assessment period, close workshop etc.
|
||||
'mod/workshop:switchphase' => array(
|
||||
|
@ -251,6 +251,7 @@ $string['useselfassessment_help'] = 'If enabled, a user may be allocated their o
|
||||
$string['useselfassessment_desc'] = 'Students may assess their own work';
|
||||
$string['weightinfo'] = 'Weight: {$a}';
|
||||
$string['withoutsubmission'] = 'Reviewer without own submission';
|
||||
$string['workshop:addinstance'] = 'Add a new workshop';
|
||||
$string['workshop:allocate'] = 'Allocate submissions for review';
|
||||
$string['workshop:editdimensions'] = 'Edit assessment forms';
|
||||
$string['workshopfeatures'] = 'Workshop features';
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2011112900; // Requires this Moodle version
|
||||
$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2012030100.04; // Requires this Moodle version
|
||||
$module->component = 'mod_workshop'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user