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
12 $path = 'mods/certify/';
\r
15 * assign the instructor and admin privileges to the constants.
\r
17 define('AT_PRIV_CERTIFY', $this->getPrivilege());
\r
18 define('AT_ADMIN_PRIV_CERTIFY', $this->getAdminPrivilege());
\r
21 * create a side menu box/stack.
\r
24 //$this->_stacks['certify'] = array('title_var'=>'certify', 'file'=>$path.'side_menu.inc.php');
\r
25 // ** possible alternative: **
\r
26 // $this->addStack('certify', array('title_var' => 'certify', 'file' => './side_menu.inc.php');
\r
29 * if this module is to be made available to students on the Home or Main Navigation.
\r
31 $_group_tool = $_student_tool = $path.'index.php';
\r
34 * add the admin pages when needed.
\r
38 if (admin_authenticate(AT_ADMIN_PRIV_HELLO_WORLD, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
39 $this->_pages[AT_NAV_ADMIN] = array($path.'index_admin.php');
\r
40 $this->_pages[$path.'index_admin.php']['title_var'] = 'Certify';
\r
41 $this->_pages[$path.'index_admin.php']['parent'] = AT_NAV_ADMIN;
\r
45 * instructor Manage section:
\r
48 // top page, under manage
\r
49 $this->_pages[$path.'index_instructor.php']['title_var'] = 'Certify';
\r
50 $this->_pages[$path.'index_instructor.php']['parent'] = 'tools/index.php';
\r
52 // children of top page
\r
53 $this->_pages[$path.'index_instructor.php']['children'] = array($path.'certify_certificate.php',
\r
56 // sub pages with navigation
\r
57 $this->_pages[$path.'certify_certificate.php']['title_var'] = 'certify_add_certificate';
\r
58 $this->_pages[$path.'certify_certificate.php']['parent'] = $path.'index_instructor.php';
\r
59 $this->_pages[$path.'certify_tests.php']['title_var'] = 'certify_tests';
\r
60 $this->_pages[$path.'certify_tests.php']['parent'] = $path.'index_instructor.php';
\r
61 $this->_pages[$path.'certify_student_status.php']['title_var'] = 'certify_student_status';
\r
62 $this->_pages[$path.'certify_student_status.php']['parent'] = $path.'index_instructor.php';
\r
63 $this->_pages[$path.'certify_delete.php']['title_var'] = 'certify_delete';
\r
64 $this->_pages[$path.'certify_delete.php']['parent'] = $path.'index_instructor.php';
\r
66 // ** possible alternative: **
\r
67 // $this->pages['./index_instructor.php']['title_var'] = 'certify';
\r
68 // $this->pages['./index_instructor.php']['parent'] = 'tools/index.php';
\r
73 $this->_pages[$path.'index.php']['title_var'] = 'certify_certificates';
\r
74 $this->_pages[$path.'index.php']['img'] = $path.'certify.gif';
\r
75 $this->_pages[$path.'download_certificate.php']['title_var'] = 'download_certificate';
\r
76 $this->_pages[$path.'download_certificate.php']['img'] = $path.'certify.gif';
\r
77 $this->_pages[$path.'download_certificate.php']['parent'] = $path.'index.php';
\r
82 //$this->_pages[AT_NAV_PUBLIC] = array($path.'index_public.php');
\r
83 //$this->_pages[$path.'index_public.php']['title_var'] = 'certify';
\r
84 //$this->_pages[$path.'index_public.php']['parent'] = AT_NAV_PUBLIC;
\r
86 /* my start page pages */
\r
88 //$this->_pages[AT_NAV_START] = array($path.'index_mystart.php');
\r
89 //$this->_pages[$path.'index_mystart.php']['title_var'] = 'certify';
\r
90 //$this->_pages[$path.'index_mystart.php']['parent'] = AT_NAV_START;
\r
92 //function certify_get_group_url($group_id) {
\r
93 // return $path.'index.php';
\r