\midcom_helper_formatter

Formatting helpers for style elements.

Summary

Methods
Properties
Constants
register()
format()
convert_to_php()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_filters
N/A

Properties

$_filters

$_filters : array

Filter registry

Type

array

Methods

register()

register(  $name,   $function) 

Register PHP function as string formatter to the Midgard formatting engine.

Parameters

$name
$function

format()

format(mixed  $content, string  $name) : string

Return a string as formatted by a specified filter

Parameters

mixed $content

The content to modify

string $name

Filter name

Returns

string —

The formatted content

convert_to_php()

convert_to_php(string  $variable) : string

Compile string to php code for the specified filter

Parameters

string $variable

The content to modify

Returns

string —

The compiled php code