mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
160addd2b2
- Modified to use build_navigation() for breadcrumb generation. - Removed print_header method as base class now provides this functionality. Author: Matt Clarkson <mattc@catalyst.net.nz>
34 lines
638 B
PHP
34 lines
638 B
PHP
<?php // $Id$
|
|
|
|
require_once($CFG->libdir.'/pagelib.php');
|
|
|
|
define('PAGE_CHAT_VIEW', 'mod-chat-view');
|
|
|
|
page_map_class(PAGE_CHAT_VIEW, 'page_chat');
|
|
|
|
$DEFINEDPAGES = array(PAGE_CHAT_VIEW);
|
|
|
|
/**
|
|
* Class that models the behavior of a chat
|
|
*
|
|
* @author Jon Papaioannou
|
|
* @package pages
|
|
*/
|
|
|
|
class page_chat extends page_generic_activity {
|
|
|
|
function init_quick($data) {
|
|
if(empty($data->pageid)) {
|
|
error('Cannot quickly initialize page: empty course id');
|
|
}
|
|
$this->activityname = 'chat';
|
|
parent::init_quick($data);
|
|
}
|
|
|
|
function get_type() {
|
|
return PAGE_CHAT_VIEW;
|
|
}
|
|
}
|
|
|
|
?>
|