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

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

static getHandlerJS ()
static setPredefineForDynamicProps (array $additionalVals)
static saveNode (Block $block, $selector, array $data)
static prepareManifest (Block $block, array $manifest, array &$manifestFull=array())
static getIblockURL ($elementId, $urlType)
static getIblockParams ($key=false)
static getNode (Block $block, $selector)

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

static saveComponent ($content, $code, array $params)
static checkPhpCode ($code)
static transformPropType (array $item, $prop)
static preparePropValue ($value, $prop)
static transformPropValue ($value, $prop)

Статические защищенные данные

static $predefineForDynamicProps = array()

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

Открытые члены унаследованные от 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
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
Статические открытые данные унаследованные от Node
static $isNodeListAsArray = true
Защищенные члены унаследованные от Node
 init ()
 haveChild ($checkingChild)
Защищенные данные унаследованные от Node
 $ownerDocument = null
 $nodeType = null
 $nodeName = null
 $nodeValue = null
 $childNodes = null
 $parentNode = null
 $attributes = null
 $textContent = null

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

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

Методы

◆ checkPhpCode()

checkPhpCode ( $code)
staticprotected

Check if part of array or string is php code (for component).

Аргументы
mixed$codeSome content.
Возвращает
bool

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

◆ getHandlerJS()

getHandlerJS ( )
static

Get class - frontend handler.

Возвращает
string

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

◆ getIblockParams()

getIblockParams ( $key = false)
static

Tmp function for gets iblock params.

Аргументы
string$keyIf isset, return value for this key.
Возвращает
array|string

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

◆ getIblockURL()

getIblockURL ( $elementId,
$urlType )
static

Build element/section url.

Аргументы
int$elementIdElement / section id.
string$urlTypeType of url (section / detail).
Возвращает
string

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

◆ getNode()

getNode ( Block $block,
$selector )
static

Get data for this node.

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

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

◆ prepareManifest()

prepareManifest ( Block $block,
array $manifest,
array & $manifestFull = array() )
static

Prepare item-node of manifest.

Аргументы
Block$blockBlock instance.
array$manifestManifest of current node.
array&$manifestFullFull manifest of block (by ref).
Возвращает
array|null Return null for delete from manifest.

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

◆ preparePropValue()

preparePropValue ( $value,
$prop )
staticprotected

Prepare prop value before output in edit form.

Аргументы
mixed$valueMixed value.
array$propArray of field from manifest.
Возвращает
mixed

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

◆ saveComponent()

saveComponent ( $content,
$code,
array $params )
staticprotected

Save component with new params.

Аргументы
string$contentContent of block.
string$codeCode of component.
array$paramsParams for replace in component.
Возвращает
string Modified content.

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

◆ saveNode()

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

Save data for this node.

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

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

◆ setPredefineForDynamicProps()

setPredefineForDynamicProps ( array $additionalVals)
static

Fill predefined values for some dynamic props.

Аргументы
array$additionalValsAdditional vals.
Возвращает
void

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

◆ transformPropType()

transformPropType ( array $item,
$prop )
staticprotected

Additional transform type of prop item to attr item.

Аргументы
array$itemOne attr.
mixed$propOne prop.
Возвращает
array

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

◆ transformPropValue()

transformPropValue ( $value,
$prop )
staticprotected

Additional transform prop value before saving.

Аргументы
mixed$valueMixed value.
array$propArray of prop.
Возвращает
mixed

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

Поля

◆ $predefineForDynamicProps

$predefineForDynamicProps = array()
staticprotected

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


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