mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-25 17:32:07 +01:00
92 lines
2.5 KiB
XML
92 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: e26545dcabdf763f6b3b9f792524b6cf16d99457 Maintainer: yannick 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>Retourne un masque des fonctionnalités supportées</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier>
|
|
<type>int</type>
|
|
<methodname>EventBase::getFeatures</methodname>
|
|
<void />
|
|
</methodsynopsis>
|
|
<para>
|
|
Retourne un masque des fonctionnalités supportées.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne un entier représentant un masque des fonctionnalités supportées.
|
|
Voir les constantes
|
|
<link linkend="eventconfig.constants">EventConfig::FEATURE_*</link>.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Exemple avec <function>EventBase::getFeatures</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// Mise à l'écart de la méthode "select"
|
|
$cfg = new EventConfig();
|
|
if ($cfg->avoidMethod("select")) {
|
|
echo "Mise à l'écart de la méthode 'select'\n";
|
|
}
|
|
|
|
$base = new EventBase($cfg);
|
|
|
|
echo "fonctionnalités :\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
|
|
-->
|