예제 #1
0
 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")));
 }
예제 #2
0
 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.
 }
예제 #3
0
 public function __construct($InstanceID)
 {
     //Never delete this line!
     parent::__construct($InstanceID);
     //You can add custom code below.
     $this->imagePath = "media/radar" . $InstanceID . ".gif";
 }
예제 #4
0
 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);
 }
예제 #5
0
		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", "");
		}
예제 #6
0
		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");
		}
예제 #7
0
 public function __construct($InstanceID)
 {
     // Diese Zeile nicht löschen
     parent::__construct($InstanceID);
     // Selbsterstellter Code
 }
예제 #8
0
 function __construct($InstanceID)
 {
     // Diese Zeile nicht löschen
     parent::__construct($InstanceID);
 }
예제 #9
0
파일: module.php 프로젝트: symcon/SymconBC
 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;
 }