| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?PHP //$Id: block_recent_activity.php,v 1.10.2.1 2008/03/03 11:41:04 moodler Exp $ 2 3 class block_recent_activity extends block_base { 4 function init() { 5 $this->title = get_string('recentactivity'); 6 $this->version = 2007101509; 7 } 8 9 function get_content() { 10 global $COURSE; 11 12 if ($this->content !== NULL) { 13 return $this->content; 14 } 15 16 if (empty($this->instance)) { 17 $this->content = ''; 18 return $this->content; 19 } 20 21 $this->content = new stdClass; 22 $this->content->text = ''; 23 $this->content->footer = ''; 24 25 // Slightly hacky way to do it but... 26 ob_start(); 27 print_recent_activity($COURSE); 28 $this->content->text = ob_get_contents(); 29 ob_end_clean(); 30 31 return $this->content; 32 } 33 34 function applicable_formats() { 35 return array('all' => true, 'my' => false, 'tag' => false); 36 } 37 } 38 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |