Proyectos de Subversion Moodle

Rev

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