changed git call from https to git readonly
[atutor.git] / mods / mahara / 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_PRIV_MAHARA',       $this->getPrivilege());\r
16 define('AT_ADMIN_PRIV_MAHARA', $this->getAdminPrivilege());\r
17 \r
18 \r
19 /*******\r
20  * if this module is to be made available to students on the Home or Main Navigation.\r
21  */\r
22 $_group_tool = $_student_tool = 'mods/mahara/index.php';\r
23 \r
24 \r
25 \r
26 /*******\r
27  * add the admin pages when needed.\r
28  */\r
29 if (admin_authenticate(AT_ADMIN_PRIV_MAHARA, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
30         $this->_pages[AT_NAV_ADMIN] = array('mods/mahara/index_admin.php');\r
31         $this->_pages['mods/mahara/index_admin.php']['title_var'] = 'mahara';\r
32         $this->_pages['mods/mahara/index_admin.php']['parent']    = AT_NAV_ADMIN;\r
33 }\r
34 \r
35 /*******\r
36  * instructor Manage section:\r
37  */\r
38 //$this->_pages['mods/mahara/index_instructor.php']['title_var'] = 'mahara';\r
39 //$this->_pages['mods/mahara/index_instructor.php']['parent']   = 'tools/index.php';\r
40 \r
41 /*******\r
42  * student page.\r
43  */\r
44 $this->_pages['mods/mahara/index.php']['title_var'] = 'mahara';\r
45 $this->_pages['mods/mahara/index.php']['img']       = 'mods/mahara/mahara.gif';\r
46 \r
47 /* my start page pages */\r
48 $this->_pages[AT_NAV_START]  = array('mods/mahara/index.php');\r
49 $this->_pages['mods/mahara/index.php']['title_var'] = 'mahara';\r
50 $this->_pages['mods/mahara/index.php']['parent'] = AT_NAV_START;\r
51 \r
52 ?>