In this Moodle 2.3 tutorial, we’re going to show you how to add the Activity Quiz Module to add a new quiz to a Moodle course. There are many options available when configuring a quiz, which will help you accurately gauge how well your students are learning. The quiz module allows the...
$course = $CURMAN->db->get_record('course','id',$this->id);// the elis plugin is treated speciallyif($course->enrol !='elis') {// send the user to the Moodle enrolment page$a =newstdClass(); $a->crs = $course; $a->class = $class; $a->wwwroot = $CFG->wwwroot; $subje...
admin_moodlefailed_email($user,'unenrollUser', $course); $retVal =false; }echo" Course context id is {$context->id}";if(!role_unassign(0, $user->id,0, $context->id)) {echo"An error occurred in role_unassign while trying to unenroll {$username} from vLab via auto-delete."; admin...
22. WooCommerce Prices By User Role In order to offer dynamic pricing to your various customer groups you’re going to need a plugin, and WooCommerce Prices by User Role (affiliate link) is just the plugin to extend WooCommerce for you. This plugin makes it possible for you to create user...
scottparry/Workless - Workless is a CSS base framework to get your projects up and running as quickly as possible. Rosmaninho/Zotero-Dark-Theme - userChrome.css file for a Zotero dark theme. Suggestions for improvements are welcome. colourgarden/avalanche - Superclean, powerful, responsive, Sas...
}$navtail='';}else{$parent=$discussion->firstpost;$navtail='-> '.format_string($discussion->name);}if(!forum_user_can_view_post($parent,$course,$cm,$forum,$discussion)){error('You do not have permissions to view this post',"{$CFG->wwwroot}/mod/forum/view.php?f={$forum->id}...
*@todoto display school field form element based on condition (if multiple school providing drop down box else static field) *@paramobject $mform *@returnarray of objects(form elements) */publicfunctionschool_formelement_condition($mform){global$DB, $CFG, $USER; ...
开发者ID:alanaipe2015,项目名称:moodle,代码行数:31,代码来源:comment_post.php 示例11: test_course_check_module_updates_since ▲点赞 1▼ publicfunctiontest_course_check_module_updates_since(){global$CFG, $DB, $USER;require_once$CFG->dirroot .'/mod/glossary/lib.php';require_once$CFG->dirro...
开发者ID:alanaipe2015,项目名称:moodle,代码行数:29,代码来源:definelib.php 示例3: useredit_shared_definition ▲点赞 3▼ /** * Powerful function that is used by edit and editadvanced to add common form elements/rules/etc. * *@parammoodleform $mform ...
示例3: RedirectUser ▲点赞 5▼ defRedirectUser(self, strPostData):ifbottle ==None:returnresponse.status =303response.set_header('Location',"{0}?{1}".format(self._provider,strPostData )) response.add_header('Content-Type','application/x-www-form-urlencoded')returnresponse ...