PPNode_DOM Class Reference
[Parser]

Inherits PPNode.

List of all members.

Public Member Functions

 __construct ($node, $xpath=false)
 __get ($name)
 __toString ()
 getChildren ()
 Get an array-type node containing the children of this node.
 getFirstChild ()
 Get the first child of a tree node.
 getNextSibling ()
 Get the next sibling of any node.
 getChildrenOfType ($type)
 Get all children of this tree node which have a given name.
 getLength ()
 Returns the length of the array, or false if this is not an array-type node.
 item ($i)
 Returns an item of an array-type node.
 getName ()
 Get the name of this node.
 splitArg ()
 Split a <part> node into an associative array containing: name PPNode name index String index value PPNode value.
 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

 $node


Detailed Description

Definition at line 1376 of file Preprocessor_DOM.php.


Constructor & Destructor Documentation

PPNode_DOM::__construct ( node,
xpath = false 
)

Definition at line 1379 of file Preprocessor_DOM.php.

References $node.


Member Function Documentation

PPNode_DOM::__get ( name  ) 

Definition at line 1383 of file Preprocessor_DOM.php.

References $name.

PPNode_DOM::__toString (  ) 

Definition at line 1390 of file Preprocessor_DOM.php.

References $node, and $s.

PPNode_DOM::getChildren (  ) 

Get an array-type node containing the children of this node.

Returns false if this is not a tree node.

Implements PPNode.

Definition at line 1402 of file Preprocessor_DOM.php.

Referenced by splitHeading().

PPNode_DOM::getChildrenOfType ( type  ) 

Get all children of this tree node which have a given name.

Returns an array-type node, or false if this is not a tree node.

Implements PPNode.

Definition at line 1414 of file Preprocessor_DOM.php.

References $type.

PPNode_DOM::getFirstChild (  ) 

Get the first child of a tree node.

False if there isn't one.

Implements PPNode.

Definition at line 1406 of file Preprocessor_DOM.php.

PPNode_DOM::getLength (  ) 

Returns the length of the array, or false if this is not an array-type node.

Implements PPNode.

Definition at line 1418 of file Preprocessor_DOM.php.

PPNode_DOM::getName (  ) 

Get the name of this node.

The following names are defined here:

h A heading node. template A double-brace node. tplarg A triple-brace node. title The first argument to a template or tplarg node. part Subsequent arguments to a template or tplarg node. nodelist An array-type node

The subclass may define various other names for tree and leaf nodes.

Implements PPNode.

Definition at line 1431 of file Preprocessor_DOM.php.

PPNode_DOM::getNextSibling (  ) 

Get the next sibling of any node.

False if there isn't one

Implements PPNode.

Definition at line 1410 of file Preprocessor_DOM.php.

PPNode_DOM::item ( i  ) 

Returns an item of an array-type node.

Implements PPNode.

Definition at line 1426 of file Preprocessor_DOM.php.

References $i.

PPNode_DOM::splitArg (  ) 

Split a <part> node into an associative array containing: name PPNode name index String index value PPNode value.

Implements PPNode.

Definition at line 1445 of file Preprocessor_DOM.php.

References $name.

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.

Implements PPNode.

Definition at line 1463 of file Preprocessor_DOM.php.

PPNode_DOM::splitHeading (  ) 

Split a <h> node.

Implements PPNode.

Definition at line 1486 of file Preprocessor_DOM.php.

References getChildren().


Member Data Documentation

PPNode_DOM::$node

Definition at line 1377 of file Preprocessor_DOM.php.

Referenced by __construct(), and __toString().


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

Generated on Sat Sep 5 02:08:44 2009 for MediaWiki by  doxygen 1.5.9