ソースを参照

configoption builder url

andre 9 ヶ月 前
コミット
1ade9288f9
2 ファイル変更11 行追加1 行削除
  1. 1 1
      api/sitebuilder.php
  2. 10 0
      siteBuilder.php

+ 1 - 1
api/sitebuilder.php

@@ -156,7 +156,7 @@ class ApiClient {
      *
      * @return                  a json with ['status' => $httpCode,'response' => [
      *                                          'backups' =>
-                                                [
+     *                                           [
      *                                              ['backup_date' => 'ISO Backup Datum',
      *                                              'swiss_date' => 'Datum im Schweizer Format',
      *                                              'size_mb' => 'Grösse in Megabyte',

+ 10 - 0
siteBuilder.php

@@ -35,6 +35,16 @@ function siteBuilder_MetaData() {
         'AdminSingleSignOnLabel' => 'Login to siteBuilder Admin'
     );
 }
+function siteBuilder_ConfigOptions() {
+    return ["BuilderURL" => [
+				"FriendlyName" => "Builder URL", # Full Builder URL (prefix//hostname:port/)
+				"Type" => "text", # Text Box
+				"Size" => "25", # Defines the Field Width
+				"Description" => "Textbox",
+				"Default" => "https://builder.thurdata.ch/",
+			],
+		];
+}
 
 /**
  * Test connection to a siteBuilder server with the given server parameters.