Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/workshop/allocation.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Variables

 $cmid = required_param('cmid', PARAM_INT)
 $method = optional_param('method', 'manual', PARAM_ALPHA)
 $cm = get_coursemodule_from_id('workshop', $cmid, 0, false, MUST_EXIST)
 $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)
 $workshop = $DB->get_record('workshop', array('id' => $cm->instance), '*', MUST_EXIST)
 $context = $PAGE->context
 $allocator = $workshop->allocator_instance($method)
 $initresult = $allocator->init()
 $output = $PAGE->get_renderer('mod_workshop')
 $allocators = workshop::installed_allocators()
if(!empty($allocators)) $tabs [] = $row

Variable Documentation

$allocator = $workshop->allocator_instance($method)

Definition at line 52 of file allocation.php.

Definition at line 61 of file allocation.php.

Definition at line 37 of file allocation.php.

Definition at line 34 of file allocation.php.

$context = $PAGE->context

Definition at line 45 of file allocation.php.

$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)

Definition at line 38 of file allocation.php.

$initresult = $allocator->init()

Definition at line 53 of file allocation.php.

$method = optional_param('method', 'manual', PARAM_ALPHA)

Definition at line 35 of file allocation.php.

$output = $PAGE->get_renderer('mod_workshop')

Definition at line 58 of file allocation.php.

if (!empty($allocators)) $tabs[] = $row

Definition at line 74 of file allocation.php.

Definition at line 39 of file allocation.php.

 All Data Structures Namespaces Files Functions Variables Enumerations