| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
The Event class(PECL event >= 1.2.6-beta) はじめにEvent class represents and event firing on a file descriptor being ready to read from or write to; a file descriptor becoming ready to read from or write to(edge-triggered I/O only); a timeout expiring; a signal occuring; a user-triggered event. Every event is associated with EventBase . However, event will never fire until it is added (via Event::add() ). An added event remains in pending state until the registered event occurs, thus turning it to active state. To handle events user may register a callback which is called when event becomes active. If event is configured persistent , it remains pending. If it is not persistent, it stops being pending when it's callback runs. Event::del() method deletes event, thus making it non-pending. By means of Event::add() method it could be added again. クラス概要
final
Event
{
/* Constants */
/* プロパティ */
/* メソッド */
public
__construct
(
EventBase
}$base
,
mixed
$fd
,
int
$what
,
callable
$cb
[,
mixed
$arg
= NULL
] )プロパティ
定義済み定数
目次
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「The Event class」をGoogle検索
|