Proyectos de Subversion Moodle

Rev

Rev 172 | Rev 174 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 172 Rev 173
Línea 1... Línea 1...
1
<?php
1
<?php
2
require_once(__DIR__ . '/cesa.php');
2
require_once(__DIR__ . '/cesa.php');
3
require_once($CFG->dirroot.'/course/renderer.php');
3
require_once($CFG->dirroot . '/course/renderer.php');
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
 
5
 
6
require_login();
6
require_login();
7
 
7
 
8
global $PAGE;
8
global $PAGE;
-
 
9
$PAGE->set_context(context_system::instance());
Línea 9... Línea 10...
9
$PAGE->set_context(context_system::instance());
10
 
10
 
11
class Courses extends Cesa
11
class Courses extends Cesa {
12
{
12
 
13
 
13
    public function __construct()
14
    public function __construct()
14
    {
15
    {
15
        parent::__construct('courses', 'cursos_catalogo_ajax', 'below-content');
16
        parent::__construct('courses', 'block_cursos_catalogo_ajax', 'side-pre');
16
    }
17
    }
Línea 17... Línea 18...
17
    
18
 
18
    public function render()
19
    public function render()
19
    {
20
    {
Línea 20... Línea 21...
20
        global $PAGE, $CFG, $OUTPUT;
21
        global $PAGE, $CFG, $OUTPUT;
Línea 21... Línea 22...
21
 
22
 
22
        $PAGE->set_url('/cesa/courses.php', array('userid' => $this->userID));
23
        $PAGE->set_url('/cesa/courses.php', array('userid' => $this->userID));
23
        $this->addRegion();
24
        $this->addRegion();
24
        
25
 
Línea 25... Línea 26...
25
 
26
 
26
        $this->blockManager->load_blocks(true);
27
        $this->blockManager->load_blocks(true);
27
 
28
 
28
        
29
 
29
        
30
 
30
        $this->validateIfExistBlock();
31
        $this->validateIfExistBlock();
31
        $this->redirectIfNotExistBlock('courses');
32
        $this->redirectIfNotExistBlock('courses');
Línea 32... Línea 33...
32
 
33
 
33
        $view = $OUTPUT->header();
-
 
34
        //$view .= $OUTPUT->blocks_for_region($this->regionName);
34
        $view = $OUTPUT->header();
-
 
35
        //$view .= $OUTPUT->blocks_for_region($this->regionName);