cvs: peardoc /fr/core/pear/pear-errorstack pear-errorstack.xml popcallback.xml push.xml pushcallback.xml raiseerror.xml setcontextcallback.xml
setdefaultcallback.xml setdefaultlogger.xml seterrormessagetemplate.xml setlogger.xml setmessagecallback.xml singleton.xml staticgeterrors.xml
statichaserrors.xml staticpopcallback.xml staticpush.xml staticpushcallback.xml
| From: | Yannick Torres | Date: | Sun, 19 Feb 2006 15:32:25 +0000 |
| Subject: | cvs: peardoc /fr/core/pear/pear-errorstack pear-errorstack.xml popcallback.xml push.xml pushcallback.xml raiseerror.xml setcontextcallback.xml setdefaultcallback.xml setdefaultlogger.xml seterrormessagetemplate.xml setlogger.xml setmessagecallback.xml singleton.xml staticgeterrors.xml statichaserrors.xml staticpopcallback.xml staticpush.xml staticpushcallback.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7580@lists.php.net to get a copy of this message | ||
yannick Sun Feb 19 15:32:25 2006 UTC
Added files:
/peardoc/fr/core/pear/pear-errorstack pear-errorstack.xml
popcallback.xml
pushcallback.xml push.xml
raiseerror.xml
setcontextcallback.xml
setdefaultcallback.xml
setdefaultlogger.xml
seterrormessagetemplate.xml
setlogger.xml
setmessagecallback.xml
singleton.xml
staticgeterrors.xml
statichaserrors.xml
staticpopcallback.xml
staticpushcallback.xml
staticpush.xml
Log:
initiale translation
http://cvs.php.net/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/pear-errorstack.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/pear-errorstack.xml +++ peardoc/fr/core/pear/pear-errorstack/pear-errorstack.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.pear-errorstack"> <refnamediv> <refname>constructeur de <function>PEAR_ErrorStack::PEAR_ErrorStack</function></refname> <refpurpose>Définit une nouvelle instance de la pile d'erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_ErrorStack::PEAR_ErrorStack</function></funcdef> <paramdef>string <parameter>$package</parameter></paramdef> <paramdef>callback <parameter> <optional>$msgCallback = &false;</optional></parameter></paramdef> <paramdef>callback <parameter> <optional>$contextCallback = &false;</optional></parameter></paramdef> <paramdef>boolean <parameter> <optional>$throwPEAR_Error = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.bcwarning"> <title>Alerte sur la compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, PEAR_ErrorStack n'instancie et ne retourne plus d'exception en PHP5 et le dernier paramètre a été supprimé. Le code qui utilisait ce comportement ne fonctionnera plus. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.desc"> &title.desc; <para> Crée un nouveau PEAR_ErrorStack privé. Pour accéder à une pile universelle, utilisez la fonction <link linkend="core.pear.pear-errorstack.singleton"><function>PEAR_ErrorStack::singleton</function></link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet que cette pile d'erreur représente </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$msgCallback</parameter> </term> <listitem> <para> Callback utilisé pour la génération du message d'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$contextCallback</parameter> </term> <listitem> <para> Callback utilisé pour la génération du contexte, par défaut, c'est la fonction <link linkend="core.pear.pear-errorstack.getfileline"><function>getFileLine</function></link>. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$throwPEAR_Error</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$exceptionClass</parameter> </term> <listitem> <para> classe de l'exception à instancier en PHP5 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.throws"> &title.throws; <para> Aucune exception n'est lançée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/popcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/popcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/popcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.popcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::popCallback</function></refname> <refpurpose>Efface un callback de la pile de callback d'erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef><replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::popCallback</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.popcallback.desc"> &title.desc; <para> Efface un callback de la pile de callback d'erreur </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.popcallback.throws"> &title.throws; <para> Aucune exception n'est lançée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.popcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.pushcallback"><function>PEAR_ErrorStack::pushCallback</function></link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.popcallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/pushcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/pushcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/pushcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.pushcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::pushCallback</function></refname> <refpurpose>Définit une erreur de callback. Si c'est un callback valide, il sera appelé à chaque ajout d'erreur sur la pile. La valeur retournée sera utilisée pour détermine si l'on doit autoriser l'ajout de l'erreur à la pile ou si l'on doit la loguer.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_ErrorStack::pushCallback</function></funcdef> <paramdef>string|array <parameter>$cb</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.pushcallback.desc"> &title.desc; <para> La valeur retournée doit être une des constantes PEAR_ERRORSTACK_*. </para> <para> Cette fonctionnalité peut être utilisée pour simuler un pushErrorHandling PEAR, et le mode PEAR_ERROR_CALLBACK mode, sans affecter l'intégrité de la pile d'erreur ou de log. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>string|array</type> <parameter>$cb</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.throws"> &title.throws; <para> Aucune exception n'est lançée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.popcallback"><function>PEAR_ErrorStack::popCallback</function></link>. </para> <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSHANDLOG</constant></link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSH</constant></link> et <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/push.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/push.xml +++ peardoc/fr/core/pear/pear-errorstack/push.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.push"> <refnamediv> <refname><function>PEAR_ErrorStack::push</function></refname> <refpurpose>Ajoute une erreur à la pile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Error|array <function>PEAR_ErrorStack::push</function></funcdef> <paramdef> &type.int; <parameter>$code</parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$level = 'error'</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$params = array()</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$msg = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$repackage = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$backtrace = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.push.bcwarning"> <title>Alerte de compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, PEAR_ErrorStack n'instancie et ne retourne plus une exception en PHP5. Le code s'appuyant sur ce comportement ne fonctionnera plus. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.desc"> &title.desc; <para> Si le générateur de message existe, il sera appelé avec 2 paramètres. <itemizedlist> <listitem> <para>l'objet représentant la pile d'erreurs courante</para> </listitem> <listitem> <para> un tableau qui est du même format qu'une erreur. Les indices disponibles sont 'code', 'package', 'time', 'params', 'level', and 'context' </para> </listitem> </itemizedlist> Ensuite, si l'erreur doit contenir les informations de contexte, ce sera géré par la méthode de contexte. Finallement, l'erreur sera ajoutée sur le pile d'erreurs correspondante. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$code</parameter> </term> <listitem> <para> Code erreur spécifique au paquet </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Niveau d'erreur. Il ne sera pas traduit. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> tableau associatif pour les paramètres de l'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$msg</parameter> </term> <listitem> <para> Message d'erreur ou seulement une portion si le message est en cours de génération. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$repackage</parameter> </term> <listitem> <para> Si cette erreur rempaquète une erreur envoyée par un autre paquet, placez le tableau retourné par la fonction <link linkend="core.pear.pear-errorstack.pop"><function>pop</function></link> dans ce paramètre. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$backtrace</parameter> </term> <listitem> <para> Paramètre protégé : utilisez ce paramètre pour passer la fonction <ulink url="&url.php.lookup;debug_backtrace">&url.php.lookup;debug_backtrace</ulink> qui devra être utilisé pour retrouver le contexte de l'erreur. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.returns"> &title.returns; <para> <emphasis>lançe</emphasis>, si le mode de compatibilité est actif, une PEAR_Error. Si l'exception existe, alors 1 sera retourné permettant le code suivant : <programlisting role="php-highlighted"> <![CDATA[ <?php 1 throw ($stack-><link linkend="core.pear.pear-errorstack.push">push</link>(MY_ERROR_CODE, 'error', array('username' => 'grob'))); ?> ]]> </programlisting> </para> <para> La propriété errorData de la classe de l'exception sera définit par le tableau qui devrait être retourné. Si un <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> est retourné, la propriété userinfo est définie par ce tableau. </para> <para>Cependant, un tableau est retourné dans ce format : <programlisting role="php-highlighted"> <![CDATA[ <?php array( 'code' => $code, 'params' => $params, 'package' => $this->_package, 'level' => $level, 'time' => <ulink url="&url.php.lookup;time">time</ulink>(), 'context' => $context, 'message' => $msg, //['repackage' => $err] tableau de l'erreur rempaquetée ); ?> ]]> </programlisting> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.push.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/raiseerror.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/raiseerror.xml +++ peardoc/fr/core/pear/pear-errorstack/raiseerror.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.raiseerror"> <refnamediv> <refname><function>PEAR_ErrorStack::raiseError</function></refname> <refpurpose>Émule un <function>PEAR::raiseError</function></refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> PEAR_Error <function>PEAR_ErrorStack::raiseError</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.raiseerror.desc"> &title.desc; <para> Voir <link linkend="core.pear.pear.raiseerror"> <function>PEAR::raiseError</function> </link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.raiseerror.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.raiseerror.note"> &title.note; ¬e.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 --> http://cvs.php.net/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setcontextcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setcontextcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/setcontextcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setcontextcallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::setContextCallback</function> </refname> <refpurpose> Définit un callback qui génère les informations de contexte (localisation de l'erreur) pour une pile d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setContextCallback</function> </funcdef> <paramdef> &type.array;|&type.string;|null <parameter>$contextCallback</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.desc"> &title.desc; <para> Cette méthode définit le callback qui sera utilisé pour générer les informations de contexte pour une erreur. Passer &null; désactivera la génération du contexte et effacera l'appel expensif à la fonction <ulink url="&url.php.lookup;debug_backtrace"> <function>debug_backtrace</function></ulink>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$contextCallback</parameter> </term> <listitem> <para> Un callback valide comme définit par <ulink url="&url.php.lookup;is_callable"> <function>is_callable</function> </ulink>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setdefaultcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setdefaultcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/setdefaultcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setdefaultcallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::setDefaultCallback</function> </refname> <refpurpose> Définit un callback par défaut à utiliser par toutes les piles d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setDefaultCallback</function> </funcdef> <paramdef> &type.array;|&type.string; <parameter><optional>$callback = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.desc"> &title.desc; <para> Cette méthode définit le callback qui va être utilisé pour générer un message d'erreur. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array;|&type.string; <parameter>$callback</parameter> </term> <listitem> <para> Fonction/méthode de callback </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setdefaultlogger.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setdefaultlogger.xml +++ peardoc/fr/core/pear/pear-errorstack/setdefaultlogger.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setdefaultlogger"> <refnamediv> <refname> <function>PEAR_ErrorStack::setDefaultLogger</function> </refname> <refpurpose> Définit un objet PEAR::Log pour toutes les piles d'erreur qui n'en ont pas </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setDefaultLogger</function> </funcdef> <paramdef> Log <parameter>&$log</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.desc"> &title.desc; <para> Définit un objet PEAR::Log pour toutes les piles d'erreur qui n'en ont pas. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>Log</type> <parameter>&$log</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/seterrormessagetemplate.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/seterrormessagetemplate.xml +++ peardoc/fr/core/pear/pear-errorstack/seterrormessagetemplate.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.seterrormessagetemplate"> <refnamediv> <refname> <function>PEAR_ErrorStack::setErrorMessageTemplate</function> </refname> <refpurpose>Définit le tableau de template pour le message d'erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.string; <function>PEAR_ErrorStack::setErrorMessageTemplate</function> </funcdef> <paramdef> &type.mixed; <parameter>$template</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.desc"> &title.desc; <para> Le tableau doit être formatté comme ceci : <![CDATA[ array(error code => 'message template',...)]]> </para> <para> Les paramètres du message d'erreur passés dans la fonction <link linkend="core.pear.pear-errorstack.push"> <function>push</function> </link> seront utilisés en tant qu'entrées pour le message d'erreur. Si le template est 'message %foo% was %bar%', et les paramètres sont array('foo' => 'one', 'bar' => 'six'), le message retourné sera 'message one was six' </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$template</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setlogger.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setlogger.xml +++ peardoc/fr/core/pear/pear-errorstack/setlogger.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setlogger"> <refnamediv> <refname> <function>PEAR_ErrorStack::setLogger</function> </refname> <refpurpose> Définit un objet PEAR::Log object pour cette pile d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setLogger</function> </funcdef> <paramdef> Log <parameter>&$log</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setlogger.desc"> &title.desc; <para> Définit un objet PEAR::Log à utiliser pour une instance spécifique d'une pile d'erreur. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>Log</type> <parameter>&$log</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setmessagecallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setmessagecallback.xml +++ peardoc/fr/core/pear/pear-errorstack/setmessagecallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setmessagecallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::setMessageCallback</function> </refname> <refpurpose> Définit un code erreur => message d'erreur de callback </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setMessageCallback</function> </funcdef> <paramdef> &type.mixed; <parameter>$msgCallback</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.desc"> &title.desc; <para> Cette méthode définit le callback qui sera utilisé pour générer les messages d'erreur pour toutes les instances de PEAR_ErrorStack. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$msgCallback</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/singleton.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/singleton.xml +++ peardoc/fr/core/pear/pear-errorstack/singleton.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.singleton"> <refnamediv> <refname><function>PEAR_ErrorStack::singleton</function></refname> <refpurpose>Retourne la pile d'erreur pour ce paquet</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> <replaceable> <link linkend="core.pear.pear-errorstack"> <classname>PEAR_ErrorStack</classname> </link> </replaceable>& <function>PEAR_ErrorStack::singleton</function> </funcdef> <paramdef> &type.string; <parameter>$package</parameter> </paramdef> <paramdef> &type.callback; <parameter> <optional>$msgCallback = &false;</optional></parameter> </paramdef> <paramdef> &type.callback; <parameter> <optional>$contextCallback = &false;</optional></parameter> </paramdef> <paramdef> &type.bool; <parameter> <optional>$throwPEAR_Error = &false;</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$stackClass = 'PEAR_ErrorStack'</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.singleton.bcwarning"> <title>Alerte sur la compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, PEAR_ErrorStack n'instancie et ne retourne plus une exception en PHP5 et le second jusqu'au dernier paramètre ont été supprimés. Le code utilisant l'ancien comportement ne fonctionnera plus. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.desc"> &title.desc; <para> Notez que tous les paramètres sont ignorés si la pile pour le paquet $package a déjà été instanciée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet que cette pile représente </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$msgCallback</parameter> </term> <listitem> <para> callback utilisé pour la génération du message d'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$contextCallback</parameter> </term> <listitem> <para> callback utilisé pour la génération du contexte, par défaut, <link linkend="core.pear.pear-errorstack.getfileline"><function>getFileLine</function></link> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$throwPEAR_Error</parameter> </term> <listitem> <para> Si &true;, alors <link linkend="core.pear.pear.raiseerror"> <function>PEAR::raiseError</function> </link> sera appelé et un objet <link linkend="core.pear.pear-error"> <classname>PEAR_Error</classname> </link> sera retourné lors des appels à <link linkend="core.pear.pear-errorstack.push"> <function>PEAR_ErrorStack::push</function>. </link> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$stackClass</parameter> </term> <listitem> <para> classe pour l'instanciation </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticgeterrors.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticgeterrors.xml +++ peardoc/fr/core/pear/pear-errorstack/staticgeterrors.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticgeterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticGetErrors</function></refname> <refpurpose> Récupère la liste de toutes les erreurs depuis la dernière purge, organisé par paquet </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>&type.array; <function>PEAR_ErrorStack::staticGetErrors</function> </funcdef> <paramdef> &type.bool; <parameter> <optional>$purge = &false;</optional></parameter> </paramdef> <paramdef> &type.string;|false <parameter> <optional>$level = &false;</optional></parameter> </paramdef> <paramdef> &type.bool; <parameter> <optional>$merge = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional> $sortfunc = array('PEAR_ErrorStack', '_sortErrors') </optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.bcwarning"> <title>Alerte concernant la compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, le second paramètre, <varname>$level</varname>, est nouveau. Tous vos codes qui font référence à $merge en tant que second paramètre seront incompatibles. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.desc"> &title.desc; <para> Version statique de <link linkend="core.pear.pear-errorstack.geterrors"> <function>PEAR_ErrorStack::getErrors</function> </link>, retourne toutes les erreurs pour toutes les piles. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$purge</parameter> </term> <listitem> <para> Définit pour purge la pile des erreurs existantes </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Nom du niveau à vérifier pour une sévérité particulière. Utilisez ce paramètre pour déterminer si une classe particulière d'erreurs est survenue, par exemple, pour savoir si des alertes ont été émises (les erreurs seront ignorées). </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$merge</parameter> </term> <listitem> <para> Définir pour retourner un tableau à plat, et non organisé par paquet </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$sortfunc</parameter> </term> <listitem> <para> Fonction à utiliser pour trier le tableau résultant - par défaut, le tri est effectué sur la date et doit être suffisant dans la plupart des cas </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/statichaserrors.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/statichaserrors.xml +++ peardoc/fr/core/pear/pear-errorstack/statichaserrors.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.statichaserrors"> <refnamediv> <refname> <function>PEAR_ErrorStack::staticHasErrors</function> </refname> <refpurpose> Détermine s'il y a des erreurs sur une des piles d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.bool; <function>PEAR_ErrorStack::staticHasErrors</function> </funcdef> <paramdef> &type.string;|false <parameter> <optional>$package = false</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$level = false</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.statichaserrors.desc"> &title.desc; <para> Version statique de <link linkend="core.pear.pear-errorstack.haserrors"> <function>PEAR_ErrorStack::hasErrors</function></link>. Retourne &true; si une des piles des squelettes a des erreurs en attente. Depuis PEAR 1.3.2, si <varname>$package</varname> est spécifié, la fonction appelera PEAR_ErrorStack::hasErrors pour la pile d'erreur de ce paquet. Si le niveau est spécifié, hasErrors ignorera toutes les erreurs non conformes avec le niveau spécifié. Utilisez cette fonction pour simuler error_reporting(E_NOTICE), par exemple. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet pour y retrouver l'information ou &false; pour récupérer les informations des erreurs pour toutes les piles. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Nom du niveau à utiliser pour une sévérité particulière. Utilisez ce paramètre pour déterminer si une classe d'erreurs particulières est survenue, par exemple, pour savoir si des alertes ont été émises. (les erreurs seront ignorées) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticpopcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticpopcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/staticpopcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticpopcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::staticPopCallback</function></refname> <refpurpose>Efface un callback pour toutes les callbacks d'error de la pile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> <replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::staticPopCallback</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.desc"> &title.desc; <para> Efface un callback de toutes les erreurs de la pile. Aucune vérification n'est effectuée pour déterminer si c'est une bonne idée, utilisez donc cette fonction avec prudence. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.staticpushcallback"> <function>PEAR_ErrorStack::staticPushCallback</function>. </link> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticpushcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticpushcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/staticpushcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticpushcallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::staticPushCallback</function> </refname> <refpurpose> Difinit une fonction de rappel pour chaque erreur de la pile </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::staticPushCallback</function> </funcdef> <paramdef> &type.string;|&type.array; <parameter>$cb</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.desc"> &title.desc; <para> Définit une erreur de callback pour chaque squelette d'erreur de la pile. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string;|&type.array; <parameter>$cb</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.staticpopcallback"> <function>PEAR_ErrorStack::staticPopCallback</function> </link> et <link linkend="core.pear.pear-errorstack.pushcallback"> <function>PEAR_ErrorStack::pushCallback</function>. </link> </para> <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"> <constant>PEAR_ERRORSTACK_PUSHANDLOG</constant> </link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"> <constant>PEAR_ERRORSTACK_PUSH</constant> </link> et <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"> <constant>PEAR_ERRORSTACK_LOG</constant> </link> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticpush.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticpush.xml +++ peardoc/fr/core/pear/pear-errorstack/staticpush.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticpush"> <refnamediv> <refname> <function>PEAR_ErrorStack::staticPush</function> </refname> <refpurpose> Version statique de <link linkend="core.pear.pear-errorstack.push"> <function>push</function> </link> </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> <replaceable>PEAR_Error|null|Exception</replaceable> <function>PEAR_ErrorStack::staticPush</function> </funcdef> <paramdef> &type.string; <parameter>$package</parameter> </paramdef> <paramdef> &type.int; <parameter>$code</parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$level = 'error'</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$params = array()</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$msg = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$repackage = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$backtrace = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticpush.desc"> &title.desc; <para></para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpush.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet auquel l'erreur appartient </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$code</parameter> </term> <listitem> <para> Code erreur spécifique au paquet </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Niveau de l'erreur. Il ne sera pas traduit. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> tableau associatif contenant les paramètres de l'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$msg</parameter> </term> <listitem> <para> Message d'erreur ou une portion de celui-ci si le message est en train d'être généré </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$repackage</parameter> </term> <listitem> <para> Si cette erreur rempaquète une erreur envoyée par un autre paquet, on place le tableau retourné par la fonction <link linkend="core.pear.pear-errorstack.pop"> <function>pop</function> </link> dans ce paramètre </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$backtrace</parameter> </term> <listitem> <para> Paramètres protégés : utilisez le pour passer dans la fonction <ulink url="&url.php.lookup;debug_backtrace">debug_backtrace</ulink> qui devra être utilisé pour retrouver le contexte de l'erreur </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.returns"> &title.returns; <para> <emphasis>lance</emphasis>, si le mode de compatibilité est actif, une PEAR_Error. Si l'exception de la classe existe, 1 est retourné pour permettre un code comme : <programlisting role="php-highlighted"> <![CDATA[ <?php 1 throw ($stack-><link linkend="core.pear.pear-errorstack.push">push</link>(MY_ERROR_CODE, 'error', array('username' => 'grob'))); ?> ]]> </programlisting> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpush.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpush.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/pear-errorstack.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/pear-errorstack.xml +++ peardoc/fr/core/pear/pear-errorstack/pear-errorstack.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.pear-errorstack"> <refnamediv> <refname>constructeur de <function>PEAR_ErrorStack::PEAR_ErrorStack</function></refname> <refpurpose>Définit une nouvelle instance de la pile d'erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_ErrorStack::PEAR_ErrorStack</function></funcdef> <paramdef>string <parameter>$package</parameter></paramdef> <paramdef>callback <parameter> <optional>$msgCallback = &false;</optional></parameter></paramdef> <paramdef>callback <parameter> <optional>$contextCallback = &false;</optional></parameter></paramdef> <paramdef>boolean <parameter> <optional>$throwPEAR_Error = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.bcwarning"> <title>Alerte sur la compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, PEAR_ErrorStack n'instancie et ne retourne plus d'exception en PHP5 et le dernier paramètre a été supprimé. Le code qui utilisait ce comportement ne fonctionnera plus. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.desc"> &title.desc; <para> Crée un nouveau PEAR_ErrorStack privé. Pour accéder à une pile universelle, utilisez la fonction <link linkend="core.pear.pear-errorstack.singleton"><function>PEAR_ErrorStack::singleton</function></link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet que cette pile d'erreur représente </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$msgCallback</parameter> </term> <listitem> <para> Callback utilisé pour la génération du message d'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$contextCallback</parameter> </term> <listitem> <para> Callback utilisé pour la génération du contexte, par défaut, c'est la fonction <link linkend="core.pear.pear-errorstack.getfileline"><function>getFileLine</function></link>. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$throwPEAR_Error</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$exceptionClass</parameter> </term> <listitem> <para> classe de l'exception à instancier en PHP5 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.throws"> &title.throws; <para> Aucune exception n'est lançée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/popcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/popcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/popcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.popcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::popCallback</function></refname> <refpurpose>Efface un callback de la pile de callback d'erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef><replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::popCallback</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.popcallback.desc"> &title.desc; <para> Efface un callback de la pile de callback d'erreur </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.popcallback.throws"> &title.throws; <para> Aucune exception n'est lançée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.popcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.pushcallback"><function>PEAR_ErrorStack::pushCallback</function></link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.popcallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/pushcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/pushcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/pushcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.pushcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::pushCallback</function></refname> <refpurpose>Définit une erreur de callback. Si c'est un callback valide, il sera appelé à chaque ajout d'erreur sur la pile. La valeur retournée sera utilisée pour détermine si l'on doit autoriser l'ajout de l'erreur à la pile ou si l'on doit la loguer.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_ErrorStack::pushCallback</function></funcdef> <paramdef>string|array <parameter>$cb</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.pushcallback.desc"> &title.desc; <para> La valeur retournée doit être une des constantes PEAR_ERRORSTACK_*. </para> <para> Cette fonctionnalité peut être utilisée pour simuler un pushErrorHandling PEAR, et le mode PEAR_ERROR_CALLBACK mode, sans affecter l'intégrité de la pile d'erreur ou de log. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>string|array</type> <parameter>$cb</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.throws"> &title.throws; <para> Aucune exception n'est lançée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.popcallback"><function>PEAR_ErrorStack::popCallback</function></link>. </para> <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSHANDLOG</constant></link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSH</constant></link> et <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/push.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/push.xml +++ peardoc/fr/core/pear/pear-errorstack/push.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.push"> <refnamediv> <refname><function>PEAR_ErrorStack::push</function></refname> <refpurpose>Ajoute une erreur à la pile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Error|array <function>PEAR_ErrorStack::push</function></funcdef> <paramdef> &type.int; <parameter>$code</parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$level = 'error'</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$params = array()</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$msg = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$repackage = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$backtrace = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.push.bcwarning"> <title>Alerte de compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, PEAR_ErrorStack n'instancie et ne retourne plus une exception en PHP5. Le code s'appuyant sur ce comportement ne fonctionnera plus. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.desc"> &title.desc; <para> Si le générateur de message existe, il sera appelé avec 2 paramètres. <itemizedlist> <listitem> <para>l'objet représentant la pile d'erreurs courante</para> </listitem> <listitem> <para> un tableau qui est du même format qu'une erreur. Les indices disponibles sont 'code', 'package', 'time', 'params', 'level', and 'context' </para> </listitem> </itemizedlist> Ensuite, si l'erreur doit contenir les informations de contexte, ce sera géré par la méthode de contexte. Finallement, l'erreur sera ajoutée sur le pile d'erreurs correspondante. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$code</parameter> </term> <listitem> <para> Code erreur spécifique au paquet </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Niveau d'erreur. Il ne sera pas traduit. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> tableau associatif pour les paramètres de l'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$msg</parameter> </term> <listitem> <para> Message d'erreur ou seulement une portion si le message est en cours de génération. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$repackage</parameter> </term> <listitem> <para> Si cette erreur rempaquète une erreur envoyée par un autre paquet, placez le tableau retourné par la fonction <link linkend="core.pear.pear-errorstack.pop"><function>pop</function></link> dans ce paramètre. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$backtrace</parameter> </term> <listitem> <para> Paramètre protégé : utilisez ce paramètre pour passer la fonction <ulink url="&url.php.lookup;debug_backtrace">&url.php.lookup;debug_backtrace</ulink> qui devra être utilisé pour retrouver le contexte de l'erreur. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.returns"> &title.returns; <para> <emphasis>lançe</emphasis>, si le mode de compatibilité est actif, une PEAR_Error. Si l'exception existe, alors 1 sera retourné permettant le code suivant : <programlisting role="php-highlighted"> <![CDATA[ <?php 1 throw ($stack-><link linkend="core.pear.pear-errorstack.push">push</link>(MY_ERROR_CODE, 'error', array('username' => 'grob'))); ?> ]]> </programlisting> </para> <para> La propriété errorData de la classe de l'exception sera définit par le tableau qui devrait être retourné. Si un <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> est retourné, la propriété userinfo est définie par ce tableau. </para> <para>Cependant, un tableau est retourné dans ce format : <programlisting role="php-highlighted"> <![CDATA[ <?php array( 'code' => $code, 'params' => $params, 'package' => $this->_package, 'level' => $level, 'time' => <ulink url="&url.php.lookup;time">time</ulink>(), 'context' => $context, 'message' => $msg, //['repackage' => $err] tableau de l'erreur rempaquetée ); ?> ]]> </programlisting> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.push.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.push.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/raiseerror.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/raiseerror.xml +++ peardoc/fr/core/pear/pear-errorstack/raiseerror.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.raiseerror"> <refnamediv> <refname><function>PEAR_ErrorStack::raiseError</function></refname> <refpurpose>Émule un <function>PEAR::raiseError</function></refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> PEAR_Error <function>PEAR_ErrorStack::raiseError</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.raiseerror.desc"> &title.desc; <para> Voir <link linkend="core.pear.pear.raiseerror"> <function>PEAR::raiseError</function> </link>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.raiseerror.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.raiseerror.note"> &title.note; ¬e.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 --> http://cvs.php.net/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setcontextcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setcontextcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/setcontextcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setcontextcallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::setContextCallback</function> </refname> <refpurpose> Définit un callback qui génère les informations de contexte (localisation de l'erreur) pour une pile d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setContextCallback</function> </funcdef> <paramdef> &type.array;|&type.string;|null <parameter>$contextCallback</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.desc"> &title.desc; <para> Cette méthode définit le callback qui sera utilisé pour générer les informations de contexte pour une erreur. Passer &null; désactivera la génération du contexte et effacera l'appel expensif à la fonction <ulink url="&url.php.lookup;debug_backtrace"> <function>debug_backtrace</function></ulink>. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$contextCallback</parameter> </term> <listitem> <para> Un callback valide comme définit par <ulink url="&url.php.lookup;is_callable"> <function>is_callable</function> </ulink>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setdefaultcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setdefaultcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/setdefaultcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setdefaultcallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::setDefaultCallback</function> </refname> <refpurpose> Définit un callback par défaut à utiliser par toutes les piles d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setDefaultCallback</function> </funcdef> <paramdef> &type.array;|&type.string; <parameter><optional>$callback = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.desc"> &title.desc; <para> Cette méthode définit le callback qui va être utilisé pour générer un message d'erreur. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array;|&type.string; <parameter>$callback</parameter> </term> <listitem> <para> Fonction/méthode de callback </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultcallback.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setdefaultlogger.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setdefaultlogger.xml +++ peardoc/fr/core/pear/pear-errorstack/setdefaultlogger.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setdefaultlogger"> <refnamediv> <refname> <function>PEAR_ErrorStack::setDefaultLogger</function> </refname> <refpurpose> Définit un objet PEAR::Log pour toutes les piles d'erreur qui n'en ont pas </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setDefaultLogger</function> </funcdef> <paramdef> Log <parameter>&$log</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.desc"> &title.desc; <para> Définit un objet PEAR::Log pour toutes les piles d'erreur qui n'en ont pas. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>Log</type> <parameter>&$log</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setdefaultlogger.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/seterrormessagetemplate.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/seterrormessagetemplate.xml +++ peardoc/fr/core/pear/pear-errorstack/seterrormessagetemplate.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.seterrormessagetemplate"> <refnamediv> <refname> <function>PEAR_ErrorStack::setErrorMessageTemplate</function> </refname> <refpurpose>Définit le tableau de template pour le message d'erreur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.string; <function>PEAR_ErrorStack::setErrorMessageTemplate</function> </funcdef> <paramdef> &type.mixed; <parameter>$template</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.desc"> &title.desc; <para> Le tableau doit être formatté comme ceci : <![CDATA[ array(error code => 'message template',...)]]> </para> <para> Les paramètres du message d'erreur passés dans la fonction <link linkend="core.pear.pear-errorstack.push"> <function>push</function> </link> seront utilisés en tant qu'entrées pour le message d'erreur. Si le template est 'message %foo% was %bar%', et les paramètres sont array('foo' => 'one', 'bar' => 'six'), le message retourné sera 'message one was six' </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$template</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.seterrormessagetemplate.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setlogger.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setlogger.xml +++ peardoc/fr/core/pear/pear-errorstack/setlogger.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setlogger"> <refnamediv> <refname> <function>PEAR_ErrorStack::setLogger</function> </refname> <refpurpose> Définit un objet PEAR::Log object pour cette pile d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setLogger</function> </funcdef> <paramdef> Log <parameter>&$log</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setlogger.desc"> &title.desc; <para> Définit un objet PEAR::Log à utiliser pour une instance spécifique d'une pile d'erreur. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.param"> &title.param; <para> <variablelist> <varlistentry> <term> <type>Log</type> <parameter>&$log</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/setmessagecallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/setmessagecallback.xml +++ peardoc/fr/core/pear/pear-errorstack/setmessagecallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.setmessagecallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::setMessageCallback</function> </refname> <refpurpose> Définit un code erreur => message d'erreur de callback </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::setMessageCallback</function> </funcdef> <paramdef> &type.mixed; <parameter>$msgCallback</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.desc"> &title.desc; <para> Cette méthode définit le callback qui sera utilisé pour générer les messages d'erreur pour toutes les instances de PEAR_ErrorStack. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$msgCallback</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.setmessagecallback.note"> &title.note; ¬e.notstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/singleton.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/singleton.xml +++ peardoc/fr/core/pear/pear-errorstack/singleton.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.singleton"> <refnamediv> <refname><function>PEAR_ErrorStack::singleton</function></refname> <refpurpose>Retourne la pile d'erreur pour ce paquet</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> <replaceable> <link linkend="core.pear.pear-errorstack"> <classname>PEAR_ErrorStack</classname> </link> </replaceable>& <function>PEAR_ErrorStack::singleton</function> </funcdef> <paramdef> &type.string; <parameter>$package</parameter> </paramdef> <paramdef> &type.callback; <parameter> <optional>$msgCallback = &false;</optional></parameter> </paramdef> <paramdef> &type.callback; <parameter> <optional>$contextCallback = &false;</optional></parameter> </paramdef> <paramdef> &type.bool; <parameter> <optional>$throwPEAR_Error = &false;</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$stackClass = 'PEAR_ErrorStack'</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.singleton.bcwarning"> <title>Alerte sur la compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, PEAR_ErrorStack n'instancie et ne retourne plus une exception en PHP5 et le second jusqu'au dernier paramètre ont été supprimés. Le code utilisant l'ancien comportement ne fonctionnera plus. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.desc"> &title.desc; <para> Notez que tous les paramètres sont ignorés si la pile pour le paquet $package a déjà été instanciée. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet que cette pile représente </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$msgCallback</parameter> </term> <listitem> <para> callback utilisé pour la génération du message d'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> <type>callback</type> <parameter>$contextCallback</parameter> </term> <listitem> <para> callback utilisé pour la génération du contexte, par défaut, <link linkend="core.pear.pear-errorstack.getfileline"><function>getFileLine</function></link> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$throwPEAR_Error</parameter> </term> <listitem> <para> Si &true;, alors <link linkend="core.pear.pear.raiseerror"> <function>PEAR::raiseError</function> </link> sera appelé et un objet <link linkend="core.pear.pear-error"> <classname>PEAR_Error</classname> </link> sera retourné lors des appels à <link linkend="core.pear.pear-errorstack.push"> <function>PEAR_ErrorStack::push</function>. </link> </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$stackClass</parameter> </term> <listitem> <para> classe pour l'instanciation </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticgeterrors.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticgeterrors.xml +++ peardoc/fr/core/pear/pear-errorstack/staticgeterrors.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticgeterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticGetErrors</function></refname> <refpurpose> Récupère la liste de toutes les erreurs depuis la dernière purge, organisé par paquet </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef>&type.array; <function>PEAR_ErrorStack::staticGetErrors</function> </funcdef> <paramdef> &type.bool; <parameter> <optional>$purge = &false;</optional></parameter> </paramdef> <paramdef> &type.string;|false <parameter> <optional>$level = &false;</optional></parameter> </paramdef> <paramdef> &type.bool; <parameter> <optional>$merge = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional> $sortfunc = array('PEAR_ErrorStack', '_sortErrors') </optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.bcwarning"> <title>Alerte concernant la compatibilité descendante</title> <warning> <para> Depuis PEAR 1.3.2, le second paramètre, <varname>$level</varname>, est nouveau. Tous vos codes qui font référence à $merge en tant que second paramètre seront incompatibles. </para> </warning> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.desc"> &title.desc; <para> Version statique de <link linkend="core.pear.pear-errorstack.geterrors"> <function>PEAR_ErrorStack::getErrors</function> </link>, retourne toutes les erreurs pour toutes les piles. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$purge</parameter> </term> <listitem> <para> Définit pour purge la pile des erreurs existantes </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Nom du niveau à vérifier pour une sévérité particulière. Utilisez ce paramètre pour déterminer si une classe particulière d'erreurs est survenue, par exemple, pour savoir si des alertes ont été émises (les erreurs seront ignorées). </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$merge</parameter> </term> <listitem> <para> Définir pour retourner un tableau à plat, et non organisé par paquet </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$sortfunc</parameter> </term> <listitem> <para> Fonction à utiliser pour trier le tableau résultant - par défaut, le tri est effectué sur la date et doit être suffisant dans la plupart des cas </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/statichaserrors.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/statichaserrors.xml +++ peardoc/fr/core/pear/pear-errorstack/statichaserrors.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.statichaserrors"> <refnamediv> <refname> <function>PEAR_ErrorStack::staticHasErrors</function> </refname> <refpurpose> Détermine s'il y a des erreurs sur une des piles d'erreur </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.bool; <function>PEAR_ErrorStack::staticHasErrors</function> </funcdef> <paramdef> &type.string;|false <parameter> <optional>$package = false</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$level = false</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.statichaserrors.desc"> &title.desc; <para> Version statique de <link linkend="core.pear.pear-errorstack.haserrors"> <function>PEAR_ErrorStack::hasErrors</function></link>. Retourne &true; si une des piles des squelettes a des erreurs en attente. Depuis PEAR 1.3.2, si <varname>$package</varname> est spécifié, la fonction appelera PEAR_ErrorStack::hasErrors pour la pile d'erreur de ce paquet. Si le niveau est spécifié, hasErrors ignorera toutes les erreurs non conformes avec le niveau spécifié. Utilisez cette fonction pour simuler error_reporting(E_NOTICE), par exemple. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string;|&false; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet pour y retrouver l'information ou &false; pour récupérer les informations des erreurs pour toutes les piles. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Nom du niveau à utiliser pour une sévérité particulière. Utilisez ce paramètre pour déterminer si une classe d'erreurs particulières est survenue, par exemple, pour savoir si des alertes ont été émises. (les erreurs seront ignorées) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticpopcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticpopcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/staticpopcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticpopcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::staticPopCallback</function></refname> <refpurpose>Efface un callback pour toutes les callbacks d'error de la pile</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> <replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::staticPopCallback</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.desc"> &title.desc; <para> Efface un callback de toutes les erreurs de la pile. Aucune vérification n'est effectuée pour déterminer si c'est une bonne idée, utilisez donc cette fonction avec prudence. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.staticpushcallback"> <function>PEAR_ErrorStack::staticPushCallback</function>. </link> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpopcallback.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticpushcallback.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticpushcallback.xml +++ peardoc/fr/core/pear/pear-errorstack/staticpushcallback.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticpushcallback"> <refnamediv> <refname> <function>PEAR_ErrorStack::staticPushCallback</function> </refname> <refpurpose> Difinit une fonction de rappel pour chaque erreur de la pile </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> &type.void; <function>PEAR_ErrorStack::staticPushCallback</function> </funcdef> <paramdef> &type.string;|&type.array; <parameter>$cb</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.desc"> &title.desc; <para> Définit une erreur de callback pour chaque squelette d'erreur de la pile. </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string;|&type.array; <parameter>$cb</parameter> </term> <listitem> <para> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.see"> &title.see; <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.staticpopcallback"> <function>PEAR_ErrorStack::staticPopCallback</function> </link> et <link linkend="core.pear.pear-errorstack.pushcallback"> <function>PEAR_ErrorStack::pushCallback</function>. </link> </para> <para> <emphasis>Voir</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"> <constant>PEAR_ERRORSTACK_PUSHANDLOG</constant> </link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"> <constant>PEAR_ERRORSTACK_PUSH</constant> </link> et <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"> <constant>PEAR_ERRORSTACK_LOG</constant> </link> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.note"> &title.note; ¬e.shouldstatic; </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/viewcvs.cgi/peardoc/fr/core/pear/pear-errorstack/staticpush.xml?view=markup&rev=1.1 Index: peardoc/fr/core/pear/pear-errorstack/staticpush.xml +++ peardoc/fr/core/pear/pear-errorstack/staticpush.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="core.pear.pear-errorstack.staticpush"> <refnamediv> <refname> <function>PEAR_ErrorStack::staticPush</function> </refname> <refpurpose> Version statique de <link linkend="core.pear.pear-errorstack.push"> <function>push</function> </link> </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> <funcdef> <replaceable>PEAR_Error|null|Exception</replaceable> <function>PEAR_ErrorStack::staticPush</function> </funcdef> <paramdef> &type.string; <parameter>$package</parameter> </paramdef> <paramdef> &type.int; <parameter>$code</parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$level = 'error'</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$params = array()</optional></parameter> </paramdef> <paramdef> &type.string; <parameter> <optional>$msg = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$repackage = &false;</optional></parameter> </paramdef> <paramdef> &type.array; <parameter> <optional>$backtrace = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.staticpush.desc"> &title.desc; <para></para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpush.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$package</parameter> </term> <listitem> <para> Nom du paquet auquel l'erreur appartient </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$code</parameter> </term> <listitem> <para> Code erreur spécifique au paquet </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$level</parameter> </term> <listitem> <para> Niveau de l'erreur. Il ne sera pas traduit. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> tableau associatif contenant les paramètres de l'erreur </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.string; <parameter>$msg</parameter> </term> <listitem> <para> Message d'erreur ou une portion de celui-ci si le message est en train d'être généré </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$repackage</parameter> </term> <listitem> <para> Si cette erreur rempaquète une erreur envoyée par un autre paquet, on place le tableau retourné par la fonction <link linkend="core.pear.pear-errorstack.pop"> <function>pop</function> </link> dans ce paramètre </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$backtrace</parameter> </term> <listitem> <para> Paramètres protégés : utilisez le pour passer dans la fonction <ulink url="&url.php.lookup;debug_backtrace">debug_backtrace</ulink> qui devra être utilisé pour retrouver le contexte de l'erreur </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.returns"> &title.returns; <para> <emphasis>lance</emphasis>, si le mode de compatibilité est actif, une PEAR_Error. Si l'exception de la classe existe, 1 est retourné pour permettre un code comme : <programlisting role="php-highlighted"> <![CDATA[ <?php 1 throw ($stack-><link linkend="core.pear.pear-errorstack.push">push</link>(MY_ERROR_CODE, 'error', array('username' => 'grob'))); ?> ]]> </programlisting> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpush.throws"> &title.throws; &noexceptions; </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpush.note"> &title.note; ¬e.shouldstatic; </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 -->