db store work
[glcas.git] / lib / plugins / datastore.php
diff --git a/lib/plugins/datastore.php b/lib/plugins/datastore.php
new file mode 100644 (file)
index 0000000..ccaca5c
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+global $BASE_URLS, $MENU_ITEMS, $GLOBAL_BASE_URL;
+
+$BASE_URLS["ds"]["base"] = "ds"; // ap for apt-proxy
+$BASE_URLS["ds"]["function"] = "ds_contentUrls"; // the page builder function for us
+$MENU_ITEMS["ds"]["title"] = "DataStores";
+$MENU_ITEMS["ds"]["link"] = "$GLOBAL_BASE_URL/ds/control";
+
+
+function ds_contentPane()
+{
+       echo "i am a ds content pane<br>";
+}
+
+function ds_leftMenu()
+{
+       echo "i am a ds leftmenu";
+}
+
+function ds_contentUrls()
+{
+       $calls["needs_base_page"] = true;
+       $calls["content_pane_function"] = "ds_contentPane";
+       $calls["left_menu_function"] = "ds_leftMenu";
+       
+       return $calls;
+}
+
+function ds_createDS($ds_name, $store_location)
+{
+       
+}
+
+function ds_fileds($ds_name, $file_id, $file_name)
+{
+}
+
+function ds_downloadAndStore($ds_name, $file_id, $file_name, $file_url)
+{
+       
+}
+
+?>
\ No newline at end of file