Proyectos de Subversion Moodle

Rev

Rev 179 | Rev 181 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 179 Rev 180
Línea 1... Línea 1...
1
<?php
1
<?php
2
require_once(__DIR__ . '/cesa.php');
2
require_once(__DIR__ . '/cesa.php');
3
 
-
 
4
global $PAGE;
-
 
5
$PAGE->set_context(context_system::instance());
-
 
6
 
-
 
7
class StaticsBlocks extends Cesa
3
class StaticsBlocks extends Cesa
8
{
4
{
Línea 9... Línea 5...
9
 
5
 
10
    public function __construct()
6
    public function __construct()
11
    {
7
    {
12
        parent::__construct('statics_blocks', 'comments', 'side-pre');
8
        parent::__construct('statics_blocks', 'comments', 'bellow-content');
13
        parent::__construct('statics_blocks', 'messageteacher', 'side-pre');
9
        parent::__construct('statics_blocks', 'messageteacher', 'bellow-content');
Línea 14... Línea 10...
14
    }
10
    }
15
 
11
 
16
    public function render()
12
    public function render()
Línea 21... Línea 17...
21
        $this->addRegion();
17
        $this->addRegion();
Línea 22... Línea 18...
22
 
18
 
Línea 23... Línea -...
23
 
-
 
24
        $this->blockManager->load_blocks(true);
-
 
25
 
19
 
26
 
20
        $this->blockManager->load_blocks(true);
Línea 27... Línea 21...
27
 
21
 
28
        $this->validateIfExistBlock();
22
        $this->validateIfExistBlock();