Bitrix API

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

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
$address : Address
$format : Format
$strategyType : string
$contentType : string
Tags
throws
ArgumentOutOfRangeException
Return values
string

convertToStringTemplate()

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
Return values
string

        
On this page

Search results