previousDB_NestedSet::deleteNode (Previous) (Next) DB_NestedSet::getAllNodesnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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/

Parameter

string $driver

The driver, such as DB or MDB

string $dsn

The dsn for connecting to the database

array $params

The field name params for the node table

Return value

returns DB_NestedSet object

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Example

Factory

<?php
require_once('DB/NestedSet.php');
    
$nestedSet =& DB_NestedSet::factory('DB'$dsn$params);
?>
previousDB_NestedSet::deleteNode (Previous) (Next) DB_NestedSet::getAllNodesnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.