<?php

/************************************************************************/
/* DOCEBO CORE - Framework												*/
/* ============================================							*/
/*																		*/
/* Copyright (c) 2005													*/
/* http://www.docebo.com												*/
/*																		*/
/* This program is free software. You can redistribute it and/or modify	*/
/* it under the terms of the GNU General Public License as published by	*/
/* the Free Software Foundation; either version 2 of the License.		*/
/************************************************************************/

/**
 * @package admin-core
 * @subpackage event
 * @version  $Id: class.event_manager.php 220 2006-04-09 14:55:58Z fabio $
 * @author   Emanuele Sandri <esandri@docebo.com>
 */

if(!defined('IN_DOCEBO')) die('You cannot access this file directly!');

require_once( $GLOBALS['where_framework'].'/lib/lib.event.php' );
require_once($GLOBALS['where_framework'].'/class.module/class.definition.php');

class Module_Event_Manager extends Module {
	
	function useExtraMenu() {
		return true;
	}
	
	function loadExtraMenu() {
		loadAdminModuleLanguage($this->module_name);
	}

	function loadBody() {
		require_once($GLOBALS['where_framework'].'/modules/'.$this->module_name.'/'.$this->module_name.'.php');
		eventDispatch( $GLOBALS['op'] );
	}
	
	// Function for permission managment
	function getAllToken($op) {
		return array( 
			'view' => array( 	'code' => 'view_event_manager',
								'name' => '_VIEW',
								'image' => 'standard/view.gif')
					);
		$op = $op;
	}

}

?>
