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_EPRESENCE', $this->getPrivilege());
\r
16 define('AT_ADMIN_PRIV_EPRESENCE', $this->getAdminPrivilege());
\r
19 * create a side menu box/stack.
\r
21 //$this->_stacks['epresence'] = array('title_var'=>'epresence', 'file'=>'mods/epresence/side_menu.inc.php');
\r
22 // ** possible alternative: **
\r
23 // $this->addStack('epresence', array('title_var' => 'epresence', 'file' => './side_menu.inc.php');
\r
26 * if this module is to be made available to students on the Home or Main Navigation.
\r
28 $_student_tool = 'mods/epresence/index.php';
\r
29 // ** possible alternative: **
\r
30 // $this->addTool('./index.php');
\r
33 * add the admin pages when needed.
\r
35 if (admin_authenticate(AT_ADMIN_PRIV_EPRESENCE, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
36 $this->_pages[AT_NAV_ADMIN] = array('mods/epresence/index_admin.php');
\r
37 $this->_pages['mods/epresence/index_admin.php']['parent'] = AT_NAV_ADMIN;
\r
38 $this->_pages['mods/epresence/index_admin.php']['title_var'] = 'epresence';
\r
41 * instructor Manage section: **Not needed for now**
\r
43 $this->_pages['mods/epresence/index_instructor.php']['title_var'] = 'epresence';
\r
44 $this->_pages['mods/epresence/index_instructor.php']['parent'] = 'tools/index.php';
\r
45 // ** possible alternative: **
\r
46 // $this->pages['./index_instructor.php']['title_var'] = 'epresence';
\r
47 // $this->pages['./index_instructor.php']['parent'] = 'tools/index.php';
\r
52 $this->_pages['mods/epresence/index.php']['title_var'] = 'epresence';
\r
53 $this->_pages['mods/epresence/index.php']['img'] = 'mods/epresence/epresence_logo.gif';
\r