aboutsummaryrefslogtreecommitdiffstats
path: root/lib/appconfig.php
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2011-03-01 23:20:16 +0100
committerJakob Sack <mail@jakobsack.de>2011-03-01 23:20:16 +0100
commit132695ceb1d7ab0e4bfbb141e9e9639111dd25b5 (patch)
treef53fabcefd89a1e5bbeda9a2c2d2fff6683139d4 /lib/appconfig.php
parent1fd39a52fa750878e7d70fba63c099f252095762 (diff)
downloadnextcloud-server-132695ceb1d7ab0e4bfbb141e9e9639111dd25b5.tar.gz
nextcloud-server-132695ceb1d7ab0e4bfbb141e9e9639111dd25b5.zip
Start of the refactoring. Commit is quite big because I forgot to use git right from the beginning. Sorry.
Diffstat (limited to 'lib/appconfig.php')
-rw-r--r--lib/appconfig.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/appconfig.php b/lib/appconfig.php
new file mode 100644
index 00000000000..f1bccc0a250
--- /dev/null
+++ b/lib/appconfig.php
@@ -0,0 +1,45 @@
+<?php
+class OC_APPCONFIG{
+ static public $forms=array();
+
+ /**
+ * add a form to the settings page
+ * @param string name
+ * @param string url
+ */
+ public static function addForm($name,$url){
+ self::$forms[$name]=$url;
+ }
+
+ /**
+ * Get the available keys for an application
+ * @param string application
+ */
+ public static function getKeys( $application ){
+ // OC_DB::query( $query);
+ return array();
+ }
+
+ /**
+ * Get the config value
+ * @param string application
+ * @param string key
+ * @param string default
+ */
+ public static function getValue( $application, $key, $default ){
+ // OC_DB::query( $query);
+ return $default;
+ }
+
+ /**
+ * Set the config value
+ * @param string application
+ * @param string key
+ * @param string value
+ */
+ public static function setValue( $application, $name, $url ){
+ // OC_DB::query( $query);
+ return true;
+ }
+}
+?>