object The&
DB_NestedSet::factory
(
string
$driver
,
string
$dsn
,
array
$params = array()
)
If the class given by $driver allready exists it will be used. If not the driver will be searched inside the default path ./NestedSet/
$driver
The driver, such as DB or MDB
$dsn
The dsn for connecting to the database
$params
The field name params for the node table
returns DB_NestedSet object
throws no exceptions thrown
This function can not be called statically.
Factory
<?php
require_once('DB/NestedSet.php');
$nestedSet =& DB_NestedSet::factory('DB', $dsn, $params);
?>