TagNode Class Reference
[DifferenceEngine]

Node that can contain other nodes. More...

Inherits Node.

Inherited by BodyNode.

List of all members.

Public Member Functions

 __construct ($parent, $qName, $attributes)
 addChildAbsolute (Node $node, $index)
 getIndexOf (Node $child)
 getNbChildren ()
 getMinimalDeletedSet ($id, &$allDeleted, &$somethingDeleted)
 splitUntil (TagNode $parent, Node $split, $includeLeft)
 copyTree ()
 getMatchRatio (TagNode $other)
 expandWhiteSpace ()
 getLeftMostChild ()
 getRightMostChild ()
 isPre ()

Static Public Member Functions

static toDiffLine (TagNode $node)

Public Attributes

 $children = array()
 $qName
 $attributes = array()
 $openingTag

Static Public Attributes

static $blocks

Private Member Functions

 removeChild ($index)


Detailed Description

Node that can contain other nodes.

Represents an HTML tag.

Definition at line 105 of file Nodes.php.


Constructor & Destructor Documentation

TagNode::__construct ( parent,
qName,
attributes 
)

Definition at line 115 of file Nodes.php.

References $attributes, $key, Node::$parent, $qName, and Xml::openElement().


Member Function Documentation

TagNode::addChildAbsolute ( Node node,
index 
)

Definition at line 124 of file Nodes.php.

Referenced by expandWhiteSpace().

TagNode::copyTree (  ) 

Reimplemented in BodyNode.

Definition at line 231 of file Nodes.php.

TagNode::expandWhiteSpace (  ) 

Definition at line 248 of file Nodes.php.

References $i, addChildAbsolute(), and getNbChildren().

TagNode::getIndexOf ( Node child  ) 

Definition at line 128 of file Nodes.php.

References $key.

TagNode::getLeftMostChild (  ) 

Definition at line 278 of file Nodes.php.

TagNode::getMatchRatio ( TagNode other  ) 

Definition at line 243 of file Nodes.php.

TagNode::getMinimalDeletedSet ( id,
&$  allDeleted,
&$  somethingDeleted 
)

Reimplemented in BodyNode.

Definition at line 142 of file Nodes.php.

TagNode::getNbChildren (  ) 

Definition at line 138 of file Nodes.php.

Referenced by expandWhiteSpace(), and getRightMostChild().

TagNode::getRightMostChild (  ) 

Definition at line 285 of file Nodes.php.

References getNbChildren().

TagNode::isPre (  ) 

Definition at line 292 of file Nodes.php.

TagNode::removeChild ( index  )  [private]

Definition at line 222 of file Nodes.php.

TagNode::splitUntil ( TagNode parent,
Node split,
includeLeft 
)

Definition at line 172 of file Nodes.php.

static TagNode::toDiffLine ( TagNode node  )  [static]

Definition at line 296 of file Nodes.php.


Member Data Documentation

TagNode::$attributes = array()

Definition at line 111 of file Nodes.php.

Referenced by __construct().

TagNode::$blocks [static]

Initial value:

 array('html', 'body','p','blockquote', 'h1',
                'h2', 'h3', 'h4', 'h5', 'pre', 'div', 'ul', 'ol', 'li', 'table',
                'tbody', 'tr', 'td', 'th', 'br')

Definition at line 227 of file Nodes.php.

Referenced by DomTreeBuilder::endElement(), and DomTreeBuilder::startElement().

TagNode::$children = array()

Definition at line 107 of file Nodes.php.

TagNode::$openingTag

Definition at line 113 of file Nodes.php.

TagNode::$qName

Definition at line 109 of file Nodes.php.

Referenced by __construct().


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

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