Proyectos de Subversion Moodle

Rev

Rev 175 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php
require_once(__DIR__ . '/cesa.php');

 
class Forums extends Cesa {

    public function __construct() {
        parent::__construct('forum','foros_listado', 'below-content');

    }

    public function render()
    {
        global $PAGE, $CFG, $OUTPUT;


        $PAGE->set_title('Foros');
        $PAGE->set_url('/cesa/forums.php', array('userid' => $this->userID));
        //$PAGE->requires->js('/theme/edumynew/javascript/jquery.mousewheel.js', true);
       // $PAGE->requires->js('/theme/edumynew/javascript/jquery.mCustomScrollbar.js', true);
        //$PAGE->requires->css('/theme/edumynew/style/jquery.mCustomScrollbar.css', true);
        //$PAGE->requires->jquery();
        
  
       // $PAGE->requires->css(new moodle_url($CFG->wwwroot . '/theme/edumynew/style/jquery.mCustomScrollbar.css'));
        //$PAGE->requires->js(new moodle_url($CFG->wwwroot . '/theme/edumynew/javascript/jquery.mCustomScrollbar.concat.min.js'), true);
        
        
        $this->addRegion();


        $this->blockManager->load_blocks(true);
        $this->validateIfExistBlock();
        $this->redirectIfNotExistBlock('forums');

        $view = $OUTPUT->header();
        //$view .= $OUTPUT->blocks_for_region($this->regionName);
        $view .= $OUTPUT->footer();
        
        return $view;
    }
}

$cesaForums = new Forums();
echo $cesaForums->render();