mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
ad7767be7a
- 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>
41 lines
859 B
PHP
Executable File
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;
|
|
}
|
|
}
|
|
|
|
?>
|