Proyectos de Subversion Moodle

Rev

Rev 185 | | 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
 
175 ariadna 5
class Forums extends Cesa
6
{
172 efrain 7
 
175 ariadna 8
    public function __construct()
9
    {
184 ariadna 10
        parent::__construct('forum', ['foros_listado'], 'side-pre');
172 efrain 11
    }
12
 
13
    public function render()
14
    {
15
        global $PAGE, $CFG, $OUTPUT;
16
 
17
 
18
        $PAGE->set_title('Foros');
19
        $PAGE->set_url('/cesa/forums.php', array('userid' => $this->userID));
20
        //$PAGE->requires->js('/theme/edumynew/javascript/jquery.mousewheel.js', true);
175 ariadna 21
        // $PAGE->requires->js('/theme/edumynew/javascript/jquery.mCustomScrollbar.js', true);
172 efrain 22
        //$PAGE->requires->css('/theme/edumynew/style/jquery.mCustomScrollbar.css', true);
23
        //$PAGE->requires->jquery();
175 ariadna 24
 
25
 
26
        // $PAGE->requires->css(new moodle_url($CFG->wwwroot . '/theme/edumynew/style/jquery.mCustomScrollbar.css'));
172 efrain 27
        //$PAGE->requires->js(new moodle_url($CFG->wwwroot . '/theme/edumynew/javascript/jquery.mCustomScrollbar.concat.min.js'), true);
175 ariadna 28
 
29
 
340 ariadna 30
        $this->addRegion('side-pre');
172 efrain 31
 
32
 
33
        $this->blockManager->load_blocks(true);
340 ariadna 34
        $this->validateIfExistBlocks('side-pre');
185 ariadna 35
        $this->addBlocksIfNotExist('forums');
172 efrain 36
 
37
        $view = $OUTPUT->header();
38
        //$view .= $OUTPUT->blocks_for_region($this->regionName);
39
        $view .= $OUTPUT->footer();
175 ariadna 40
 
172 efrain 41
        return $view;
42
    }
43
}
44
 
45
$cesaForums = new Forums();
46
echo $cesaForums->render();