Pure-PHP implementation of Midgard1 APIs required by OpenPSA that are not present in Midgard2.

package midcom.helper

 Methods

convert_to_php ($variable)

Compile string to php code for the specified filter
Static

Parameters

$variable

Returns

stringThe compiled php code

format (mixed $content, string $name)

Return a string as formatted by a specified filter
Static

Parameters

$content

mixedThe content to modify

$name

stringFilter name

Returns

stringThe formatted content

register ($name, $function)

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

 Properties

 

array $_filters

Filter registry