public function SearchAndReplace($buffer)
	{
		$context = Context::getInstance();

		$posi = 0;
		$i = strpos($buffer, "<param-", $posi);
		while ($i !== false)
		{
			echo substr($buffer, $posi, $i-$posi);
			$if = strpos($buffer, "</param-", $i);

			$tamparam = $if-$i-8;
			$var = substr($buffer, $i+7, $tamparam);

			echo $context->get($var);

			$posi = $if + $tamparam + 9;
			$i = strpos($buffer, "<param-", $posi);
		}

		echo substr($buffer, $posi);
	}
public function SearchAndReplace($buffer)
	{
		$context = Context::getInstance();

		$posi = 0;
		$i = strpos($buffer, "<param-", $posi);
		while ($i !== false)
		{
			echo substr($buffer, $posi, $i-$posi);
			$if = strpos($buffer, "</param-", $i);

			$tamparam = $if-$i-8;
			$var = substr($buffer, $i+7, $tamparam);

			echo $context->get($var);

			$posi = $if + $tamparam + 9;
			$i = strpos($buffer, "<param-", $posi);
		}

		echo substr($buffer, $posi);
	}
public function SearchAndReplace ( $ buffer ) { $ context = Context :: getInstance ( ) ; $ posi = 0 ; $ i = strpos ( $ buffer , "<param-" , $ posi ) ; while ( $ i !== false ) { echo substr ( $ buffer , $ posi , $ i - $ posi ) ; $ if = strpos ( $ buffer , "</param-" , $ i ) ; $ tamparam = $ if - $ i - 8 ; $ var = substr ( $ buffer , $ i + 7 , $ tamparam ) ; echo $ context -> get ( $ var ) ; $ posi = $ if + $ tamparam + 9 ; $ i = strpos ( $ buffer , "<param-" , $ posi ) ; } echo substr ( $ buffer , $ posi ) ; }
This method is used only in the Wrappers
So, it can echo string directly

@param type $buffer
This method is used only in the Wrappers So it can echo string directly