MediaWiki  1.28.0
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: More...
 
 splitExt ()
 Split an "<ext>" node into an associative array containing name, attr, inner and close All values in the resulting array are PPNodes. More...
 
 splitHeading ()
 Split a "<h>" node. More...
 

Public Attributes

DOMElement $node
 
 $xpath
 

Detailed Description

Definition at line 1792 of file Preprocessor_DOM.php.

Constructor & Destructor Documentation

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

Definition at line 1801 of file Preprocessor_DOM.php.

References $node.

Member Function Documentation

PPNode_DOM::__toString ( )

Definition at line 1815 of file Preprocessor_DOM.php.

References $s, and as.

PPNode_DOM::getChildren ( )
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1830 of file Preprocessor_DOM.php.

Referenced by splitHeading().

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

Implements PPNode.

Definition at line 1853 of file Preprocessor_DOM.php.

References $type, and getXPath().

PPNode_DOM::getFirstChild ( )
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1837 of file Preprocessor_DOM.php.

PPNode_DOM::getLength ( )
Returns
int

Implements PPNode.

Definition at line 1860 of file Preprocessor_DOM.php.

PPNode_DOM::getName ( )
Returns
string

Implements PPNode.

Definition at line 1880 of file Preprocessor_DOM.php.

Referenced by splitHeading().

PPNode_DOM::getNextSibling ( )
Returns
bool|PPNode_DOM

Implements PPNode.

Definition at line 1844 of file Preprocessor_DOM.php.

PPNode_DOM::getXPath ( )
Returns
DOMXPath

Definition at line 1808 of file Preprocessor_DOM.php.

References $xpath.

Referenced by getChildrenOfType(), splitArg(), and splitExt().

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

Implements PPNode.

Definition at line 1872 of file Preprocessor_DOM.php.

PPNode_DOM::splitArg ( )

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

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 1897 of file Preprocessor_DOM.php.

References $name, $xpath, and getXPath().

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 1919 of file Preprocessor_DOM.php.

References $xpath, and getXPath().

PPNode_DOM::splitHeading ( )

Split a "<h>" node.

Exceptions
MWException
Returns
array

Implements PPNode.

Definition at line 1945 of file Preprocessor_DOM.php.

References getChildren(), and getName().

Member Data Documentation

DOMElement PPNode_DOM::$node

Definition at line 1798 of file Preprocessor_DOM.php.

Referenced by __construct().

PPNode_DOM::$xpath

Definition at line 1799 of file Preprocessor_DOM.php.

Referenced by getXPath(), splitArg(), and splitExt().


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