AutorÃa | Ultima modificación | Ver Log |
<?php
class block_cursosrecientes extends block_base
{
public function init()
{
$this->title = get_string('pluginname', 'block_cursosrecientes');
}
// if you have a settings.php file
public 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_cursosrecientes');
$this->content = new stdClass();
$this->content->text = $renderer->procesar($this->instance->id);
return $this->content;
}
public function instance_allow_multiple()
{
return true;
}
}