changed git call from https to git readonly
[atutor.git] / mods / certify / module.php
1 <?php\r
2 /*******\r
3  * doesn't allow this file to be loaded with a browser.\r
4  */\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
6 \r
7 /******\r
8  * this file must only be included within a Module obj\r
9  */\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
11 \r
12 $path = 'mods/certify/';\r
13 \r
14 /*******\r
15  * assign the instructor and admin privileges to the constants.\r
16  */\r
17 define('AT_PRIV_CERTIFY',       $this->getPrivilege());\r
18 define('AT_ADMIN_PRIV_CERTIFY', $this->getAdminPrivilege());\r
19 \r
20 /*******\r
21  * create a side menu box/stack.\r
22  */\r
23 // XXX: Not needed\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
27 \r
28 /*******\r
29  * if this module is to be made available to students on the Home or Main Navigation.\r
30  */\r
31 $_group_tool = $_student_tool = $path.'index.php';\r
32 \r
33 /*******\r
34  * add the admin pages when needed.\r
35  */\r
36 // XXX: Not needed\r
37 /*\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
42 }\r
43 */\r
44 /*******\r
45  * instructor Manage section:\r
46  */\r
47 \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
51 \r
52 // children of top page\r
53 $this->_pages[$path.'index_instructor.php']['children']  = array($path.'certify_certificate.php', \r
54                                                                                                                                                 );\r
55 \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
65 \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
69 \r
70 /*******\r
71  * student page.\r
72  */\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
78 \r
79 \r
80 /* public pages */\r
81 // XXX: Not needed\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
85 \r
86 /* my start page pages */\r
87 // XXX: Not needed\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
91 \r
92 //function certify_get_group_url($group_id) {\r
93 //      return $path.'index.php';\r
94 //}\r
95 ?>