Proyectos de Subversion Moodle

Rev

Rev 180 | Rev 183 | 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
class StaticsBlocks extends Cesa
4
{
5
 
6
    public function __construct()
7
    {
181 ariadna 8
        parent::__construct('statics_blocks', 'comments', 'side-pre');
177 ariadna 9
    }
10
 
11
    public function render()
12
    {
13
        global $PAGE, $CFG, $OUTPUT;
14
 
178 ariadna 15
        $PAGE->set_url('/cesa/statics_blocks.php', array('userid' => $this->userID));
177 ariadna 16
        $this->addRegion();
17
 
18
 
19
        $this->blockManager->load_blocks(true);
20
 
21
        $this->validateIfExistBlock();
179 ariadna 22
        $this->redirectIfNotExistBlock('statics_blocks');
177 ariadna 23
 
24
        $view = $OUTPUT->header();
25
        //$view .= $OUTPUT->blocks_for_region($this->regionName);
26
        $view .= $OUTPUT->footer();
27
 
28
        return $view;
29
    }
30
}
31
 
32
$statics_blocks = new StaticsBlocks();
33
echo $statics_blocks->render();