array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'eventconfig.avoidmethod.php', 1 => 'EventConfig::avoidMethod', ), 'up' => array ( 0 => 'class.eventconfig.php', 1 => 'EventConfig', ), 'prev' => array ( 0 => 'class.eventconfig.php', 1 => 'EventConfig', ), 'next' => array ( 0 => 'eventconfig.construct.php', 1 => 'EventConfig::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/event/eventconfig/avoidmethod.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventConfig::avoidMethod — Demande à libevent d'ignorer une méthode d'événement spécifique
Demande à libevent d'ignorer une méthode d'événement spécifique. Voir la » création d'un événement de base.
method
La méthode à ignorer. Voir les constantes EventConfig.
Exemple #1 Exemple avec EventConfig::avoidMethod()
<?php
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "Méthode 'select' ignorée\n";
}
?>