MediaWiki REL1_34
|
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 DOMNodeList | $node |
$xpath | |
since 1.34, use PPNode_Hash_{Tree,Text,Array,Attr}
-file-suppress PhanUndeclaredMethod
Definition at line 28 of file PPNode_DOM.php.
PPNode_DOM::__construct | ( | $node, | |
$xpath = false |
|||
) |
Definition at line 36 of file PPNode_DOM.php.
References $node.
PPNode_DOM::__toString | ( | ) |
Definition at line 50 of file PPNode_DOM.php.
PPNode_DOM::getChildren | ( | ) |
Implements PPNode.
Definition at line 65 of file PPNode_DOM.php.
Referenced by splitHeading().
PPNode_DOM::getChildrenOfType | ( | $type | ) |
string | $type |
Implements PPNode.
Definition at line 88 of file PPNode_DOM.php.
References $type, and getXPath().
PPNode_DOM::getFirstChild | ( | ) |
PPNode_DOM::getLength | ( | ) |
PPNode_DOM::getName | ( | ) |
Implements PPNode.
Definition at line 115 of file PPNode_DOM.php.
Referenced by splitHeading().
PPNode_DOM::getNextSibling | ( | ) |
PPNode_DOM::getXPath | ( | ) |
Definition at line 43 of file PPNode_DOM.php.
References $xpath.
Referenced by getChildrenOfType(), splitArg(), and splitExt().
PPNode_DOM::item | ( | $i | ) |
int | $i |
Implements PPNode.
Definition at line 107 of file PPNode_DOM.php.
PPNode_DOM::splitArg | ( | ) |
Split a "<part>" node into an associative array containing:
MWException |
Implements PPNode.
Definition at line 132 of file PPNode_DOM.php.
References $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.
MWException |
Implements PPNode.
Definition at line 154 of file PPNode_DOM.php.
References $xpath, and getXPath().
PPNode_DOM::splitHeading | ( | ) |
Split a "<h>" node.
MWException |
Implements PPNode.
Definition at line 180 of file PPNode_DOM.php.
References getChildren(), and getName().
DOMElement DOMNodeList PPNode_DOM::$node |
Definition at line 33 of file PPNode_DOM.php.
Referenced by __construct(), and __toString().
PPNode_DOM::$xpath |
Definition at line 34 of file PPNode_DOM.php.
Referenced by getXPath(), splitArg(), and splitExt().