3 require_once($CFG->dirroot
.'/course/lib.php');
5 class block_recent_activity
extends block_base
{
7 $this->title
= get_string('pluginname', 'block_recent_activity');
10 function get_content() {
11 if ($this->content
!== NULL) {
12 return $this->content
;
15 if (empty($this->instance
)) {
17 return $this->content
;
20 $this->content
= new stdClass
;
21 $this->content
->text
= '';
22 $this->content
->footer
= '';
24 // Slightly hacky way to do it but...
26 print_recent_activity($this->page
->course
);
27 $this->content
->text
= ob_get_contents();
30 return $this->content
;
33 function applicable_formats() {
34 return array('all' => true, 'my' => false, 'tag' => false);