Proyectos de Subversion Moodle

Rev

Rev 178 | Rev 180 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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