Proyectos de Subversion Moodle

Rev

Rev 176 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
172 efrain 1
<?php
2
require_once(__DIR__ . '/cesa.php');
3
 
4
require_login();
5
 
6
global $PAGE;
7
$PAGE->set_context(context_system::instance());
8
 
9
class Progress extends Cesa {
10
 
11
    public function __construct()
12
    {
13
        parent::__construct('inprogress',  'progreso_detalles', 'below-content');
14
    }
15
 
16
    public function render()
17
    {
18
        global $PAGE, $CFG, $OUTPUT;
19
 
20
        $PAGE->set_url('/cesa/progress.php', array('userid' => $this->userID));
21
        $this->blockManager->load_blocks(true);
22
 
23
 
24
        $this->validateIfExistBlock();
25
        $this->redirectIfNotExistBlock('progress');
26
 
27
        $view = $OUTPUT->header();
28
       // $view .= $OUTPUT->blocks_for_region($this->regionName);
29
        //$view .= $OUTPUT->custom_block_region('content');
30
        $view .= $OUTPUT->footer();
31
 
32
 
33
        return $view;
34
    }
35
}
36
 
37
 
38
 
39
$cesaProgress = new Progress();
40
echo $cesaProgress->render();
41