3 * doesn't allow this file to be loaded with a browser.
\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
8 * this file must only be included within a Module obj
\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
13 * assign the instructor and admin privileges to the constants.
\r
15 define('AT_PRIV_MAHARA', $this->getPrivilege());
\r
16 define('AT_ADMIN_PRIV_MAHARA', $this->getAdminPrivilege());
\r
20 * if this module is to be made available to students on the Home or Main Navigation.
\r
22 $_group_tool = $_student_tool = 'mods/mahara/index.php';
\r
27 * add the admin pages when needed.
\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
36 * instructor Manage section:
\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
44 $this->_pages['mods/mahara/index.php']['title_var'] = 'mahara';
\r
45 $this->_pages['mods/mahara/index.php']['img'] = 'mods/mahara/mahara.gif';
\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