Proyectos de Subversion Moodle

Rev

Rev 340 | | Comparar con el anterior | 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
 
176 ariadna 9
class Progress extends Cesa
10
{
11
 
12
    public function __construct()
172 efrain 13
    {
184 ariadna 14
        parent::__construct('inprogress',  ['progreso_detalles'], 'side-pre');
172 efrain 15
    }
16
 
17
    public function render()
18
    {
19
        global $PAGE, $CFG, $OUTPUT;
176 ariadna 20
 
21
        $PAGE->set_url('/cesa/progress.php', array('userid' => $this->userID));
172 efrain 22
        $this->blockManager->load_blocks(true);
23
 
24
 
340 ariadna 25
        $this->validateIfExistBlocks('side-pre');
341 ariadna 26
        $this->addBlocksIfNotExist('inprogress');
172 efrain 27
 
28
        $view = $OUTPUT->header();
176 ariadna 29
        // $view .= $OUTPUT->blocks_for_region($this->regionName);
172 efrain 30
        //$view .= $OUTPUT->custom_block_region('content');
31
        $view .= $OUTPUT->footer();
32
 
33
 
34
        return $view;
35
    }
36
}
37
 
38
 
39
 
40
$cesaProgress = new Progress();
41
echo $cesaProgress->render();