changed git call from https to git readonly
[atutor.git] / mods / phpdoc / 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_PHPDOC',       $this->getPrivilege());\r
16 define('AT_ADMIN_PRIV_PHPDOC', $this->getAdminPrivilege());\r
17 \r
18 /*******\r
19  * create a side menu box/stack.\r
20  */\r
21 //$this->_stacks['phpdoc'] = array('title_var'=>'phpdoc', 'file'=>'mods/phpdoc/side_menu.inc.php');\r
22 // ** possible alternative: **\r
23 // $this->addStack('phpdoc', array('title_var' => 'phpdoc', '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/phpdoc/index.php';\r
29 \r
30 /*******\r
31  * add the admin pages when needed.\r
32  */\r
33 if (admin_authenticate(AT_ADMIN_PRIV_PHPDOC, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
34         $this->_pages[AT_NAV_ADMIN] = array('mods/phpdoc/index_admin.php');\r
35         $this->_pages['mods/phpdoc/PHPDoc/index.php']['title_var'] = 'phpdoc';\r
36         $this->_pages['mods/phpdoc/index_admin.php']['title_var'] = 'phpdoc';\r
37         $this->_pages['mods/phpdoc/index_admin.php']['parent']    = AT_NAV_ADMIN;\r
38 }\r
39 \r
40 /*******\r
41  * instructor Manage section:\r
42  */\r
43 //$this->_pages['mods/phpdoc/index_instructor.php']['title_var'] = 'phpdoc';\r
44 //$this->_pages['mods/phpdoc/index_instructor.php']['parent']   = 'tools/index.php';\r
45 // ** possible alternative: **\r
46 // $this->pages['./index_instructor.php']['title_var'] = 'phpdoc';\r
47 // $this->pages['./index_instructor.php']['parent']    = 'tools/index.php';\r
48 \r
49 /*******\r
50  * student page.\r
51  */\r
52 //$this->_pages['mods/phpdoc/index.php']['title_var'] = 'phpdoc';\r
53 //$this->_pages['mods/phpdoc/index.php']['img']       = 'mods/phpdoc/phpdoc.jpg';\r
54 \r
55 \r
56 /* public pages */\r
57 //$this->_pages[AT_NAV_PUBLIC] = array('mods/phpdoc/index_public.php');\r
58 //$this->_pages['mods/phpdoc/index_public.php']['title_var'] = 'phpdoc';\r
59 //$this->_pages['mods/phpdoc/index_public.php']['parent'] = AT_NAV_PUBLIC;\r
60 \r
61 /* my start page pages */\r
62 //$this->_pages[AT_NAV_START]  = array('mods/phpdoc/index_mystart.php');\r
63 //$this->_pages['mods/phpdoc/index_mystart.php']['title_var'] = 'phpdoc';\r
64 //$this->_pages['mods/phpdoc/index_mystart.php']['parent'] = AT_NAV_START;\r
65 \r
66 //function phpdoc_get_group_url($group_id) {\r
67 //      return 'mods/phpdoc/index.php';\r
68 //}\r
69 ?>