Skip to content

Instantly share code, notes, and snippets.

View Nall-chan's full-sized avatar
:octocat:
feed the dragon, not the cat

Michael Tröger Nall-chan

:octocat:
feed the dragon, not the cat
View GitHub Profile
<?php
echo "class IPSModuleStrict
{
protected \$InstanceID;\r\n\r\n";
$r = new ReflectionClass('IPSModuleStrict');
foreach ($r->getMethods() as $Method){
$refFunction = new ReflectionMethod('IPSModuleStrict',$Method->name);
echo ($Method->isPublic() ? ' public ': '');
echo ($Method->isPrivate() ? ' private ': '');
@Nall-chan
Nall-chan / IPSModuleStrict.php
Last active May 13, 2023 19:13
IPSModuleStrict
class IPSModuleStrict
{
protected $InstanceID;
public function __construct(int $InstanceID)
{
return;
}
public function Create(): void
{
@Nall-chan
Nall-chan / IPSFunktionsDoku.php
Last active May 13, 2023 19:21
Auto-generate ipsfunctions DocComment
<?php
ini_set('max_execution_time', 300); // kann schon mal dauern :)
$IPSDoku = array();
$urls=[];
$urls['Befehlsreferenz'] = "https://www.symcon.de/service/dokumentation/befehlsreferenz/";
$urls['Modulreferenz'] = "https://www.symcon.de/service/dokumentation/modulreferenz/";
foreach ($urls as $Name => $url)
{
$dom = new DOMDocument();
@$dom->loadHTMLFile($url);
@Nall-chan
Nall-chan / IPSModuleDoku.php
Last active May 13, 2023 19:22
Auto-generate DocComment ipsmodule
<?php
ini_set('max_execution_time', 300); // kann schon mal dauern :)
$IPSDoku = array();
$ModuleURLs=[];
$dom = new DOMDocument();
@$dom->loadHTMLFile("https://www.symcon.de/service/dokumentation/entwicklerbereich/sdk-tools/sdk-php/module/");
if ($dom->documentURI == null)
{
die("Die Moduldoku von www.symcon.de konnte nicht geladen werden.\n");
@Nall-chan
Nall-chan / moduledoc.ips.php
Last active May 13, 2023 19:22
IPSModule with doc
<?php
/** @mainpage Reference list of IPSModule methods
*
* This file has been generated using IPSModuleDoku.php
*/
/**
* @file
* @brief generated ipsymcon ipsmodule reference using IPSModuleDoku.php
*/
@Nall-chan
Nall-chan / functionsdoc.ips.php
Last active July 29, 2023 09:35
Functions for IP-Symcon 6.4 with comment
<?php
$_IPS = array(
'SELF' => 0,
'SENDER' => '',
'VALUE' => 0,
'OLDVALUE' => 0,
'VARIABLE' => 0,
'EVENT' => 0,
'TRIGGER' => 0,