MDL-11517 reserved word MOD used in table alias in questions backup code
[moodle-pu.git] / mod / data / pagelib.php
blob0ff3a02b8341ff549176cbefa599af68b788a533
1 <?php // $Id$
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);
14 /**
15 * Class that models the behavior of a data
17 * @author Jon Papaioannou
18 * @package pages
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);
35 function get_type() {
36 return PAGE_DATA_VIEW;