remove old readme
[atutor.git] / docs / mods / _standard / file_storage / module.php
1 <?php\r
2 if (!defined('AT_INCLUDE_PATH')) { exit; }\r
3 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
4 \r
5 define('AT_PRIV_FILE_STORAGE',       $this->getPrivilege() );\r
6 // define('AT_ADMIN_PRIV_FILE_STORAGE',       $this->getAdminPrivilege() );\r
7 \r
8 \r
9 // if this module is to be made available to students on the Home or Main Navigation\r
10 $_group_tool = $_student_tool = 'mods/_standard/file_storage/index.php';\r
11 \r
12 //modules sub-content\r
13 $this->_list['file_storage'] = array('title_var'=>'file_storage','file'=>'mods/_standard/file_storage/sublinks.php');\r
14 \r
15 //student pages\r
16 $this->_pages['mods/_standard/file_storage/index.php']['title_var']  = 'file_storage';\r
17 $this->_pages['mods/_standard/file_storage/index.php']['img']        = 'images/home-file_storage.png';\r
18 $this->_pages['mods/_standard/file_storage/index.php']['icon']       = 'images/application_get.png';\r
19 $this->_pages['mods/_standard/file_storage/index.php']['guide']      = 'general/?p=file_storage.php';\r
20 \r
21 $this->_pages['mods/_standard/file_storage/revisions.php']['title_var'] = 'revisions';\r
22 $this->_pages['mods/_standard/file_storage/revisions.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
23 $this->_pages['mods/_standard/file_storage/revisions.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
24 \r
25 $this->_pages['mods/_standard/file_storage/comments.php']['title_var'] = 'comments';\r
26 $this->_pages['mods/_standard/file_storage/comments.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
27 $this->_pages['mods/_standard/file_storage/comments.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
28 \r
29 $this->_pages['mods/_standard/file_storage/edit.php']['title_var'] = 'file_storage_edit_file';\r
30 $this->_pages['mods/_standard/file_storage/edit.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
31 $this->_pages['mods/_standard/file_storage/edit.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
32 $this->_pages['mods/_standard/file_storage/edit.php']['guide']      = 'general/?p=fs_new_file.php';\r
33 \r
34 $this->_pages['mods/_standard/file_storage/edit_folder.php']['title_var'] = 'file_storage_edit_folder';\r
35 $this->_pages['mods/_standard/file_storage/edit_folder.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
36 $this->_pages['mods/_standard/file_storage/edit_folder.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
37 \r
38 $this->_pages['mods/_standard/file_storage/move.php']['title_var'] = 'file_storage_move';\r
39 $this->_pages['mods/_standard/file_storage/move.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
40 $this->_pages['mods/_standard/file_storage/move.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
41 \r
42 $this->_pages['mods/_standard/file_storage/assignment.php']['title_var'] = 'hand_in';\r
43 $this->_pages['mods/_standard/file_storage/assignment.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
44 $this->_pages['mods/_standard/file_storage/assignment.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
45 \r
46 $this->_pages['mods/_standard/file_storage/new.php']['title_var'] = 'file_storage_new_file';\r
47 $this->_pages['mods/_standard/file_storage/new.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
48 $this->_pages['mods/_standard/file_storage/new.php']['children'] = array(); // empty array creates a "back to" link to index.php\r
49 $this->_pages['mods/_standard/file_storage/new.php']['guide']      = 'general/?p=fs_new_file.php';\r
50 \r
51 $this->_pages['mods/_standard/file_storage/delete_revision.php']['title_var'] = 'delete';\r
52 $this->_pages['mods/_standard/file_storage/delete_revision.php']['parent'] = 'mods/_standard/file_storage/index.php';\r
53 \r
54 $this->_pages['mods/_standard/file_storage/delete_comment.php']['title_var'] = 'delete';\r
55 //$this->_pages['file_storage/delete_comment.php']['parent'] = 'file_storage/comments.php';\r
56 \r
57 function file_storage_get_group_url($group_id) {\r
58         return 'mods/_standard/file_storage/index.php?ot='.WORKSPACE_GROUP.SEP.'oid='.$group_id;\r
59 }\r
60 ?>