Bitrix API

SliceConverter implements IConverter

Table of Contents

Interfaces

IConverter

Constants

SLICE_SECTION_ID  = 'BX_BLOCK_EDITOR_EDITABLE_SECTION'

Methods

isValid()  : bool
Check string.
sanitize()  : string
Sanitize.
toArray()  : BlockContent
Parse string of sliced content to an array of content blocks.
toString()  : string
Convert block content to string.

Constants

SLICE_SECTION_ID

public mixed SLICE_SECTION_ID = 'BX_BLOCK_EDITOR_EDITABLE_SECTION'

Methods

isValid()

Check string.

public static isValid(string $string) : bool
Parameters
$string : string

String.

Return values
bool

sanitize()

Sanitize.

public static sanitize(string $string) : string
Parameters
$string : string

String.

Return values
string

toArray()

Parse string of sliced content to an array of content blocks.

public static toArray(string $string) : BlockContent
Parameters
$string : string

String.

Return values
BlockContent

        
On this page

Search results