File modules/cms/generator/dsl/DslCms.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 cms\generator\dsl; 4 5 use cms\base\Startup; 6 use dsl\context\BaseScriptableObject; 7 8 class DslCms extends BaseScriptableObject 9 { 10 /** 11 * application version 12 * @var string 13 */ 14 public $version; 15 16 /** 17 * application name 18 * @var string 19 */ 20 public $name; 21 /** 22 * build date 23 * @var null 24 */ 25 public $build; 26 /** 27 * api version 28 * @var string 29 */ 30 public $api; 31 32 public function __construct() 33 { 34 $this->version = Startup::VERSION; 35 $this->build = Startup::DATE; 36 $this->name = Startup::TITLE; 37 $this->api = Startup::API_LEVEL; 38 } 39 40 41 /** 42 * @param $name 43 * @return array|false|string 44 */ 45 public function env( $name ) { 46 47 return getenv('CMS_SCRIPT_'.$name); 48 } 49 }
Downloadmodules/cms/generator/dsl/DslCms.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.