3 class block_recent_activity extends block_base {
5 $this->title = get_string('pluginname', 'block_recent_activity');
6 $this->version = 2007101509;
9 function get_content() {
10 if ($this->content !== NULL) {
11 return $this->content;
14 if (empty($this->instance)) {
16 return $this->content;
19 $this->content = new stdClass;
20 $this->content->text = '';
21 $this->content->footer = '';
23 // Slightly hacky way to do it but...
25 print_recent_activity($this->page->course);
26 $this->content->text = ob_get_contents();
29 return $this->content;
32 function applicable_formats() {
33 return array('all' => true, 'my' => false, 'tag' => false);