cvs: peardoc /pl/core/pear/pear registershutdownfunction.xml
| From: | Adam Golebiowski | Date: | Fri, 08 Apr 2005 22:03:19 +0000 |
| Subject: | cvs: peardoc /pl/core/pear/pear registershutdownfunction.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5900@lists.php.net to get a copy of this message | ||
adamg Fri Apr 8 18:03:19 2005 EDT
Added files:
/peardoc/pl/core/pear/pear registershutdownfunction.xml
Log:
Initial translation
http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/registershutdownfunction.xml?r=1.1&p=1
Index: peardoc/pl/core/pear/pear/registershutdownfunction.xml
+++ peardoc/pl/core/pear/pear/registershutdownfunction.xml
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.2 Maintainer: adamg Status: ready -->
<refentry id="core.pear.pear.registershutdownfunc">
<refnamediv>
<refname>PEAR::registerShutdownFunc()</refname>
<refpurpose>ustala funkcjê zamykaj±c± dla statycznych klas
&pdevrel;</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
require_once 'PEAR.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>void
<function>PEAR::registerShutdownFunc</function></funcdef>
<paramdef>
array <parameter>$func</parameter>
</paramdef>
<paramdef>
array <parameter><optional>$var = array()</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="core.pear.pear.registershutdownfunc.desc">
&title.desc;
<para>
Wskazana funkcja jest wywo³ana zanim interpreter PHP zakoñczy dzia³anie.
</para>
</refsect1>
<refsect1 id="core.pear.pear.registershutdownfunc.parameter">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
<parameter>array $func</parameter> - nazwa klasy i funkcji.
</para>
</listitem>
<listitem>
<para>
<parameter>array $var</parameter> - mo¿liwe wymagane parametry
funkcji. S± one przekazywane do funkcji wg ich kolejno¶ci w tablicy.
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 id="core.pear.pear.registershutdownfunc.example">
&title.example;
<example>
<title>U¿ycie <function>registerShutdownFunc</function></title>
<programlisting role="php">
<![CDATA[
<?php
require_once 'PEAR.php';
class myClass {
function myClass()
{
PEAR::registerShutdownFunc(array('myClass', 'shutdown'),
array('param1', 'param2'));
}
function shutdown( $param1, $param2)
{
// do something before we will die
}
}
?>
]]>
</programlisting>
</example>
</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
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../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
-->