MediaWiki REL1_32
PPNode_DOM Class Reference
Inheritance diagram for PPNode_DOM:
Collaboration diagram for PPNode_DOM:

Public Member Functions

 __construct ( $node, $xpath=false)
 
 __toString ()
 
 getChildren ()
 
 getChildrenOfType ( $type)
 
 getFirstChild ()
 
 getLength ()
 
 getName ()
 
 getNextSibling ()
 
 getXPath ()
 
 item ( $i)
 
 splitArg ()
 Split a "<part>" node into an associative array containing:
 
 splitExt ()
 Split an "<ext>" node into an associative array containing name, attr, inner and close All values in the resulting array are PPNodes.
 
 splitHeading ()
 Split a "<h>" node.
 

Public Attributes

DOMElement $node
 
 $xpath
 

Detailed Description

Definition at line 1894 of file Preprocessor_DOM.php.

Constructor & Destructor Documentation

◆ __construct()

PPNode_DOM::__construct (   $node,
  $xpath = false 
)

Definition at line 1902 of file Preprocessor_DOM.php.

Member Function Documentation

◆ __toString()

PPNode_DOM::__toString ( )

Definition at line 1916 of file Preprocessor_DOM.php.

References $s, and as.

◆ getChildren()

PPNode_DOM::getChildren ( )
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1931 of file Preprocessor_DOM.php.

◆ getChildrenOfType()

PPNode_DOM::getChildrenOfType (   $type)
Parameters
string$type
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1954 of file Preprocessor_DOM.php.

References $type.

◆ getFirstChild()

PPNode_DOM::getFirstChild ( )
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1938 of file Preprocessor_DOM.php.

◆ getLength()

PPNode_DOM::getLength ( )
Returns
int

Implements PPNode.

Definition at line 1961 of file Preprocessor_DOM.php.

◆ getName()

PPNode_DOM::getName ( )
Returns
string

Implements PPNode.

Definition at line 1981 of file Preprocessor_DOM.php.

◆ getNextSibling()

PPNode_DOM::getNextSibling ( )
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1945 of file Preprocessor_DOM.php.

◆ getXPath()

PPNode_DOM::getXPath ( )
Returns
DOMXPath

Definition at line 1909 of file Preprocessor_DOM.php.

◆ item()

PPNode_DOM::item (   $i)
Parameters
int$i
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1973 of file Preprocessor_DOM.php.

◆ splitArg()

PPNode_DOM::splitArg ( )

Split a "<part>" node into an associative array containing:

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 1998 of file Preprocessor_DOM.php.

References $name.

◆ splitExt()

PPNode_DOM::splitExt ( )

Split an "<ext>" node into an associative array containing name, attr, inner and close All values in the resulting array are PPNodes.

Inner and close are optional.

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 2020 of file Preprocessor_DOM.php.

◆ splitHeading()

PPNode_DOM::splitHeading ( )

Split a "<h>" node.

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 2046 of file Preprocessor_DOM.php.

Member Data Documentation

◆ $node

DOMElement PPNode_DOM::$node

Definition at line 1899 of file Preprocessor_DOM.php.

◆ $xpath

PPNode_DOM::$xpath

Definition at line 1900 of file Preprocessor_DOM.php.


The documentation for this class was generated from the following file: