ae242ad412f38555b5799d588b294bbc162d5b68
[atutor.git] / mods / marratech / module.php
1 <?php\r
2 /*******\r
3  * doesn't allow this file to be loaded with a browser.\r
4  */\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
6 \r
7 /******\r
8  * this file must only be included within a Module obj\r
9  */\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
11 \r
12 /*******\r
13  * assign the instructor and admin privileges to the constants.\r
14  */\r
15 define('AT_ADMIN_PRIV_MARRATECH', $this->getAdminPrivilege());\r
16 \r
17 /*******\r
18  * if this module is to be made available to students on the Home or Main Navigation.\r
19  */\r
20 $_student_tool = 'mods/marratech/index.php';\r
21 \r
22 /*******\r
23  * add the admin pages when needed.\r
24  */\r
25 if (admin_authenticate(AT_ADMIN_PRIV_MARRATECH, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
26         $this->_pages[AT_NAV_ADMIN] = array('mods/marratech/marratech.php');\r
27         $this->_pages['mods/marratech/marratech.php']['title_var'] = 'marratech';\r
28         $this->_pages['mods/marratech/marratech.php']['parent']    = AT_NAV_ADMIN;\r
29 }\r
30 \r
31 /*******\r
32  * student page.\r
33  */\r
34 $this->_pages['mods/marratech/index.php']['title_var'] = 'marratech';\r
35 $this->_pages['mods/marratech/index.php']['img']       = 'mods/marratech/marratech_logo.jpg';\r
36 \r
37 \r
38 ?>