remove old readme
[atutor.git] / mods / _core / properties / module.php
1 <?php\r
2 /** snippit to use when extending Modules\r
3 class PropertiesModule extends Module {\r
4 \r
5         function PropertiesModule($row) {\r
6                 parent::Module($row);\r
7 \r
8                 define('AT_PRIV_ADMIN', $row['privilege']);\r
9         }\r
10 \r
11         function delete() {\r
12 \r
13         }\r
14 }\r
15 return;\r
16 **/\r
17 \r
18 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
19 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
20 \r
21 if (!defined('AT_PRIV_ADMIN')) {\r
22         define('AT_PRIV_ADMIN', $this->getPrivilege());\r
23 }\r
24 \r
25 //admin pages\r
26 $this->_pages['mods/_core/properties/admin/edit_course.php']['title_var'] = 'course_properties';\r
27 $this->_pages['mods/_core/properties/admin/edit_course.php']['parent']    = 'mods/_core/courses/admin/courses.php';\r
28 \r
29 $this->_pages['mods/_core/properties/admin/delete_course.php']['title_var'] = 'delete_course';\r
30 $this->_pages['mods/_core/properties/admin/delete_course.php']['parent']    = 'mods/_core/courses/admin/courses.php';\r
31 \r
32 \r
33 //instructor pages\r
34 $this->_pages['mods/_core/properties/course_properties.php']['title_var'] = 'properties';\r
35 $this->_pages['mods/_core/properties/course_properties.php']['parent']    = 'tools/index.php';\r
36 $this->_pages['mods/_core/properties/course_properties.php']['children']  = array('mods/_core/properties/delete_course.php', 'mods/_core/properties/access.php');\r
37 $this->_pages['mods/_core/properties/course_properties.php']['guide']     = 'instructor/?p=properties.php';\r
38 \r
39         $this->_pages['mods/_core/properties/delete_course.php']['title_var'] = 'delete_course';\r
40         $this->_pages['mods/_core/properties/delete_course.php']['parent']    = 'mods/_core/properties/course_properties.php';\r
41 \r
42         $this->_pages['mods/_core/properties/access.php']['title_var'] = 'authenticated_access';\r
43         $this->_pages['mods/_core/properties/access.php']['parent']    = 'mods/_core/properties/course_properties.php';\r
44         $this->_pages['mods/_core/properties/access.php']['guide']     = 'instructor/?p=authenticated_access.php';\r
45 \r
46 ?>