EventConfig::__construct
(PECL event >= 1.2.6-beta)
EventConfig::__construct — EventConfig 构造函数
参数
此函数没有参数。
返回值
返回 EventConfig 对象。
范例
示例 #1 EventConfig::__construct() 示例
<?php
// 避免 "select" 方法
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "'select' 方法失效\n";
}
// 创建跟 config 相关的 event_base
$base = new EventBase($cfg);
/* 现在 $base 配置为避免 select 后端(方法) */
?>
参见
- EventBase::__construct() - Constructs EventBase object
add a note
User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/eventconfig.construct.php