Bitrix API

Element extends Node

Table of Contents

Constants

ATTRIBUTE_NODE  = 2
CDATA_SECTION_NODE  = 4
COMMENT_NODE  = 8
DOCUMENT_FRAGMENT_NODE  = 11
DOCUMENT_NODE  = 9
DOCUMENT_TYPE_NODE  = 10
ELEMENT_NODE  = 1
ENTITY_NODE  = 6
ENTITY_REFERENCE_NODE  = 5
NOTATION_NODE  = 12
PROCESSING_INSTRUCTION_NODE  = 7
TEXT_NODE  = 3

Properties

$bxClosable  : mixed
$bxIsAlreadyClosed  : mixed
$bxNodeFoundCloseTag  : mixed
$isNodeListAsArray  : mixed

Methods

__construct()  : mixed
appendChild()  : mixed
Adds the node newChild to the end of the list of children of this node.
closest()  : mixed
getAttribute()  : mixed
getAttributeNode()  : mixed
getAttributes()  : mixed
getAttributesArray()  : mixed
getChildNodes()  : mixed
getChildNodesArray()  : mixed
getClassList()  : mixed
getClassName()  : mixed
getFirstChild()  : mixed
getId()  : mixed
getInnerHTML()  : mixed
getLastChild()  : mixed
getName()  : mixed
getNextSibling()  : mixed
getNodeName()  : mixed
getNodeType()  : mixed
getNodeValue()  : mixed
getOuterHTML()  : mixed
getOwnerDocument()  : mixed
getParentElement()  : mixed
getParentNode()  : mixed
getPreviousSibling()  : mixed
getStyle()  : mixed
getTagName()  : mixed
getTextContent()  : mixed
hasAttribute()  : bool
hasAttributes()  : mixed
hasChildNodes()  : mixed
insertBefore()  : mixed
isEqual()  : mixed
querySelector()  : Node|null
querySelectorAll()  : array<string|int, Node>
removeAttribute()  : mixed
removeAttributeNode()  : mixed
removeChild()  : mixed
replaceChild()  : mixed
setAttribute()  : mixed
setAttributeNode()  : mixed
setChildNodesArray()  : mixed
setClassList()  : mixed
setClassName()  : mixed
setId()  : mixed
setInnerHTML()  : mixed
setName()  : mixed
setNodeName()  : mixed
setOwnerDocument()  : mixed
setParentNode()  : mixed
setStyle()  : mixed
toArray()  : mixed
toString()  : mixed

Constants

ATTRIBUTE_NODE

public mixed ATTRIBUTE_NODE = 2

CDATA_SECTION_NODE

public mixed CDATA_SECTION_NODE = 4

COMMENT_NODE

public mixed COMMENT_NODE = 8

DOCUMENT_FRAGMENT_NODE

public mixed DOCUMENT_FRAGMENT_NODE = 11

DOCUMENT_NODE

public mixed DOCUMENT_NODE = 9

DOCUMENT_TYPE_NODE

public mixed DOCUMENT_TYPE_NODE = 10

ELEMENT_NODE

public mixed ELEMENT_NODE = 1

ENTITY_NODE

public mixed ENTITY_NODE = 6

ENTITY_REFERENCE_NODE

public mixed ENTITY_REFERENCE_NODE = 5

NOTATION_NODE

public mixed NOTATION_NODE = 12

PROCESSING_INSTRUCTION_NODE

public mixed PROCESSING_INSTRUCTION_NODE = 7

TEXT_NODE

public mixed TEXT_NODE = 3

Properties

$bxClosable

public mixed $bxClosable = true

$bxIsAlreadyClosed

public mixed $bxIsAlreadyClosed = false

$bxNodeFoundCloseTag

public mixed $bxNodeFoundCloseTag = false

$isNodeListAsArray

public static mixed $isNodeListAsArray = true

Methods

__construct()

public __construct(mixed $name) : mixed
Parameters
$name : mixed

appendChild()

Adds the node newChild to the end of the list of children of this node.

public appendChild(Node $newChild) : mixed

If the newChild is already in the tree, it is first removed.

Parameters
$newChild : Node

closest()

public closest(mixed $queryString) : mixed
Parameters
$queryString : mixed

getAttribute()

public getAttribute(mixed $name) : mixed
Parameters
$name : mixed

getAttributeNode()

public getAttributeNode(mixed $name) : mixed
Parameters
$name : mixed

getAttributes()

public getAttributes() : mixed

getAttributesArray()

public getAttributesArray() : mixed

getChildNodes()

public getChildNodes() : mixed

getChildNodesArray()

public getChildNodesArray() : mixed

getClassList()

public getClassList() : mixed

getClassName()

public getClassName() : mixed

getFirstChild()

public getFirstChild() : mixed

getInnerHTML()

public getInnerHTML() : mixed

getLastChild()

public getLastChild() : mixed

getNextSibling()

public getNextSibling() : mixed

getNodeName()

public getNodeName() : mixed

getNodeType()

public getNodeType() : mixed

getNodeValue()

public getNodeValue() : mixed

getOuterHTML()

public getOuterHTML() : mixed

getOwnerDocument()

public getOwnerDocument() : mixed

getParentElement()

public getParentElement() : mixed

getParentNode()

public getParentNode() : mixed

getPreviousSibling()

public getPreviousSibling() : mixed

getStyle()

public getStyle() : mixed

getTagName()

public getTagName() : mixed

getTextContent()

public getTextContent() : mixed

hasAttribute()

public hasAttribute(string $attributeName) : bool
Parameters
$attributeName : string
Return values
bool

hasAttributes()

public hasAttributes() : mixed

hasChildNodes()

public hasChildNodes() : mixed

insertBefore()

public insertBefore(Node $newChild[, Node $refChild = null ][, mixed $removeExist = true ]) : mixed
Parameters
$newChild : Node
$refChild : Node = null
$removeExist : mixed = true

isEqual()

public isEqual([Node $node = null ]) : mixed
Parameters
$node : Node = null

querySelector()

public querySelector(string $queryString) : Node|null
Parameters
$queryString : string
Return values
Node|null

querySelectorAll()

public querySelectorAll(string $queryString) : array<string|int, Node>
Parameters
$queryString : string
Return values
array<string|int, Node>

removeAttribute()

public removeAttribute(mixed $name) : mixed
Parameters
$name : mixed

removeAttributeNode()

public removeAttributeNode(Attr $oldNode) : mixed
Parameters
$oldNode : Attr

removeChild()

public removeChild(Node $oldChild) : mixed
Parameters
$oldChild : Node

replaceChild()

public replaceChild(Node $newChild, Node $oldChild) : mixed
Parameters
$newChild : Node
$oldChild : Node

setAttribute()

public setAttribute(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

setAttributeNode()

public setAttributeNode(Attr $attr) : mixed
Parameters
$attr : Attr

setChildNodesArray()

public setChildNodesArray(mixed $childList) : mixed
Parameters
$childList : mixed

setClassList()

public setClassList(array<string|int, mixed> $classList) : mixed
Parameters
$classList : array<string|int, mixed>

setClassName()

public setClassName(mixed $className) : mixed
Parameters
$className : mixed

setId()

public setId(mixed $id) : mixed
Parameters
$id : mixed

setInnerHTML()

public setInnerHTML(mixed $html) : mixed
Parameters
$html : mixed

setName()

public setName(mixed $id) : mixed
Parameters
$id : mixed

setNodeName()

public setNodeName(mixed $a) : mixed
Parameters
$a : mixed

setParentNode()

public setParentNode([Node $node = null ]) : mixed
Parameters
$node : Node = null

setStyle()

public setStyle(mixed $style) : mixed
Parameters
$style : mixed

toArray()

public toArray() : mixed

toString()

public toString() : mixed

        
On this page

Search results