ccaca5c0f42dbca0e4f35c72c31b0cee4f4d26f3
[glcas.git] / lib / plugins / datastore.php
1 <?php
2 global $BASE_URLS, $MENU_ITEMS, $GLOBAL_BASE_URL;
3
4 $BASE_URLS["ds"]["base"] = "ds"; // ap for apt-proxy
5 $BASE_URLS["ds"]["function"] = "ds_contentUrls"; // the page builder function for us
6 $MENU_ITEMS["ds"]["title"] = "DataStores";
7 $MENU_ITEMS["ds"]["link"] = "$GLOBAL_BASE_URL/ds/control";
8
9
10 function ds_contentPane()
11 {
12         echo "i am a ds content pane<br>";
13 }
14
15 function ds_leftMenu()
16 {
17         echo "i am a ds leftmenu";
18 }
19
20 function ds_contentUrls()
21 {
22         $calls["needs_base_page"] = true;
23         $calls["content_pane_function"] = "ds_contentPane";
24         $calls["left_menu_function"] = "ds_leftMenu";
25         
26         return $calls;
27 }
28
29 function ds_createDS($ds_name, $store_location)
30 {
31         
32 }
33
34 function ds_fileds($ds_name, $file_id, $file_name)
35 {
36 }
37
38 function ds_downloadAndStore($ds_name, $file_id, $file_name, $file_url)
39 {
40         
41 }
42
43 ?>