extractLConfVars($value, $vars); return $vars; } public function getName() { return 'Transform LConf CustomVars to Hash'; } public function hasArraySupport() { return true; } protected function extractLConfVars($value, $vars) { if (is_string($value)) { $this->extractLConfVar($value, $vars); } elseif (is_array($value)) { foreach ($value as $val) { $this->extractLConfVar($val, $vars); } } } protected function extractLConfVar($value, $vars) { list($key, $val) = preg_split('/ /', $value, 2); $key = ltrim($key, '_'); $vars->$key = $val; } }