- Symphony 2.6.1
-
› assets
14 -
› boot
14 -
› core
23 -
› cryptography
4 -
› data-sources
6 -
› email-gateways
3 -
› events
3 -
› global
61 -
› interface
9 -
› toolkit
60 - Delegates92
- Deprecated24
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
public class TextformatterManager
class.textformattermanager.php #14The TextformatterManager class is responsible for managing all Text
Formatter objects in Symphony. Text Formatter's are stored on the file
system either in the TEXTFORMATTERS
folder or provided by
an extension in the /text-formatters/
folder. All formatters provide one
simple method, run
, which applies the formatting to an unformatted
string and returns it.
Methods
static string __getClassName(
$handle)
Given a name, returns the full class name of a Text Formatter. Text Formatters use a 'formatter' prefix.
Parameters
static string|boolean __getClassPath(
$handle)
Finds a Text Formatter by name by searching the TEXTFORMATTERS
folder
and in all installed extension folders and returns the path to it's folder.
Parameters
Returns
If the Text Formatter is found, the function returns the path it's folder, otherwise false.
static string __getDriverPath(
$handle)
Given a name, return the path to the driver of the Text Formatter.
Parameters
See Also
static string __getHandleFromFilename(
$filename)
Given the filename of a Text Formatter return it's handle. This will remove
the Symphony convention of formatter.*.php
Parameters
static void about(
$name)
static TextFormatter create(
$handle)
Creates an instance of a given class and returns it. Adds the instance
to the $_pool
array with the key being the handle.
Parameters
static array listAll()
Finds all available Text Formatter's by searching the TEXTFORMATTERS
folder
and in all installed extension folders. Returns an associative array of formatters.
Returns
Associative array of formatters with the key being the handle of the formatter and the value being the text formatter's description.