include/connectors/formatters/FormatterFactory.php
\FormatterFactory
Package: SugarCRM
Formatter factory
- Api
Properties
Methods

getInstance(
\$source_name $source_name, \$formatter_name $formatter_name
=
''
)
:
\$instance
static
getInstance This method returns a formatter instance for the given source name and formatter name. If no formatter name is specified, the default formatter for the source is used.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $source_name | \$source_name | The data source name to retreive formatter for |
| $formatter_name | \$formatter_name | Optional formatter name to use |
| Type | Description |
|---|---|
| \$instance | The formatter instance |