AutorÃa | Ultima modificación | Ver Log |
<?phpclass block_progreso_detalles extends block_base{public function init(){$this->title = get_string('pluginname', 'block_progreso_detalles');}// if you have a settings.php filepublic function has_config(){return false;}public function hide_header(){return false;}public function get_content(){if (isset($this->content)) {return $this->content;}$renderer = $this->page->get_renderer('block_progreso_detalles');$this->content = new stdClass();$this->content->text = $renderer->procesar($this->instance->id);return $this->content;}public function instance_allow_multiple(){return true;}}