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

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

DB_NestedSet::factory

DB_NestedSet::factory() – ドライバにもとづいた DB_NestedSet の具象インスタンスを返す

Synopsis

require_once 'DB/NestedSet.php';

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

Description

$driver で指定したクラスが存在する場合はそれを使用します。 存在しない場合はデフォルトのパス ./NestedSet/ からそれを探します。

Parameter

string $driver

DB や MDB などのドライバ。

string $dsn

データベースに接続するための DSN。

array $params

ノードテーブルのフィールド名。

Return value

DB_NestedSet オブジェクトを返します。

Throws

例外はスローされません。

Note

This function can not be called statically.

Example

ファクトリ

<?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, 21 Jun 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.