Hallo,
ich versuche gerade mein IPSWikiDoc als PHP Modul zu bauen und komme hier irgendwie nicht weiter.
Wenn ich mein Modul hinzufüge sehe ich die von mir definierten Felder und kann sie befüllen. Aber beim „Übernehmen“ kommt der Fehler „Eigenschaft URLAPI nicht gefunden“ :(.
Kann mir ein Profi bitte einen Tipp geben.
Hier der Inhalt meiner bisherigen Dateien.
library.json:
{
"id": "{FBEB51E2-6DF6-4AE5-B3E3-8FCF45151786}",
"author": "Thorsten Mueller",
"name": "Misc",
"url": "",
"version": "1.0",
"build": 0,
"date": 0
}
form.json:
{
"elements":
[
{ "name": "URLAPI", "type": "ValidationTextBox", "caption": "Mediawiki API-URL" },
{ "name": "WikiUsername", "type": "ValidationTextBox", "caption": "Wiki Benutzer" },
{ "name": "WikiPassword", "type": "PasswordTextBox", "caption": "Wiki Passwort" },
{ "name": "SyntaxHighlighting", "type": "CheckBox", "caption": "Syntax Highlighting" },
{ "name": "GesamtBefuellung", "type": "CheckBox", "caption": "Gesamtbefuellung" },
{ "type": "Label", "label": "Variablen auflisten, die seit n-Tagen nicht mehr geaendert wurden:" },
{ "name": "UngenVarTage", "type": "NumberSpinner", "caption": "Anzahl Tage", "digits": 0 },
{ "type": "Select", "name": "HostType", "caption": "Betriebssystem", "options": [
{ "label": "Linux/Unix", "value": "unix" },
{ "label": "Windows", "value": "windows" }
]},
{ "type": "Label", "label": "Falls das Wiki per HTTP-BasicAuth gesichert ist" },
{ "name": "HTTPBasicUser", "type": "ValidationTextBox", "caption": "HTTP Basis Benutzername" },
{ "name": "HTTPBasicPass", "type": "PasswordTextBox", "caption": "HTTP Basic Passwort" }
],
"actions": []
}
module.json:
{
"id": "{D037851C-9255-410E-A0E2-14915E288FC3}",
"name": "IPSWikiDoc",
"type": 0,
"vendor": "",
"aliases": [],
"parentRequirements": [],
"childRequirements": [],
"implemented": [],
"prefix": "DOC"
}
module.php:
<?
class IPSWikiDoc extends IPSModule
{
public function Create()
{
//Never delete this line!
parent::Create();
$this->RegisterPropertyString("URLAPI", "http://a.b.c.d/api.php");
$this->RegisterPropertyString("WikiUsername", "Benutzername1");
$this->RegisterPropertyString("WikiPassword", "Passwort1");
$this->RegisterPropertyBoolean("SyntaxHighlighting", true);
$this->RegisterPropertyBoolean("GesamtBefuellung", false);
$this->RegisterPropertyInteger("UngenVarTage", 0);
$this->RegisterPropertyString("HostType", "unix");
$this->RegisterPropertyString("HTTPBasicUser", "Benutzername2");
$this->RegisterPropertyString("HTTPBasicPass", "Passwort2");
//IPS_SetInfo($this->InstanceID, 'Das ist ein Text');
}
public function ApplyChanges()
{
//Never delete this line!
parent::ApplyChanges();
$this->RegisterPropertyString("URLAPI", "http://a.b.c.d/api.php");
$this->RegisterPropertyString("WikiUsername", "Benutzername1");
$this->RegisterPropertyString("WikiPassword", "Passwort1");
$this->RegisterPropertyBoolean("SyntaxHighlighting", true);
$this->RegisterPropertyBoolean("GesamtBefuellung", false);
$this->RegisterPropertyInteger("UngenVarTage", 0);
$this->RegisterPropertyString("HostType", "unix");
$this->RegisterPropertyString("HTTPBasicUser", "Benutzername2");
$this->RegisterPropertyString("HTTPBasicPass", "Passwort2");
}
}
?>
Was habe ich denn vergessen?
Danke & Gruß
Thorsten