<?php
interface FunctionHandler
{
public function __construct();
public function getHandledfunctions();
public function handleFunction($functionName, FunctionHelper $helper, array $arguments);
}
class NoEscape implements FunctionHandler
{
public function __construct()
{
}
public function getHandledFunctions()
{
return array('noEscape');
}
public function handleFunction($function, FunctionHelper $helper, array $arguments)
{
echo $args[0];
return '';
}
}