StringConverter
FinalYes
Class StringConverter
Table of Contents
Constants
- CONTENT_TYPE_HTML = 'html'
- CONTENT_TYPE_TEXT = 'text'
- STRATEGY_TYPE_FIELD_SORT = 'field_sort'
- STRATEGY_TYPE_FIELD_TYPE = 'field_type'
- STRATEGY_TYPE_TEMPLATE = 'template'
- STRATEGY_TYPE_TEMPLATE_BR = 'template_br'
- STRATEGY_TYPE_TEMPLATE_COMMA = 'template_comma'
- STRATEGY_TYPE_TEMPLATE_NL = 'template_nl'
Methods
- convertToString() : string
- Convert address to string with given format
- convertToStringTemplate() : string
- Convert if format has template
Constants
CONTENT_TYPE_HTML
public
mixed
CONTENT_TYPE_HTML
= 'html'
CONTENT_TYPE_TEXT
public
mixed
CONTENT_TYPE_TEXT
= 'text'
STRATEGY_TYPE_FIELD_SORT
public
mixed
STRATEGY_TYPE_FIELD_SORT
= 'field_sort'
STRATEGY_TYPE_FIELD_TYPE
public
mixed
STRATEGY_TYPE_FIELD_TYPE
= 'field_type'
STRATEGY_TYPE_TEMPLATE
public
mixed
STRATEGY_TYPE_TEMPLATE
= 'template'
STRATEGY_TYPE_TEMPLATE_BR
public
mixed
STRATEGY_TYPE_TEMPLATE_BR
= 'template_br'
STRATEGY_TYPE_TEMPLATE_COMMA
public
mixed
STRATEGY_TYPE_TEMPLATE_COMMA
= 'template_comma'
STRATEGY_TYPE_TEMPLATE_NL
public
mixed
STRATEGY_TYPE_TEMPLATE_NL
= 'template_nl'
Methods
convertToString()
Convert address to string with given format
public
static convertToString(Address $address, Format $format, string $strategyType, string $contentType) : string
Parameters
Tags
Return values
stringconvertToStringTemplate()
Convert if format has template
public
static convertToStringTemplate(Address $address, Template $template, string $contentType[, string|null $delimiter = null ][, Format|null $format = null ]) : string
Parameters
- $address : Address
- $template : Template
- $contentType : string
- $delimiter : string|null = null
- $format : Format|null = null