<?php
 class MiniXMLTreeComponent { var $xparent; function MiniXMLTreeComponent () { } function name ($setTo=NULL) { return NULL; } function & getElement ($name) { return _MiniXMLReturnNullByRef(); } function getValue () { return NULL; } function &parent (&$setParent) { if (! is_null($setParent)) { if (! method_exists($setParent, 'MiniXMLTreeComponent')) { return _MiniXMLError("MiniXMLTreeComponent::parent(): Must pass an instance derived from " . "MiniXMLTreeComponent to set."); } $this->xparent = $setParent; } return $this->xparent; } function toString ($depth=0) { return NULL; } function dump () { return var_dump($this); } function _spaceStr ($numSpaces) { $retStr = ''; if ($numSpaces < 0) { return $retStr; } for($i = 0; $i < $numSpaces; $i++) { $retStr .= ' '; } return $retStr; } function __destruct() { $this->xparent = null; } } ?>
