cvs: pear /XML_Tree Tree.php

From: Date: Fri, 18 Jan 2002 18:25:09 +0000
Subject: cvs: pear /XML_Tree Tree.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1999@lists.php.net to get a copy of this message
mj Fri Jan 18 13:25:09 2002 EDT Modified files: /pear/XML_Tree Tree.php Log: * Make it possible to pass attributes for the root element. Index: pear/XML_Tree/Tree.php diff -u pear/XML_Tree/Tree.php:1.9 pear/XML_Tree/Tree.php:1.10 --- pear/XML_Tree/Tree.php:1.9 Tue Dec 11 14:45:55 2001 +++ pear/XML_Tree/Tree.php Fri Jan 18 13:25:09 2002 @@ -18,7 +18,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> (tree mapping from xml file)| // +----------------------------------------------------------------------+ // -// $Id: Tree.php,v 1.9 2001/12/11 19:45:55 sebastian Exp $ +// $Id: Tree.php,v 1.10 2002/01/18 18:25:09 mj Exp $ // require_once 'XML/Parser.php'; @@ -101,8 +101,8 @@ * * @access public */ - function &add_root($name) { - $this->root = new XML_Tree_Node($name); + function &add_root($name, $content = '', $attributes = array()) { + $this->root = new XML_Tree_Node($name, $content, $attributes); return $this->root; }

« previous php.pear.cvs (#1999) next »