adding some strings
[moodle-linuxchix.git] / mod / chat / pagelib.php
blobe1718f0509860a3432e2c9e9047f7beb016d1ff4
1 <?php // $Id$
3 require_once($CFG->libdir.'/pagelib.php');
5 define('PAGE_CHAT_VIEW', 'mod-chat-view');
7 page_map_class(PAGE_CHAT_VIEW, 'page_chat');
9 $DEFINEDPAGES = array(PAGE_CHAT_VIEW);
11 /**
12 * Class that models the behavior of a chat
14 * @author Jon Papaioannou
15 * @package pages
18 class page_chat extends page_generic_activity {
20 function init_quick($data) {
21 if(empty($data->pageid)) {
22 error('Cannot quickly initialize page: empty course id');
24 $this->activityname = 'chat';
25 parent::init_quick($data);
28 function get_type() {
29 return PAGE_CHAT_VIEW;