changed git call from https to git readonly
[atutor.git] / mods / certificate / 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 /*******\r
13  * assign the instructor and admin privileges to the constants.\r
14  */\r
15 define('AT_PRIV_CERTIFICATE',       $this->getPrivilege());\r
16 define('AT_ADMIN_PRIV_CERTIFICATE', $this->getAdminPrivilege());\r
17 \r
18 /*******\r
19  * create a side menu box/stack.\r
20  */\r
21 //$this->_stacks['certificate'] = array('title_var'=>'certificate', 'file'=>'mods/certificate/side_menu.inc.php');\r
22 // ** possible alternative: **\r
23 // $this->addStack('certificate', array('title_var' => 'certificate', 'file' => './side_menu.inc.php');\r
24 \r
25 /*******\r
26  * if this module is to be made available to students on the Home or Main Navigation.\r
27  */\r
28 $_group_tool = $_student_tool = 'mods/certificate/index.php';\r
29 \r
30 /*******\r
31  * add the admin pages when needed.\r
32  */\r
33 //if (admin_authenticate(AT_ADMIN_PRIV_CERTIFICATE, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
34 //      $this->_pages[AT_NAV_ADMIN] = array('mods/certificate/index_admin.php');\r
35 //      $this->_pages['mods/certificate/index_admin.php']['title_var'] = 'certificate';\r
36 //      $this->_pages['mods/certificate/index_admin.php']['parent']    = AT_NAV_ADMIN;\r
37 //}\r
38 \r
39 /*******\r
40  * instructor Manage section:\r
41  */\r
42 $this->_pages['tools/tests/index.php']['children'] = array('mods/certificate/index_instructor.php');\r
43 $this->_pages['mods/certificate/index_instructor.php']['title_var'] = 'certificate';\r
44 $this->_pages['mods/certificate/index_instructor.php']['parent']   = 'tools/tests/index.php';\r
45 \r
46 $this->_pages['mods/certificate/index_instructor.php']['children'] = array('mods/certificate/certificate_create.php');\r
47 $this->_pages['mods/certificate/certificate_create.php']['title_var'] = 'create_certificate';\r
48 $this->_pages['mods/certificate/certificate_create.php']['parent']   = 'mods/certificate/index_instructor.php';\r
49 \r
50 $this->_pages['mods/certificate/certificate_delete.php']['title_var'] = 'delete_certificate';\r
51 $this->_pages['mods/certificate/certificate_delete.php']['parent']   = 'mods/certificate/index_instructor.php';\r
52 \r
53 $this->_pages['mods/certificate/certificate_edit.php']['title_var'] = 'edit_certificate';\r
54 $this->_pages['mods/certificate/certificate_edit.php']['parent']   = 'mods/certificate/index_instructor.php';\r
55 \r
56 // ** possible alternative: **\r
57 // $this->pages['./index_instructor.php']['title_var'] = 'certificate';\r
58 // $this->pages['./index_instructor.php']['parent']    = 'tools/index.php';\r
59 \r
60 /*******\r
61  * student page.\r
62  */\r
63 //$this->_pages[AT_NAV_COURSE] = array('mods/certificate/index_public.php');\r
64 $this->_pages['mods/certificate/index.php']['title_var'] = 'certificate';\r
65 $this->_pages['mods/certificate/index.php']['img']       = 'mods/certificate/certificate.gif';\r
66 //\r
67 //\r
68 ///* public pages */\r
69 //$this->_pages[AT_NAV_PUBLIC] = array('mods/certificate/index_public.php');\r
70 //$this->_pages['mods/certificate/index_public.php']['title_var'] = 'certificate';\r
71 //$this->_pages['mods/certificate/index_public.php']['parent'] = AT_NAV_PUBLIC;\r
72 //\r
73 ///* my start page pages */\r
74 //$this->_pages[AT_NAV_START]  = array('mods/certificate/index_mystart.php');\r
75 //$this->_pages['mods/certificate/index_mystart.php']['title_var'] = 'certificate';\r
76 //$this->_pages['mods/certificate/index_mystart.php']['parent'] = AT_NAV_START;\r
77 \r
78 function certificate_get_group_url($group_id) {\r
79         return 'mods/certificate/index.php';\r
80 }\r
81 ?>