3 require_once($CFG->libdir
.'/pagelib.php');
4 require_once($CFG->dirroot
.'/course/lib.php'); // needed for some blocks
6 define('PAGE_DATA_VIEW', 'mod-data-view');
8 page_map_class(PAGE_DATA_VIEW
, 'page_data');
10 $DEFINEDPAGES = array(PAGE_DATA_VIEW
);
15 * Class that models the behavior of a data
17 * @author Jon Papaioannou
21 class page_data
extends page_generic_activity
{
23 function init_quick($data) {
24 if(empty($data->pageid
)) {
25 error('Cannot quickly initialize page: empty course id');
27 $this->activityname
= 'data';
28 parent
::init_quick($data);
31 function print_header($title, $morenavlinks = NULL, $meta) {
32 parent
::print_header($title, $morenavlinks, '', $meta);
36 return PAGE_DATA_VIEW
;