array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'eventbase.getmethod.php', 1 => 'EventBase::getMethod', ), 'up' => array ( 0 => 'class.eventbase.php', 1 => 'EventBase', ), 'prev' => array ( 0 => 'eventbase.getfeatures.php', 1 => 'EventBase::getFeatures', ), 'next' => array ( 0 => 'eventbase.gettimeofdaycached.php', 1 => 'EventBase::getTimeOfDayCached', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventbase/getmethod.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventBase::getMethod — Returns event method in use
Bu işlevin bağımsız değişkeni yoktur.
String representing used event method(backend).
Örnek 1 EventBase::getMethod() example
<?php
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "'select' method avoided\n";
}
// Create event_base associated with the config
$base = new EventBase($cfg);
echo "Event method used: ", $base->getMethod(), PHP_EOL;
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
`select' method avoided Event method used: epoll