DB_NestedSet::factory()

DB_NestedSet::factory()  --  Handles the returning of a concrete instance of DB_NestedSet based on the driver.

Synopsis

require_once 'DB/NestedSet.php';

object The& DB_NestedSet::factory (string $driver, string $dsn, array [$params = array()])

Description

If the class given by $driver allready exists it will be used. If not the driver will be searched inside the default path ./NestedSet/

Paramètres

chaîne de caractères $driver

The driver, such as DB or MDB

chaîne de caractères $dsn

The dsn for connecting to the database

array $params

The field name params for the node table

Valeur retournée

returns DB_NestedSet object

Valeurs renvoyées

throws no exceptions thrown

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple