previousDB_NestedSet::testLock (Previous) (Next) DB_NestedSet::updateNodenext

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

DB_NestedSet::triggerEvent() – イベントを起動し、イベントリスナーをコールする

Synopsis

require_once 'DB/NestedSet.php';

bool DB_NestedSet::triggerEvent ( string $event , &$node , array $eparams = = false , object $ )

Description

This package is not documented yet.

Parameter

string $event

発生するイベント。

&$node

ノード。

array $eparams

ハンドラに必要なパラメータの連想配列。

object $node

変更させようとするノードオブジェクトへの参照。

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");
    
$parent $nestedSet->createRootNode(array('name' => 'rootnode'), falsetrue);
    
$node $nestedSet->createSubNode($parent, array('name' => "node"));
    
$nestedSet->TriggerEvent("nodeDelete"$node);
?>
previousDB_NestedSet::testLock (Previous) (Next) DB_NestedSet::updateNodenext

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.