File dsl/standard/System.class.php

Last commit: Tue Jul 19 00:10:39 2022 +0200	Jan Dankert	Fetched from upstream.
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 }
Download dsl/standard/System.class.php
History Tue, 19 Jul 2022 00:10:39 +0200 Jan Dankert Fetched from upstream. Mon, 27 Jun 2022 00:41:50 +0200 Jan Dankert Fetched from upstream.