public function replaceParametersScalar($data)
	{
		$count = preg_match_all('/%[a-z\\._]+%/i', $data, $matches);

		if (!$count) {
			return $data;
		}

		$replacements = array();

		foreach ($matches as $expression) {
			$parameter = trim($expression[0], '%');
			$replacements[$expression[0]] = $this->getParameter($parameter);
		}

		return strtr($data, $replacements);
	}
public function replaceParametersScalar($data)
	{
		$count = preg_match_all('/%[a-z\\._]+%/i', $data, $matches);

		if (!$count) {
			return $data;
		}

		$replacements = array();

		foreach ($matches as $expression) {
			$parameter = trim($expression[0], '%');
			$replacements[$expression[0]] = $this->getParameter($parameter);
		}

		return strtr($data, $replacements);
	}
public function replaceParametersScalar ( $ data ) { $ count = preg_match_all ( '/%[a-z\\._]+%/i' , $ data , $ matches ) ; if ( ! $ count ) { return $ data ; } $ replacements = array ( ) ; foreach ( $ matches as $ expression ) { $ parameter = trim ( $ expression [ 0 ] , '%' ) ; $ replacements [ $ expression [ 0 ] ] = $ this -> getParameter ( $ parameter ) ; } return strtr ( $ data , $ replacements ) ; }
Replaces %param.name% -> param.value in a given string

@param string $data
@return string
@throws \Supra\Core\Configuration\Exception\ReferenceException
Replaces %param . name% - > param . value in a given string