array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), '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' => 'en', '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 — Constructs EventConfig object
Constructs EventConfig object which could be passed to EventBase::__construct() constructor.
Esta función no tiene parámetros.
Ejemplo #1 EventConfig::__construct() example
<?php
// Avoiding "select" method
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "'select' method avoided\n";
}
// Create event_base associated with the config
$base = new EventBase($cfg);
/* Now $base is configured to avoid select backend(method) */
?>