1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс StyleImg
Граф наследования:StyleImg:
Node

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

static getHandlerJS ()
static saveNode (Block $block, $selector, array $data)
static getNode (Block $block, $selector)
static getSearchableNode (Block $block, string $selector)

Поля данных

const STYLES_WITH_IMAGE
Поля данных унаследованные от Node
const ELEMENT_NODE = 1
const ATTRIBUTE_NODE = 2
const TEXT_NODE = 3
const CDATA_SECTION_NODE = 4
const ENTITY_REFERENCE_NODE = 5
const ENTITY_NODE = 6
const PROCESSING_INSTRUCTION_NODE = 7
const COMMENT_NODE = 8
const DOCUMENT_FRAGMENT_NODE = 11
const DOCUMENT_NODE = 9
const DOCUMENT_TYPE_NODE = 10
const NOTATION_NODE = 12
 $bxIsAlreadyClosed = false
 $bxClosable = true
 $bxNodeFoundCloseTag = false

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

static getNodeData (DOM\Node $node)
static getNodeDataLazy (DOM\Node $node)
static getSrcFromStyles (array $styles, string $resolution)
static isCorrectNodeType (Block $block, string $selector)

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

const STYLES_VARIABLES_WITH_FILES
const STYLES_URL_MARKER = '#url#'
const STYLES_URL_REGEXP = '/url\([\'"]?([^\'")]+)[\'")]?\‍)/i'
const STYLES_NODE_CLASS = 'g-bg-image'
Защищенные данные унаследованные от Node
 $ownerDocument = null
 $nodeType = null
 $nodeName = null
 $nodeValue = null
 $childNodes = null
 $parentNode = null
 $attributes = null
 $textContent = null

Дополнительные унаследованные члены

Открытые члены унаследованные от Node
 __construct ()
 getNodeType ()
 getParentNode ()
 setParentNode (Node $node=null)
 hasAttributes ()
 getAttributes ()
 getNodeName ()
 setNodeName ($a)
 getNodeValue ()
 getTextContent ()
 getOwnerDocument ()
 setOwnerDocument (Document $owner)
 getFirstChild ()
 getLastChild ()
 getPreviousSibling ()
 getNextSibling ()
 getChildNodes ()
 getChildNodesArray ()
 setChildNodesArray ($childList)
 hasChildNodes ()
 appendChild (Node $newChild)
 insertBefore (Node $newChild, Node $refChild=null, $removeExist=true)
 removeChild (Node $oldChild)
 replaceChild (Node $newChild, Node $oldChild)
 isEqual (Node $node=null)
 getOuterHTML ()
 getInnerHTML ()
 setInnerHTML ($html)
 querySelectorAll ($queryString)
 querySelector ($queryString)
 closest ($queryString)
 toString ()
 toArray ()
Статические открытые данные унаследованные от Node
static $isNodeListAsArray = true
Защищенные члены унаследованные от Node
 init ()
 haveChild ($checkingChild)

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

Fake node for images, then add in design. Not using in edit panel!

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

Методы

◆ getHandlerJS()

getHandlerJS ( )
static

Get class - frontend handler.

Возвращает
string

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

◆ getNode()

getNode ( Block $block,
$selector )
static

Get data for this node.

Аргументы
Block$blockBlock instance.
string$selectorSelector.
Возвращает
array

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

◆ getNodeData()

getNodeData ( DOM\Node $node)
staticprotected

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

◆ getNodeDataLazy()

getNodeDataLazy ( DOM\Node $node)
staticprotected

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

◆ getSearchableNode()

getSearchableNode ( Block $block,
string $selector )
static

This node may participate in searching.

Аргументы
Block$blockBlock instance.
string$selectorSelector.
Возвращает
array

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

◆ getSrcFromStyles()

getSrcFromStyles ( array $styles,
string $resolution )
staticprotected

Find src in inline styles variables

Аргументы
array$styles
string$resolution
Возвращает
string|null

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

◆ isCorrectNodeType()

isCorrectNodeType ( Block $block,
string $selector )
staticprotected

Find src in inline styles variables

Аргументы
Block$blockBlock instance.
string$selectorSelector.
Возвращает
bool

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

◆ saveNode()

saveNode ( Block $block,
$selector,
array $data )
static

Save data for this node.

Аргументы
Block$blockBlock instance.
string$selectorSelector.
array$dataData array.
Возвращает
void

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

Поля

◆ STYLES_NODE_CLASS

const STYLES_NODE_CLASS = 'g-bg-image'
protected

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

◆ STYLES_URL_MARKER

const STYLES_URL_MARKER = '#url#'
protected

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

◆ STYLES_URL_REGEXP

const STYLES_URL_REGEXP = '/url\([\'"]?([^\'")]+)[\'")]?\‍)/i'
protected

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

◆ STYLES_VARIABLES_WITH_FILES

const STYLES_VARIABLES_WITH_FILES
protected
Инициализатор
= [
'1x' => [
'--bg-url' => "url('#url#')",
],
'2x' => [
'--bg-url-2x' => "url('#url#')",
],
]

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

◆ STYLES_WITH_IMAGE

const STYLES_WITH_IMAGE
Инициализатор
= [
'background',
'block-default',
'block-border',
]

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


Объявления и описания членов класса находятся в файле: