046c947cd7c4116fb4a27bf7c156fb9276a3111e
[atutor.git] / mods / cmap / module.php
1 <?php\r
2 /*\r
3 This file defines privileges, and where the modules will be linked into ATutor, as tabs, tool icons, or side menu blocks.\r
4 \r
5 */\r
6 /*******\r
7  * doesn't allow this file to be loaded with a browser.\r
8  */\r
9 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
10 \r
11 /******\r
12  * this file must only be included within a Module obj\r
13  */\r
14 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
15 \r
16 /*******\r
17  * assign the instructor and admin privileges to the constants.\r
18  */\r
19 define('AT_PRIV_CMAP',       $this->getPrivilege());\r
20 define('AT_ADMIN_PRIV_CMAP', $this->getAdminPrivilege());\r
21 define('AT_CMAP_WSDL', 'http://greg-pc.atrc.utoronto.ca::8080/services/CmapWebService');\r
22 \r
23 /*******\r
24  * create a side menu box/stack.\r
25  */\r
26 //$this->_stacks['cmap'] = array('title_var'=>'cmap', 'file'=>'mods/cmap/side_menu.inc.php');\r
27 // ** possible alternative: **\r
28 // $this->addStack('cmap', array('title_var' => 'cmap', 'file' => './side_menu.inc.php');\r
29 \r
30 /*******\r
31  * if this module is to be made available to students on the Home or Main Navigation.\r
32  */\r
33 $_student_tool = 'mods/cmap/index.php';\r
34 // ** possible alternative: **\r
35 // $this->addTool('./index.php');\r
36 \r
37 /*******\r
38  * add the admin pages when needed.\r
39  */\r
40 if (admin_authenticate(AT_ADMIN_PRIV_CMAP, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
41         $this->_pages[AT_NAV_ADMIN] = array('mods/cmap/index_admin.php');\r
42         $this->_pages['mods/cmap/index_admin.php']['title_var'] = 'cmap';\r
43         $this->_pages['mods/cmap/index_admin.php']['parent']    = AT_NAV_ADMIN;\r
44 }\r
45 \r
46 /*******\r
47  * instructor Manage section:\r
48  */\r
49 $this->_pages['mods/cmap/index_instructor.php']['title_var'] = 'cmap';\r
50 $this->_pages['mods/cmap/index_instructor.php']['parent']   = 'tools/index.php';\r
51 // ** possible alternative: **\r
52 // $this->pages['./index_instructor.php']['title_var'] = 'cmap';\r
53 // $this->pages['./index_instructor.php']['parent']    = 'tools/index.php';\r
54 \r
55 /*******\r
56  * student page.\r
57  */\r
58 $this->_pages['mods/cmap/index.php']['title_var'] = 'cmap';\r
59 $this->_pages['mods/cmap/index.php']['img']       = 'mods/cmap/cmap_logo.jpg';\r
60 \r
61 \r
62 /* public pages */\r
63 // $this->_pages[AT_NAV_PUBLIC] = array('mods/cmap/index_public.php');\r
64 // $this->_pages['mods/cmap/index_public.php']['title_var'] = 'cmap';\r
65 // $this->_pages['mods/cmap/index_public.php']['parent'] = 'login.php';\r
66 // $this->_pages['login.php']['children'] = array('mods/cmap/index_public.php');\r
67 \r
68 /* my start page pages */\r
69 // $this->_pages[AT_NAV_START]  = array('mods/cmap/index_mystart.php');\r
70 // $this->_pages['mods/cmap/index_mystart.php']['title_var'] = 'cmap';\r
71 // $this->_pages['mods/cmap/index_mystart.php']['parent'] = 'users/index.php';\r
72 // $this->_pages['users/index.php']['children'] = array('mods/cmap/index_mystart.php');\r
73 ?>