3 class block_recent_activity
extends block_base
{
5 $this->title
= get_string('recentactivity');
6 $this->version
= 2004042900;
9 function get_content() {
12 if ($this->content
!== NULL) {
13 return $this->content
;
16 if (empty($this->instance
)) {
18 return $this->content
;
21 $this->content
= new stdClass
;
22 $this->content
->text
= '';
23 $this->content
->footer
= '';
25 // Slightly hacky way to do it but...
27 print_recent_activity($COURSE);
28 $this->content
->text
= ob_get_contents();
31 return $this->content
;
34 function applicable_formats() {
35 return array('all' => true, 'my' => false);