Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
// Remove all existing formatters from the StringManipulator object
$Context->StringManipulator->Formatters = array();
$Context->StringManipulator->GlobalFormatters = array();
// Declare your new StringFormatter
$Context->Dictionary["HTMLExtile"] = "HTMLExtile";
class HTMLExtileFormatter extends StringFormatter {
function Parse($String, $Object, $FormatPurpose) {
// Do your string manipulation here...
return $String;
}
}
// Instantiate the formatter and add it to the context object's string manipulator
$HTMLExtileFormatter = $Context->ObjectFactory->NewContextObject($Context, "HTMLExtileFormatter");
$Context->StringManipulator->AddManipulator("HTMLExtile", $HTMLExtileFormatter);
$Context->Configuration['DEFAULT_FORMAT_TYPE'] = 'HTMLExtile';
1 to 6 of 6