public static function getConfig($deepKey = null, $defaultValue = null) { if (empty(self::$_config)) { return $defaultValue; } if ($deepKey) { return self::$_config->getDeepValue($deepKey, $defaultValue); } }
public function __call($method, $params) { $operation = substr($method, 0, 3); if (in_array($operation, array('get', 'set'))) { if (substr($method, -4) == 'Root') { $key = 'roots/' . strtolower(substr($method, 3, -4)); } else { $key = strtolower(substr($method, 3)); } if ($operation == 'get') { return $this->_vars->getDeepValue($key); } else { $this->_vars->setDeepValue($key, $params[0]); DC::getEventDispatcher()->dispatchEvent('environment.update', $key); return $this; } } else { return $this; } }
public function getAbilityInfo($name) { return $this->_data->getDeepValue('abilities/' . $name); }
public function get($deepKey, $defaultValue = null) { return $this->_combinedData->getDeepValue($deepKey, $defaultValue); }
public function getVar($deepKey, $defaultValue = null) { return $this->_vars->getDeepValue($deepKey, $defaultValue); }