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
);
12 * Class that models the behavior of a chat
14 * @author Jon Papaioannou
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);
29 return PAGE_CHAT_VIEW
;