-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tradução em reference/ev/evfork (#698)
* inclusão dos arquivos originais com revisão atualizada * Tradução em reference/ev/evfork
- Loading branch information
1 parent
c99a13b
commit 84126f8
Showing
2 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 33e5f4ef7243bc1282acb1cba93e8f99c1debe68 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto --> | ||
<refentry xml:id="evfork.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>EvFork::__construct</refname> | ||
<refpurpose>Constrói o objeto observador EvFork</refpurpose> | ||
</refnamediv> | ||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<constructorsynopsis> | ||
<modifier>public</modifier> | ||
<methodname>EvFork::__construct</methodname> | ||
<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> | ||
</constructorsynopsis> | ||
<para> | ||
Constrói o objeto observador EvFork e inicia o observador automaticamente. | ||
</para> | ||
</refsect1> | ||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term> | ||
<parameter>callback</parameter> | ||
</term> | ||
<listitem> | ||
<para> | ||
Veja | ||
<link linkend="ev.watcher-callbacks">Retornos de chamada do observador</link> | ||
. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<parameter>data</parameter> | ||
</term> | ||
<listitem> | ||
<para> | ||
Dados personalizados associados ao observador. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<parameter>priority</parameter> | ||
</term> | ||
<listitem> | ||
<para> | ||
<link linkend="ev.constants.watcher-pri">Prioridade do observador</link> | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member> | ||
<methodname>EvLoop::fork</methodname> | ||
</member> | ||
<member> | ||
<classname>EvCheck</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 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 8d666e819852f6b0561b40fcf8689b747568865c Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto --> | ||
<refentry xml:id="evfork.createstopped" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>EvFork::createStopped</refname> | ||
<refpurpose>Cria uma instância parada da classe observadora EvFork</refpurpose> | ||
</refnamediv> | ||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<modifier>final</modifier> | ||
<modifier>public</modifier> | ||
<modifier>static</modifier> | ||
<type>object</type> | ||
<methodname>EvFork::createStopped</methodname> | ||
<methodparam> | ||
<type>string</type> | ||
<parameter>callback</parameter> | ||
</methodparam> | ||
<methodparam choice="opt"> | ||
<type>string</type> | ||
<parameter>data</parameter> | ||
</methodparam> | ||
<methodparam choice="opt"> | ||
<type>string</type> | ||
<parameter>priority</parameter> | ||
</methodparam> | ||
</methodsynopsis> | ||
<para> | ||
O mesmo que | ||
<methodname>EvFork::__construct</methodname>, | ||
mas não inicia o observador automaticamente. | ||
</para> | ||
</refsect1> | ||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term> | ||
<parameter>callback</parameter> | ||
</term> | ||
<listitem> | ||
<para> | ||
Veja | ||
<link linkend="ev.watcher-callbacks">Retornos de chamada do observador</link> | ||
. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<parameter>data</parameter> | ||
</term> | ||
<listitem> | ||
<para> | ||
Dados personalizados associados ao observador. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<parameter>priority</parameter> | ||
</term> | ||
<listitem> | ||
<para> | ||
<link linkend="ev.constants.watcher-pri">Prioridade do observador</link> | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
Retorna o objeto EvFork(parado) em caso de sucesso. | ||
</para> | ||
</refsect1> | ||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member> | ||
<methodname>EvFork::__construct</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 | ||
--> |