1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files
archived-doc-ru/reference/event/eventbase/getfeatures.xml
Mikhail Alferov d3a13747bc Update 23ea6be to En (#1062)
* Update pattern.matching.xml to en

* Update createstopped.xml to en

* Update construct.xml to en

* Update createstopped.xml исправил формулировку

* Update createstopped.xml to en

* Update construct.xml to en

* Update createstopped.xml to en

* Update construct.xml to en

* Update construct.xml Добавил кавычки к названию страницы

* Update createstopped.xml to en

* Update construct.xml to en

* Update createstopped.xml to en

* Update createstopped.xml исправил ошибку

* Update construct.xml to en

* Update createstopped.xml to en

* Update construct.xml to en

* Update createstopped.xml to en

* Update prev.xml to en

* Update stat.xml to en

* Update construct.xml to en

* Update createstopped.xml to en

* Update set.xml to en

* Update clear.xml to en

* Update feed.xml to en

* Update invoke.xml to en

* Update setcallback.xml to en

* Update book.xml to en

* Update event.callbacks.xml to en

* Update event.constructing.signal.events.xml to en

* Update event.flags.xml to en

* Update event.constructing.signal.events.xml исправил формулировку

* Update event.persistence.xml to en

* Update event.xml to en

* Update eventbase.xml to en

* Update eventbuffer.xml to en

* Update eventbufferevent.about.callbacks.xml to en

* Update eventbufferevent.xml to en

* Update eventconfig.xml to en

* Update eventsslcontext.xml to en

* Update eventutil.xml to en

* Update setup.xml to en

* Update construct.xml to en

* Update free.xml to en

* Update pending.xml to en

* Update event.callbacks.xml исправил формулировку

* Update set.xml to en

* Update set.xml формулировка

* Update settimer.xml to en

* Update signal.xml to en

* Update timer.xml to en

* Update free.xml to en

* Update getfeatures.xml to en

* Update gotexit.xml to en

* Update gotstop.xml to en

* Update loop.xml to en

* Update addbuffer.xml to en

* Update copyout.xml to en

* Update drain.xml to en

* Update prependbuffer.xml to en

* Update readline.xml to en

* Update search.xml to en

* Update searcheol.xml to en

* Update search.xml исправил формулировку

* Update unlock.xml to en

* Update connecthost.xml to en

* Update construct.xml to en

* Update createpair.xml to en

* Update disable.xml to en

* Update enable.xml to en

* Update free.xml to en

* Update getdnserrorstring.xml to en

* Update readbuffer.xml to en

* Update setcallbacks.xml to en

* Update setwatermark.xml to en

* Update setwatermark.xml Исправил ошибку

* Update sslfilter.xml to en

* Update sslsocket.xml to en

* Update avoidmethod.xml to en

* Update setmaxdispatchinterval.xml to en

* Update loadhosts.xml to en

* Update parseresolvconf.xml to en

* Update setoption.xml to en

* Update accept.xml to en

* Update setallowedmethods.xml to en

* Update setcallback.xml to en

* Update setdefaultcallback.xml to en

* Update makerequest.xml to en

* Update addheader.xml to en

* Update findheader.xml to en

* Update getconnection.xml to en

* Update sendreplystart.xml to en

* Update construct.xml to en

* Update construct.xml to en

* Update setsocketoption.xml to en

* Update pattern.matching.xml to en
2025-04-25 17:47:22 +03:00

90 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: lex Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="eventbase.getfeatures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>EventBase::getFeatures</refname>
<refpurpose>Возвращает битовую маску поддерживаемых функций</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier>
<type>int</type>
<methodname>EventBase::getFeatures</methodname>
<void />
</methodsynopsis>
<para>
Метод возвращает битовую маску функций, которые поддерживаются объектом событийной базы.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Метод возвращает битовую маску поддерживаемых функций. Смотрите описание констант
семейства <link linkend="eventconfig.constants">EventConfig::FEATURE_*</link>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>
Пример использования <function>EventBase::getFeatures</function></title>
<programlisting role="php">
<![CDATA[
<?php
// Avoiding "select" method
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "Метод 'select' будет игнорироваться\n";
}
$base = new EventBase($cfg);
echo "Характеристики:\n";
$features = $base->getFeatures();
($features & EventConfig::FEATURE_ET) and print "ET — edge-triggered IO\n";
($features & EventConfig::FEATURE_O1) and print "O1 — O(1) operation for adding/deletting events\n";
($features & EventConfig::FEATURE_FDS) and print "FDS — arbitrary file descriptor types, and not just sockets\n";
?>
]]>
</programlisting>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member>
<methodname>EventBase::getMethod</methodname>
</member>
<member>
<classname>EventConfig</classname>
</member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->