moodle/mod/data/pagelib.php
mattc-catalyst ad7767be7a Breadcrumbs: mod/data changes
- Modified to use build_navigation() for breadcrumb generation.
- Removed print_header method is now provided by base class.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 21:05:21 +00:00

41 lines
859 B
PHP
Executable File

<?php // $Id$
require_once($CFG->libdir.'/pagelib.php');
require_once($CFG->dirroot.'/course/lib.php'); // needed for some blocks
define('PAGE_DATA_VIEW', 'mod-data-view');
page_map_class(PAGE_DATA_VIEW, 'page_data');
$DEFINEDPAGES = array(PAGE_DATA_VIEW);
/*
*/
/**
* Class that models the behavior of a data
*
* @author Jon Papaioannou
* @package pages
*/
class page_data extends page_generic_activity {
function init_quick($data) {
if(empty($data->pageid)) {
error('Cannot quickly initialize page: empty course id');
}
$this->activityname = 'data';
parent::init_quick($data);
}
function print_header($title, $morebreadcrumbs = NULL, $meta) {
parent::print_header($title, $morebreadcrumbs, '', $meta);
}
function get_type() {
return PAGE_DATA_VIEW;
}
}
?>