AutorÃa | Ultima modificación | Ver Log |
<?phpclass block_cesa_menu_acceso_rapido extends block_base{public function init(){$this->title = get_string('pluginname', 'block_cesa_menu_acceso_rapido');}// 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;} else {$this->content = new \stdClass();}$renderer = $this->page->get_renderer('block_cesa_menu_acceso_rapido');$this->content->text = $renderer->procesar();return $this->content;}public function instance_allow_multiple(){return false;}public function get_config_for_external() {// Return all settings for all users since it is safe (no private keys, etc..).$configs = get_config('block_cesa_menu_acceso_rapido');return (object) ['instance' => new stdClass(),'plugin' => $configs,];}}