previous導入 (Previous) (Next) DB_NestedSet::apiVersionnext

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::addListener

DB_NestedSet::addListener() – イベントリスナーを追加する

Synopsis

require_once 'DB/NestedSet.php';

string DB_NestedSet::addListener ( string $event , &$listener , string $listener )

Description

イベントリスナーを追加し、その ID を返します。 Known events are
 nodeCreate
 nodeDelete
 nodeUpdate
 nodeCopy
 nodeLoad

Parameter

string $event

イベント名。

string $listener

リスナーオブジェクト。

Throws

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

Note

This function can not be called statically.

Example

リスナーの追加

<?php
require_once('DB/NestedSet.php');
    
$nestedSet =& DB_NestedSet::factory('DB'$dsn$params);
    
$nestedSet->AddListener("nodeCreate""listener");
?>
previous導入 (Previous) (Next) DB_NestedSet::apiVersionnext

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.