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

List of all members.

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


Constructor & Destructor Documentation

PPNode_DOM::__construct ( node,
xpath = false 
)

Definition at line 1607 of file Preprocessor_DOM.php.


Member Function Documentation

Definition at line 1621 of file Preprocessor_DOM.php.

Returns:
bool|PPNode_DOM

Implements PPNode.

Definition at line 1636 of file Preprocessor_DOM.php.

Parameters:
$type
Returns:
bool|PPNode_DOM

Implements PPNode.

Definition at line 1659 of file Preprocessor_DOM.php.

Returns:
bool|PPNode_DOM

Implements PPNode.

Definition at line 1643 of file Preprocessor_DOM.php.

Returns:
int

Implements PPNode.

Definition at line 1666 of file Preprocessor_DOM.php.

References getXPath().

Returns:
string

Implements PPNode.

Definition at line 1686 of file Preprocessor_DOM.php.

Returns:
bool|PPNode_DOM

Implements PPNode.

Definition at line 1650 of file Preprocessor_DOM.php.

Returns:
DOMXPath

Definition at line 1614 of file Preprocessor_DOM.php.

References $node.

Referenced by getLength().

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

Implements PPNode.

Definition at line 1678 of file Preprocessor_DOM.php.

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

Exceptions:
MWException
Returns:
array

Implements PPNode.

Definition at line 1703 of file Preprocessor_DOM.php.

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

Split a "<h>" node.

Exceptions:
MWException
Returns:
array

Implements PPNode.

Definition at line 1751 of file Preprocessor_DOM.php.


Member Data Documentation

DOMElement PPNode_DOM::$node

Definition at line 1604 of file Preprocessor_DOM.php.

Referenced by getXPath().

PPNode_DOM::$xpath

Definition at line 1605 of file Preprocessor_DOM.php.


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