Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
class block_progreso_detalles extends block_base
4
{
5
    public function init()
6
    {
7
        $this->title = get_string('pluginname', 'block_progreso_detalles');
8
    }
9
 
10
    // if you have a settings.php file
11
    public function has_config()
12
    {
13
        return false;
14
    }
15
 
16
    public function hide_header()
17
    {
18
        return false;
19
    }
20
 
21
    public function get_content()
22
    {
23
      if (isset($this->content)) {
24
          return $this->content;
25
      }
26
 
27
 
28
      $renderer = $this->page->get_renderer('block_progreso_detalles');
29
      $this->content = new stdClass();
30
      $this->content->text = $renderer->procesar($this->instance->id);
31
      return $this->content;
32
 
33
 
34
    }
35
 
36
    public function instance_allow_multiple()
37
    {
38
        return true;
39
    }
40
 
41
}