cvs: peardoc /pl/core/pear/pear -pear.xml constants.xml expecterror.xml getstaticproperty.xml iserror.xml loadextension.xml pear.xml popexpect.xml

From: Date: Sun, 27 Mar 2005 00:36:10 +0000
Subject: cvs: peardoc /pl/core/pear/pear -pear.xml constants.xml expecterror.xml getstaticproperty.xml iserror.xml loadextension.xml pear.xml popexpect.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5755@lists.php.net to get a copy of this message
radzaw Sat Mar 26 19:36:10 2005 EDT Added files: /peardoc/pl/core/pear/pear constants.xml getstaticproperty.xml iserror.xml -pear.xml popexpect.xml expecterror.xml loadextension.xml pear.xml Log: initial

http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/constants.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/constants.xml +++ peardoc/pl/core/pear/pear/constants.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.constants"> <refnamediv> <refname>Sta³e</refname> <refpurpose>Predefiniowane sta³e</refpurpose> </refnamediv> <refsect1 id="core.pear.pear.constants.pear-error-callback"> <title><constant>PEAR_ERROR_CALLBACK</constant></title> <simpara> zwi±zane z obs³ug± b³êdów PEAR. </simpara> <para> Zobacz &class.pear-error;, <link linkend="core.pear.pear.seterrorhandling"><function> setErrorHandling</function></link> </para> </refsect1> <refsect1 id="core.pear.pear.constants.pear-error-die"> <title><constant>PEAR_ERROR_DIE</constant></title> <simpara> zwi±zane z obs³ug± b³êdów PEAR. </simpara> <para> Zobacz &class.pear-error;, <link linkend="core.pear.pear.seterrorhandling"><function> setErrorHandling</function></link> </para> </refsect1> <refsect1 id="core.pear.pear.constants.pear-error-print"> <title><constant>PEAR_ERROR_PRINT</constant></title> <simpara> zwi±zane z obs³ug± b³êdów PEAR. </simpara> <para> Zobacz &class.pear-error;, <link linkend="core.pear.pear.seterrorhandling"><function> setErrorHandling</function></link> </para> </refsect1> <refsect1 id="core.pear.pear.constants.pear-error-return"> <title><constant>PEAR_ERROR_RETURN</constant></title> <simpara> zwi±zane z obs³ug± b³êdów PEAR. </simpara> <para> Zobacz &class.pear-error;, <link linkend="core.pear.pear.seterrorhandling"><function> setErrorHandling</function></link> </para> </refsect1> <refsect1 id="core.pear.pear.constants.pear-error-trigger"> <title><constant>PEAR_ERROR_TRIGGER</constant></title> <simpara> zwi±zane z obs³ug± b³êdów PEAR. </simpara> <para> Zobacz &class.pear-error;, <link linkend="core.pear.pear.seterrorhandling"><function> setErrorHandling</function></link> </para> </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/getstaticproperty.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/getstaticproperty.xml +++ peardoc/pl/core/pear/pear/getstaticproperty.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.getstaticproperty"> <refnamediv> <refname>PEAR::getStaticProperty()</refname> <refpurpose>obs³uga statycznych w³a¶ciwo¶ci &pdevrel;</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>&amp;PEAR::getStaticProperty</function></funcdef> <paramdef> string <parameter>$class</parameter> </paramdef> <paramdef> string <parameter>$var</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.getstaticproperty.desc"> &title.desc; <para> Je¿eli masz klasê czê¶ciowo/ca³kowicie statyczn±, i potrzebujesz statycznych w³a¶ciwo¶ci, mo¿esz u¿yæ tej metody aby je zasymulowaæ. Np. w swojej metodzie(-ach) mo¿esz u¿yæ: <programlisting role="php"> <![CDATA[ $myVar = &PEAR::getStaticProperty('myVar'); ]]> </programlisting> <emphasis>Musisz</emphasis> u¿yæ referencji! </para> </refsect1> <refsect1 id="core.pear.pear.getstaticproperty.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $class</parameter> - nazwa klasy w której wywo³ujesz <function>getStaticProperty</function> </para> </listitem> <listitem> <para> <parameter>string $var</parameter> nazwa zmiennej do pobrania. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.pear.getstaticproperty.return"> &title.returns; <para> <parameter>mixed</parameter> - referencja do zmiennej. Je¿eli nie ustawiona, bêdzie automatycznie zainicjalizowana na &null;. </para> </refsect1> <refsect1 id="core.pear.pear.getstaticproperty.example"> &title.example; <example> <title>U¿ycie <function>getStaticProperty</function></title> <programlisting role="php"> <![CDATA[ <?php require_once 'PEAR.php'; class myClass { function setValue( $set) { $foo = &PEAR::getStaticProperty('myClass', "foo"); $foo = $set; } function view() { print PEAR::getStaticProperty('myClass', "foo"); } } myClass::setValue('value = foo'); myClass::view(); ?> ]]> </programlisting> <para> Wynikiem tego bêdzie </para> <programlisting> value = foo </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/iserror.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/iserror.xml +++ peardoc/pl/core/pear/pear/iserror.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.iserror"> <refnamediv> <refname>PEAR::isError()</refname> <refpurpose>sprawdza istnienie obiektu <classname>PEAR_Error</classname></refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>PEAR::isError</function></funcdef> <paramdef> mixed <parameter>$data</parameter> </paramdef> <paramdef> mixed <parameter><optional>$msgcode</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.iserror.desc"> &title.desc; <para> <function>isError</function> sprawdza czy zmienna jest obiektem <classname>PEAR_Error</classname> oraz - opcjonalnie - czy zawiera okre¶lon± wiadomo¶æ lub kod b³êdu. </para> </refsect1> <refsect1 id="core.pear.pear.iserror.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$data</parameter> </term> <listitem> <para> zmienna do sprawdzenia </para> </listitem> </varlistentry> <varlistentry> <term> &type.mixed; <parameter>$msgcode</parameter> </term> <listitem> <para> wiadomo¶æ lub kod b³êdu do sprawdzenia </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear.iserror.return"> &title.returns; <para> <parameter>mixed</parameter> - zwraca &true;, je¿eli zmienna jest obiektem <classname>PEAR_Error</classname> oraz, je¿eli podano, zawiera <parameter>$msgcode</parameter> </para> </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/-pear.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/-pear.xml +++ peardoc/pl/core/pear/pear/-pear.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.-pear"> <refnamediv> <refname>PEAR::_PEAR()</refname> <refpurpose>Dekonstruktor &pdevrel;</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR::_PEAR</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.-pear.desc"> &title.desc; <para> Obecnie nic nie robi. Jest w³±czony w celu kompatybilno¶ci wprzód, aby destruktory podklas mog³y zawsze go wywo³aæ. </para> </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/popexpect.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/popexpect.xml +++ peardoc/pl/core/pear/pear/popexpect.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.popexpect"> <refnamediv> <refname>PEAR::popExpect()</refname> <refpurpose> usuwa ostatni kod b³êdu przy tymczasowej obs³udze b³êdów </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>PEAR::popExpect</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.popexpect.desc"> &title.desc; <para> Metoda ta zdejmuje element ze stosu oczekiwanych kodów b³êdów. </para> </refsect1> <refsect1 id="core.pear.pear.popexpect.return"> &title.returns; <para> <parameter>mixed</parameter> - usuniêty kod b³êdu lub tablica kodów b³êdów </para> </refsect1> <refsect1 id="core.pear.pear.popexpect.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="core.pear.pear.popexpect.see"> &title.see; <para> <link linkend="core.pear.pear.expecterror"> <function>expectError</function> </link> </para> </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/expecterror.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/expecterror.xml +++ peardoc/pl/core/pear/pear/expecterror.xml <!-- $Revision: 1.1 --> <!-- EN-Revision: 1.2 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.expecterror"> <refnamediv> <refname>PEAR::expectError()</refname> <refpurpose> dodaje kod b³edu do tymczasowej obs³ugi b³êdów </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>PEAR::expectError</function></funcdef> <paramdef> mixed <parameter><optional>$errorCode = '*'</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.expecterror.desc"> &title.desc; <para> Metoda ta u¿ywana jest do okre¶lenia których b³êdów siê spodziewasz. Oczekiwane b³êdy s± zawsze zwracane z trybem b³êdu <constant>PEAR_ERROR_RETURN</constant>. Oczekiwane kody b³edu s± przechowywane na stosie, i metoda ta odk³ada na nim nowy element. Lista oczekiwanych b³êdów odnosi efekt dopóki nie zdejmiesz elementów ze stosu przy u¿yciu metody <function>popExpect</function>. </para> </refsect1> <refsect1 id="core.pear.pear.expecterror.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $errorCode</parameter> - oczekiwany kod b³êdu <classname>PEAR_Error</classname> lub tablica kodów b³êdu. Je¿eli ustawione na <parameter>'*'</parameter> to oczekiwany jest jakikolwiek b³±d. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.pear.expecterror.return"> &title.returns; <para> <parameter>integer</parameter> - rozmiar stosu kodów b³êdów. </para> </refsect1> <refsect1 id="core.pear.pear.expecterror.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="core.pear.pear.expecterror.see"> &title.see; <para> <link linkend="core.pear.pear.popexpect"> <function>popExpect</function> </link> </para> </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/loadextension.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/loadextension.xml +++ peardoc/pl/core/pear/pear/loadextension.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.loadextension"> <refnamediv> <refname>PEAR::loadExtension()</refname> <refpurpose>Niezale¿ne od systemu operacyjnego ³adowanie rozszerzeñ PHP</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>PEAR::loadExtension</function></funcdef> <paramdef> string <parameter>$ext</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.loadextension.desc"> &title.desc; <para> £aduje rozszerzenie po nazwie </para> </refsect1> <refsect1 id="core.pear.pear.loadextension.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$ext</parameter> </term> <listitem> <para> <emphasis>Wra¿liwa na wielko¶æ liter</emphasis> nazwa rozszerzenia PHP bez rozszerzenia pliku i przedrostka <filename>php_</filename>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear.loadextension.return"> &title.returns; <para> <parameter>boolean</parameter> - zwraca &true;, je¿eli rozszerzenie mo¿e zostaæ za³adowane </para> </refsect1> <refsect1 id="core.pear.pear.loadextension.note"> &title.note; &note.canstatic; </refsect1> <refsect1 id="core.pear.pear.loadextension.exmaple"> &title.example; <example> <title>Za³adowanie rozszerzenia domxml</title> <programlisting role="php"> <![CDATA[ if(!PEAR::loadExtension("domxml")) { echo 'Nie mo¿na za³adowaæ rozszerzenia DomXML!'; exit(); } ]]> </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 --> http://cvs.php.net/co.php/peardoc/pl/core/pear/pear/pear.xml?r=1.1&p=1 Index: peardoc/pl/core/pear/pear/pear.xml +++ peardoc/pl/core/pear/pear/pear.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: radzaw Status: ready --> <refentry id="core.pear.pear.pear"> <refnamediv> <refname>PEAR::PEAR()</refname> <refpurpose>konstruktor &pdevrel;</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR::PEAR</function></funcdef> <paramdef> string <parameter> <optional>$errorClass = PEAR_Error</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear.pear.desc"> &title.desc; <para> Je¿eli chcesz u¿yæ funkcjonalno¶ci dekonstruktora udostêpnionego przez PEAR, musisz wywo³aæ <function>$this->PEAR</function> w konstruktorze <emphasis>swojej</emphasis> klasy. </para> </refsect1> <refsect1 id="core.pear.pear.pear.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $errorClass</parameter> - nazwa u¿ywanej klasy b³êdu. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="core.pear.pear.pear.note"> &title.note; &note.canstatic; </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 -->
« previous php.pear.doc (#5755) next »