public function __construct($InstanceID) { parent::__construct($InstanceID); include 'xmlrpc.inc'; //surpress all warnings as class properties are available after Create method first @($this->xmlrpc_client = new xmlrpc_client(@$this->ReadPropertyString("NzbUserName") . ':' . @$this->ReadPropertyString("NzbPassword") . '/xmlrpc', @$this->ReadPropertyString("NzbServerIpAddress"), @$this->ReadPropertyInteger("NzbPort"))); }
public function __construct($InstanceID) { //Never delete this line! parent::__construct($InstanceID); //These lines are parsed on Symcon Startup or Instance creation //You cannot use variables here. Just static values. }
public function __construct($InstanceID) { //Never delete this line! parent::__construct($InstanceID); //You can add custom code below. $this->imagePath = "media/radar" . $InstanceID . ".gif"; }
public function __construct($InstanceID) { //Never delete this line! parent::__construct($InstanceID); //These lines are parsed on Symcon Startup or Instance creation //You cannot use variables here. Just static values. $this->RegisterPropertyInteger("var1id", 34046); $this->RegisterPropertyInteger("var2id", 24558); $this->RegisterPropertyInteger("var3id", 28310); $this->RegisterPropertyInteger("var4id", 50245); $this->RegisterPropertyInteger("var5id", 54406); }
public function __construct($InstanceID) { //Never delete this line! parent::__construct($InstanceID); //These lines are parsed on Symcon Startup or Instance creation //You cannot use variables here. Just static values. $this->RegisterPropertyString("IP", ""); $this->RegisterPropertyInteger("Port", 80); $this->RegisterPropertyBoolean("SSL", false); $this->RegisterPropertyString("Username", "root"); $this->RegisterPropertyString("Password", ""); }
public function __construct($InstanceID) { //Never delete this line! parent::__construct($InstanceID); //These lines are parsed on Symcon Startup or Instance creation //You cannot use variables here. Just static values. $this->RegisterPropertyString("LW12_IP", ""); $this->RegisterPropertyInteger("LW12_Port", 5577); $this->RegisterPropertyString("LW12_Type", ""); include_once(__DIR__ . "/LW12_LEDXXX.php"); include_once(__DIR__ . "/LW12_HX001.php"); }
public function __construct($InstanceID) { // Diese Zeile nicht löschen parent::__construct($InstanceID); // Selbsterstellter Code }
function __construct($InstanceID) { // Diese Zeile nicht löschen parent::__construct($InstanceID); }
public function __construct($InstanceID) { //Never delete this line! parent::__construct($InstanceID); }
/** * Constructor * @param integer $InstanceID * @param string $json_file Path to module.json */ public function __construct($InstanceID, $json_file) { parent::__construct($InstanceID); $json = @file_get_contents($json_file); $data = @json_decode($json, true); $this->module_data = $data; $this->name = $data["name"]; if (!isset($this->name)) { IPS_LogMessage(__CLASS__, "Reading Moduldata from module.json failed!"); return false; } $this->DEBUGLOG = IPS_GetLogDir() . "/" . $data["name"] . "debug.log"; return true; }