cain Mon Jun 30 09:53:06 2003 EDT
Modified files:
/pear/Tree Tree.php
Log:
- setup does not require DSN parameter, i.e. Tree::setup('XML') and then setupByRawData()
Index: pear/Tree/Tree.php
diff -u pear/Tree/Tree.php:1.8 pear/Tree/Tree.php:1.9
--- pear/Tree/Tree.php:1.8 Fri Jun 13 16:27:17 2003
+++ pear/Tree/Tree.php Mon Jun 30 09:53:05 2003
@@no-spam -16,7 +16,7 @@no-spam
// | Authors: Wolfram Kriesing <wolfram@no-spam> |
// +----------------------------------------------------------------------+
//
-// $Id: Tree.php,v 1.8 2003/06/13 20:27:17 pajoye Exp $
+// $Id: Tree.php,v 1.9 2003/06/30 13:53:05 cain Exp $
/**
* the DB interface to the tree class
@@no-spam -136,7 +136,7 @@no-spam
* for XML it would be the filename
* @no-spam array the options you want to set
*/
- function setup( $type , $dsn , $options=array() )
+ function setup( $type , $dsn='' , $options=array() )
{
$type = explode( '_' , $type );
$method = 'setup'.$type[0];
@@no-spam -158,4 +158,4 @@no-spam
is_subclass_of($value, 'tree_error')));
}
}
-?>
\ No newline at end of file
+?>