TextPlaceholders Class Reference
Collects and processes placeholders. More...
Static Public Member Functions |
|
static | add (ITextPlaceholder $placeholder, $to_front=false) |
Add a placeholder to list of placeholders.
|
|
static | apply ($text) |
Apply placeholders to given text. |
Detailed Description
Collects and processes placeholders.
Definition at line 8 of file textplaceholders.cls.php.
Member Function Documentation
static TextPlaceholders::add | ( | ITextPlaceholder $ | placeholder, | |
$ | to_front = false |
|||
) | [static] |
Add a placeholder to list of placeholders.
ITextPlaceholder $placeholder bool $to_front If true, placehodler is prepended to list, else it is appended
Definition at line 22 of file textplaceholders.cls.php.
static TextPlaceholders::apply | ( | $ | text | ) | [static] |
Apply placeholders to given text.
string $text
- Returns:
- string
Definition at line 37 of file textplaceholders.cls.php.
The documentation for this class was generated from the following file:
- contributions/text.placeholders/lib/helpers/textplaceholders.cls.php