mirror of
https://github.com/php/doc-ru.git
synced 2026-03-26 00:32:15 +01:00
145 lines
3.9 KiB
XML
145 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: 508869e1df6458162c162d71669f5e81abd65d50 Maintainer: sergey Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
|
||
<refentry xml:id="evstat.createstopped" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<refnamediv>
|
||
<refname>EvStat::createStopped</refname>
|
||
<refpurpose>Создаёт остановленный объект наблюдателя EvStat</refpurpose>
|
||
</refnamediv>
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<modifier>final</modifier>
|
||
<modifier>public</modifier>
|
||
<modifier>static</modifier>
|
||
<type>void</type>
|
||
<methodname>EvStat::createStopped</methodname>
|
||
<methodparam>
|
||
<type>string</type>
|
||
<parameter>path</parameter>
|
||
</methodparam>
|
||
<methodparam>
|
||
<type>float</type>
|
||
<parameter>interval</parameter>
|
||
</methodparam>
|
||
<methodparam>
|
||
<type>callable</type>
|
||
<parameter>callback</parameter>
|
||
</methodparam>
|
||
<methodparam
|
||
choice="opt">
|
||
<type>mixed</type>
|
||
<parameter>data</parameter>
|
||
<initializer>&null;</initializer>
|
||
</methodparam>
|
||
<methodparam
|
||
choice="opt">
|
||
<type>int</type>
|
||
<parameter>priority</parameter>
|
||
<initializer>0</initializer>
|
||
</methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Создаёт объект наблюдателя EvStat, но не запускает его автоматически
|
||
(в отличие от <methodname>EvStat::__construct</methodname>).
|
||
</para>
|
||
</refsect1>
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>path</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Путь для ожидания изменения статуса.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>interval</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Подсказывает, как быстро ожидается обнаружение изменений,
|
||
и его обычно указывается <constant>0.0</constant>,
|
||
чтобы позволить <emphasis>libev</emphasis> выбрать подходящее значение.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>callback</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Смотрите
|
||
<link linkend="ev.watcher-callbacks">Наблюдатели обратного вызова</link>
|
||
.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>data</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
Пользовательские данные, связанные с наблюдателем.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term>
|
||
<parameter>priority</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
<link linkend="ev.constants.watcher-pri">Приоритет наблюдателя</link>
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</refsect1>
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
Возвращает остановленный объект наблюдателя EvStat в случае успешного выполнения.
|
||
</para>
|
||
</refsect1>
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<simplelist>
|
||
<member>
|
||
<methodname>EvStat::__construct</methodname>
|
||
</member>
|
||
<member>
|
||
<methodname>EvWatcher::start</methodname>
|
||
</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
|
||
-->
|