array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'eventconfig.construct.php', 1 => 'EventConfig::__construct', ), 'up' => array ( 0 => 'class.eventconfig.php', 1 => 'EventConfig', ), 'prev' => array ( 0 => 'eventconfig.avoidmethod.php', 1 => 'EventConfig::avoidMethod', ), 'next' => array ( 0 => 'eventconfig.requirefeatures.php', 1 => 'EventConfig::requireFeatures', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/event/eventconfig/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventConfig::__construct — 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 后端(方法) */
?>