1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Engine

Открытые члены

 __construct (Document $document=null)
 setHtml ($html)
 setDocument (Document $document)
 setContent ($string)
 setBlockContent (BlockContent $blockContent)
 setEncoding ($encoding=null)
 getDocument ()
 getHtml ()
 fill ()

Открытые статические члены

static isSupported ($string)
static create (Document $document=null)
static fillHtmlTemplate ($htmlTemplate, $content, $encoding=null)

Поля данных

const BLOCK_PLACE_ATTR = 'data-bx-block-editor-place'
const STYLIST_TAG_ATTR = 'data-bx-stylist-container'
const BLOCK_PLACE_ATTR_DEF_VALUE = 'body'
const CONTENT_SLICE = 0
const CONTENT_JSON = 1

Защищенные члены

 addBlocksToDocument ($blocks)
 addStylesToDocumentHead ($styleString)

Защищенные статические члены

static createBlockContent ($string)
static getConverters ()

Защищенные данные

 $content
 $document
 $encoding = null

Подробное описание

См. определение в файле engine.php строка 21

Конструктор(ы)

◆ __construct()

__construct ( Document $document = null)

Engine constructor.

Аргументы
Document | null$documentTemplate document.

См. определение в файле engine.php строка 72

Методы

◆ addBlocksToDocument()

addBlocksToDocument ( $blocks)
protected

См. определение в файле engine.php строка 230

◆ addStylesToDocumentHead()

addStylesToDocumentHead ( $styleString)
protected

См. определение в файле engine.php строка 308

◆ create()

create ( Document $document = null)
static

Create instance.

Аргументы
Document | null$documentTemplate document.
Возвращает
static

См. определение в файле engine.php строка 63

◆ createBlockContent()

createBlockContent ( $string)
staticprotected

Parse string to array of block content.

Аргументы
string$stringString.
Возвращает
BlockContent
Исключения
SystemException

См. определение в файле engine.php строка 366

◆ fill()

fill ( )

Fill document by content.

Возвращает
bool

См. определение в файле engine.php строка 175

◆ fillHtmlTemplate()

fillHtmlTemplate ( $htmlTemplate,
$content,
$encoding = null )
static

Fill HTML template by content.

Аргументы
string$htmlTemplateHtml template.
string$contentContent.
string$encodingEncoding.
Возвращает
string

См. определение в файле engine.php строка 156

◆ getConverters()

getConverters ( )
staticprotected

См. определение в файле engine.php строка 379

◆ getDocument()

getDocument ( )

См. определение в файле engine.php строка 137

◆ getHtml()

getHtml ( )

См. определение в файле engine.php строка 142

◆ isSupported()

isSupported ( $string)
static

Check string for the presence of slices.

Аргументы
string$stringString.
Возвращает
bool

См. определение в файле engine.php строка 45

◆ setBlockContent()

setBlockContent ( BlockContent $blockContent)

Set block content.

Аргументы
BlockContent$blockContentBlock content.
Возвращает
$this

См. определение в файле engine.php строка 118

◆ setContent()

setContent ( $string)

Set content string.

Аргументы
string$stringContent string.
Возвращает
Engine

См. определение в файле engine.php строка 107

◆ setDocument()

setDocument ( Document $document)

Set document.

Аргументы
Document$documentTemplate document.
Возвращает
$this

См. определение в файле engine.php строка 95

◆ setEncoding()

setEncoding ( $encoding = null)

Set encoding.

Аргументы
string | null$encodingEncoding.
Возвращает
$this

См. определение в файле engine.php строка 131

◆ setHtml()

setHtml ( $html)

Set html.

Аргументы
string$htmlHtml.
Возвращает
$this

См. определение в файле engine.php строка 83

Поля

◆ $content

$content
protected

См. определение в файле engine.php строка 31

◆ $document

$document
protected

См. определение в файле engine.php строка 34

◆ $encoding

$encoding = null
protected

См. определение в файле engine.php строка 37

◆ BLOCK_PLACE_ATTR

const BLOCK_PLACE_ATTR = 'data-bx-block-editor-place'

См. определение в файле engine.php строка 23

◆ BLOCK_PLACE_ATTR_DEF_VALUE

const BLOCK_PLACE_ATTR_DEF_VALUE = 'body'

См. определение в файле engine.php строка 25

◆ CONTENT_JSON

const CONTENT_JSON = 1

См. определение в файле engine.php строка 28

◆ CONTENT_SLICE

const CONTENT_SLICE = 0

См. определение в файле engine.php строка 27

◆ STYLIST_TAG_ATTR

const STYLIST_TAG_ATTR = 'data-bx-stylist-container'

См. определение в файле engine.php строка 24


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/fileman/lib/block/content/engine.php