public static function get($name) { if (Config::exists($name)) { return Config::$list[$name]; } return null; }
<?php namespace XLib; require_once 'XLibConfig.php'; use XLib\Config as XConfig; require_once 'XLibEnum.php'; use XLib\Enum as XEnum; XConfig::set('XLIB_INCLUDE_DIR', str_replace('\\', '/', __DIR__)); XConfig::set('XLIB_NAMESPACE', __NAMESPACE__); XConfig::set('XLIB_OUTPUT_HTML', true); class Types extends XEnum { const Null = 0x0; const Parameter = 0x1; const Variable = 0x2; const Object = 0x3; const ObjectProperty = 0x4; const ObjectMethod = 0x5; const Configuration = 0x6; const MemoryAddress = 0x7; const MemoryBlock = 0x8; const MemorySector = 0x9; const MemoryCache = 0x10; const MemoryCacheFragment = 0x11; const MemoryCacheCluster = 0x12; const ReadError = 0xf00; const WriteError = 0xf01; } class XLib {