File modules/dsl/context/Scriptable.class.php

Last commit: Mon Jun 27 00:40:42 2022 +0200	Jan Dankert	New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts.
1 <?php 2 3 namespace dsl\context; 4 5 /** 6 * Class is callable from scripts. 7 * 8 * Classes whose methods should be callable from user scripts must implement this interface. 9 * 10 * This is a marker interface which do not has methods by design. 11 * 12 * If a class do not implement this interface then its methods cannot be called out of a script. 13 * This is for security reasons: You cannot expose your classes to the user context by mistake. 14 */ 15 interface Scriptable {}
Download modules/dsl/context/Scriptable.class.php
History Mon, 27 Jun 2022 00:40:42 +0200 Jan Dankert New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts.