Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 */
23
 */
Línea 24... Línea 24...
24
 
24
 
25
require_once("../../config.php");
25
require_once("../../config.php");
26
require_once($CFG->dirroot.'/mod/assign/locallib.php');
26
require_once($CFG->dirroot.'/mod/assign/locallib.php');
27
// For this type of page this is the course id.
27
// For this type of page this is the course id.
Línea 28... Línea -...
28
$id = required_param('id', PARAM_INT);
-
 
29
 
-
 
30
$course = $DB->get_record('course', array('id' => $id), '*', MUST_EXIST);
-
 
31
require_login($course);
-
 
32
$PAGE->set_url('/mod/assign/index.php', array('id' => $id));
-
 
33
$PAGE->set_pagelayout('incourse');
28
$courseid = required_param('id', PARAM_INT);
34
 
-
 
35
\mod_assign\event\course_module_instance_list_viewed::create_from_course($course)->trigger();
-
 
36
 
-
 
37
// Print the header.
-
 
38
$strplural = get_string("modulenameplural", "assign");
-
 
39
$PAGE->navbar->add($strplural);
-
 
40
$PAGE->set_title($strplural);
-
 
41
$PAGE->set_heading($course->fullname);
-
 
42
echo $OUTPUT->header();
-
 
43
echo $OUTPUT->heading(format_string($strplural));
-
 
44
 
-
 
45
$context = context_course::instance($course->id);
-
 
46
 
-
 
47
require_capability('mod/assign:view', $context);
-
 
48
 
-
 
49
$assign = new assign($context, null, $course);
-
 
50
 
-