Skip to content

Commit

Permalink
add reference test
Browse files Browse the repository at this point in the history
  • Loading branch information
paresy committed Nov 7, 2018
1 parent fa125c0 commit 4be2b6b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ReferenceTest/form.json
@@ -0,0 +1,8 @@
{
"actions": [
{
"type": "Label",
"label": "This instance will reference all archive controls"
}
]
}
14 changes: 14 additions & 0 deletions ReferenceTest/module.json
@@ -0,0 +1,14 @@
{
"id": "{C4B92A9C-8157-46E1-9A4F-8CD050736BDF}",
"name": "ReferenceTest",
"type": 3,
"vendor": "",
"aliases":
[
"Reference Test"
],
"parentRequirements": [],
"childRequirements": [],
"implemented": [],
"prefix": "RFSE"
}
20 changes: 20 additions & 0 deletions ReferenceTest/module.php
@@ -0,0 +1,20 @@
<?

class ReferenceTest extends IPSModule
{

public function ApplyChanges() {

$refs = $this->GetReferenceList();
foreach($refs as $ref) {
$this->UnregisterReference($ref);
}
$ids = IPS_GetInstanceListByModuleID("{43192F0B-135B-4CE7-A0A7-1475603F3060}");
foreach($ids as $id) {
$this->RegisterReference($id);
}

}
}

?>

0 comments on commit 4be2b6b

Please sign in to comment.