openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

System.class.php (486B)


      1 <?php
      2 
      3 namespace dsl\standard;
      4 
      5 use dsl\context\BaseScriptableObject;
      6 
      7 class System extends BaseScriptableObject
      8 {
      9 	/**
     10 	 * runtime
     11 	 * @var StandardString
     12 	 */
     13 	public $version;
     14 
     15 	/**
     16 	 * Operating system
     17 	 * @var StandardString
     18 	 */
     19 	public $os;
     20 
     21 	public function __construct()
     22 	{
     23 		$this->version = PHP_VERSION;
     24 		$this->os      = PHP_OS;
     25 	}
     26 
     27 	/**
     28 	 * @param $name
     29 	 * @return array|false|StandardString
     30 	 */
     31 	public function env( $name ) {
     32 
     33 		return getenv('SCRIPTBOX_'.$name);
     34 	}
     35 }