3 This file defines privileges, and where the modules will be linked into ATutor, as tabs, tool icons, or side menu blocks.
\r
7 * doesn't allow this file to be loaded with a browser.
\r
9 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
12 * this file must only be included within a Module obj
\r
14 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
17 * assign the instructor and admin privileges to the constants.
\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
24 * create a side menu box/stack.
\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
31 * if this module is to be made available to students on the Home or Main Navigation.
\r
33 $_student_tool = 'mods/cmap/index.php';
\r
34 // ** possible alternative: **
\r
35 // $this->addTool('./index.php');
\r
38 * add the admin pages when needed.
\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
47 * instructor Manage section:
\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
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
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
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