Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.
string applyTextMacros(
int
$text, [string
$stage = "pre"])
Applies text macro to the given text. Takes the text macro id as first argument, the string with the text to convert as second argument. Returns converted string.
Tests given text macro name for uniqueness. Takes the text macro name as first argument and an optional text macro id as second argument.
If the text macro id is given, this text macro won't be considered when checking for uniqueness (useful for updates). Returns boolean true if text macro name is unique.