File modules/dsl/standard/System.class.php
Last commit: Tue Jul 19 00:10:00 2022 +0200 Jan Dankert New: Scripting language: Ignore Keyword "new"; Support for Calling object constructors; Splitting objects into an instance and a wrapper.
1 <?php 2 3 namespace dsl\standard; 4 5 use dsl\context\BaseScriptableObject; 6 7 /** 8 * System information. 9 * 10 * @package dsl\standard 11 */ 12 class System extends BaseScriptableObject 13 { 14 /** 15 * runtime 16 * @var string 17 */ 18 public $version; 19 20 /** 21 * Operating system 22 * @var string 23 */ 24 public $os; 25 26 public function __construct() 27 { 28 $this->version = PHP_VERSION; 29 $this->os = PHP_OS; 30 } 31 32 /** 33 * @param $name 34 * @return array|false|string 35 */ 36 public function env( $name ) { 37 38 return getenv( 'SCRIPTBOX_'.$name ); 39 } 40 }
Downloadmodules/dsl/standard/System.class.php
History Tue, 19 Jul 2022 00:10:00 +0200 Jan Dankert New: Scripting language: Ignore Keyword "new"; Support for Calling object constructors; Splitting objects into an instance and a wrapper. Fri, 1 Jul 2022 18:09:05 +0200 Jan Dankert New: Bugfixes and much more string and array functions for the DSL. Mon, 27 Jun 2022 00:40:42 +0200 Jan Dankert New: Marker interface 'Scriptable', Proxy class for MQTT, help() method in Scripts.