Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
move from __construct to Create
Browse files Browse the repository at this point in the history
  • Loading branch information
paresy committed Jul 27, 2015
1 parent 99a96bf commit 00f5bce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
6 changes: 2 additions & 4 deletions Geofency/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
class Geofency extends IPSModule
{

public function __construct($InstanceID)
public function Create()
{
//Never delete this line!
parent::__construct($InstanceID);
parent::Create();

//These lines are parsed on Symcon Startup or Instance creation
//You cannot use variables here. Just static values.
$this->RegisterPropertyString("Username", "");
$this->RegisterPropertyString("Password", "");
}
Expand Down
6 changes: 2 additions & 4 deletions Sonos/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
class Sonos extends IPSModule
{

public function __construct($InstanceID)
public function Create()
{
//Never delete this line!
parent::__construct($InstanceID);
parent::Create();

//These lines are parsed on Symcon Startup or Instance creation
//You cannot use variables here. Just static values.
$this->RegisterPropertyString("IPAddress", "");

$this->RegisterPropertyString("FavoriteStation", "");
Expand Down
17 changes: 11 additions & 6 deletions Unwetterzentrale/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,22 @@ 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.
//You can add custom code below.
$this->imagePath = "media/radar".$InstanceID.".gif";

}

public function Create()
{
//Never delete this line!
parent::Create();

$this->RegisterPropertyString("area", "dsch");
$this->RegisterPropertyInteger("homeX", 324);
$this->RegisterPropertyInteger("homeY", 179);
$this->RegisterPropertyInteger("homeRadius", 10);

//You can add custom code below.
$this->imagePath = "media/radar".$InstanceID.".gif";

}
}

public function ApplyChanges()
{
Expand Down

0 comments on commit 00f5bce

Please sign in to comment.