Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

<?php

class block_progreso_sinopsis extends block_base 
{
    public function init() 
    {
        $this->title = get_string('pluginname', 'block_progreso_sinopsis');
    }

    // 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_progreso_sinopsis');
      $this->content = new stdClass();
      $this->content->text = $renderer->procesar($this->instance->id);
      return $this->content;

    
    }

    public function instance_allow_multiple() 
    {
        return true;
    }

}