protected function formatted_contents($output) {
        $this->get_content();
        $this->get_required_javascript();
        if (!empty($this->content->text)) {
            return $this->content->text;
        } else {
            return '';
        }
    }
protected function formatted_contents($output) {
        $this->get_content();
        $this->get_required_javascript();
        if (!empty($this->content->text)) {
            return $this->content->text;
        } else {
            return '';
        }
    }
protected function formatted_contents ( $ output ) { $ this -> get_content ( ) ; $ this -> get_required_javascript ( ) ; if ( ! empty ( $ this -> content -> text ) ) { return $ this -> content -> text ; } else { return '' ; } }
Convert the contents of the block to HTML.

This is used by block base classes like block_list to convert the structured
$this->content->list and $this->content->icons arrays to HTML. So, in most
blocks, you probaby want to override the {@link get_contents()} method,
which generates that structured representation of the contents.

@param $output The core_renderer to use when generating the output.
@return string the HTML that should appearn in the body of the block.
@since Moodle 2.0.
Convert the contents of the block to HTML .