MDL-10984 more language strings
[moodle-pu.git] / blocks / html / block_html.php
blobff539610cbf49a9ceae4bd2ea2ae5b933599adf4
1 <?php //$Id$
3 class block_html extends block_base {
5 function init() {
6 $this->title = get_string('html', 'block_html');
7 $this->version = 2004123000;
10 function applicable_formats() {
11 return array('all' => true);
14 function specialization() {
15 $this->title = isset($this->config->title) ? $this->config->title : get_string('newhtmlblock', 'block_html');
18 function instance_allow_multiple() {
19 return true;
22 function get_content() {
23 if ($this->content !== NULL) {
24 return $this->content;
27 $filteropt = new stdClass;
28 $filteropt->noclean = true;
30 $this->content = new stdClass;
31 $this->content->text = isset($this->config->text) ? format_text($this->config->text, FORMAT_HTML, $filteropt) : '';
32 $this->content->footer = '';
34 unset($filteropt); // memory footprint
36 return $this->content;