cvs: peardoc / html-common.dsl html.xsl htmlhelp.xsl /en/core/pear/pear-errorstack geterrors.xml haserrors.xml pear-errorstack.xml push.xml
singleton.xml staticgeterrors.xml statichaserrors.xml
| From: | Greg Beaver | Date: | Sat, 23 Oct 2004 21:13:23 +0000 |
| Subject: | cvs: peardoc / html-common.dsl html.xsl htmlhelp.xsl /en/core/pear/pear-errorstack geterrors.xml haserrors.xml pear-errorstack.xml push.xml singleton.xml staticgeterrors.xml statichaserrors.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5029@lists.php.net to get a copy of this message | ||
cellog Sat Oct 23 17:13:23 2004 EDT
Modified files:
/peardoc html-common.dsl html.xsl htmlhelp.xsl
/peardoc/en/core/pear/pear-errorstack geterrors.xml haserrors.xml
pear-errorstack.xml push.xml
singleton.xml
staticgeterrors.xml
statichaserrors.xml
Log:
update for PEAR 1.3.2
http://cvs.php.net/diff.php/peardoc/html-common.dsl?r1=1.4&r2=1.5&ty=u Index: peardoc/html-common.dsl diff -u peardoc/html-common.dsl:1.4 peardoc/html-common.dsl:1.5 --- peardoc/html-common.dsl:1.4 Wed Feb 11 21:43:19 2004 +++ peardoc/html-common.dsl Sat Oct 23 17:13:22 2004 @@ -1,6 +1,6 @@ ;; -*- Scheme -*- ;; -;; $Id: html-common.dsl,v 1.4 2004/02/12 02:43:19 danielc Exp $ +;; $Id: html-common.dsl,v 1.5 2004/10/23 21:13:22 cellog Exp $ ;; ;; Returns the depth of the auto-generated TOC (table of http://cvs.php.net/diff.php/peardoc/html.xsl?r1=1.4&r2=1.5&ty=u Index: peardoc/html.xsl diff -u peardoc/html.xsl:1.4 peardoc/html.xsl:1.5 --- peardoc/html.xsl:1.4 Wed Feb 11 21:43:19 2004 +++ peardoc/html.xsl Sat Oct 23 17:13:22 2004 @@ -2,13 +2,13 @@ HTML specific stylesheet - $Id: html.xsl,v 1.4 2004/02/12 02:43:19 danielc Exp $ + $Id: html.xsl,v 1.5 2004/10/23 21:13:22 cellog Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<xsl:import href=""/> +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/> <xsl:include href="html-common.xsl"/> <xsl:param name="base.dir" select="'html/'"/> http://cvs.php.net/diff.php/peardoc/htmlhelp.xsl?r1=1.4&r2=1.5&ty=u Index: peardoc/htmlhelp.xsl diff -u peardoc/htmlhelp.xsl:1.4 peardoc/htmlhelp.xsl:1.5 --- peardoc/htmlhelp.xsl:1.4 Wed Feb 11 21:43:19 2004 +++ peardoc/htmlhelp.xsl Sat Oct 23 17:13:22 2004 @@ -2,13 +2,13 @@ HTML Help specific stylesheet - $Id: htmlhelp.xsl,v 1.4 2004/02/12 02:43:19 danielc Exp $ + $Id: htmlhelp.xsl,v 1.5 2004/10/23 21:13:22 cellog Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<xsl:import href=""/> +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/htmlhelp/htmlhelp.xsl"/> <xsl:include href="html-common.xsl"/> <xsl:param name="base.dir" select="'html/'"/> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/geterrors.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/geterrors.xml diff -u peardoc/en/core/pear/pear-errorstack/geterrors.xml:1.1 peardoc/en/core/pear/pear-errorstack/geterrors.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/geterrors.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/geterrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.geterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::getErrors</function></refname> @@ -12,13 +12,16 @@ <funcprototype> <funcdef>array <function>PEAR_ErrorStack::getErrors</function></funcdef> <paramdef>boolean <parameter> <optional>$purge = &false;</optional></parameter></paramdef> + <paramdef>string|false <parameter> <optional>$level = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.geterrors.desc"> &title.desc; - <para>Retrieve all errors since last purge</para> + <para>Retrieve all errors since last purge, or filter all errors and only return errors of a particular error level, + leaving the rest on the stack. + </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.geterrors.param"> &title.param; @@ -26,10 +29,8 @@ <variablelist> <varlistentry> <term> - - - &type.bool; - <parameter>$purge</parameter> + &type.bool; + <parameter>$purge</parameter> </term> <listitem> <para> @@ -38,6 +39,20 @@ </listitem> </varlistentry> </variablelist> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$level</parameter> + </term> + <listitem> + <para> + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) + </para> + </listitem> + </varlistentry> + </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.geterrors.throws"> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/haserrors.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/haserrors.xml diff -u peardoc/en/core/pear/pear-errorstack/haserrors.xml:1.1 peardoc/en/core/pear/pear-errorstack/haserrors.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/haserrors.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/haserrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.haserrors"> <refnamediv> <refname><function>PEAR_ErrorStack::hasErrors</function></refname> @@ -10,8 +10,8 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>boolean <function>PEAR_ErrorStack::hasErrors</function></funcdef> -<paramdef></paramdef> + <funcdef>boolean <function>PEAR_ErrorStack::hasErrors</function></funcdef> + <paramdef>string <parameter> <optional>$level = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -20,6 +20,25 @@ &title.desc; <para>Determine whether there are any errors on the stack</para> </refsect1> + <refsect1 id="core.pear.pear-errorstack.haserrors.param"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$level</parameter> + </term> + <listitem> + <para> + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> <refsect1 id="core.pear.pear-errorstack.haserrors.throws"> &title.throws; <para> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml diff -u peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.2 peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.pear-errorstack"> <refnamediv> <refname>constructor <function>PEAR_ErrorStack::PEAR_ErrorStack</function></refname> @@ -15,11 +15,19 @@ <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> - <paramdef>string <parameter> <optional>$exceptionClass = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.pear-errorstack.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and + the last parameter has been removed. Code that relies upon this behavior will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.desc"> &title.desc; <para>Creates a new private PEAR_ErrorStack. To access a universal stack, use <link linkend="core.pear.pear-errorstack.singleton"><function>PEAR_ErrorStack::singleton</function></link></para> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/push.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/push.xml diff -u peardoc/en/core/pear/pear-errorstack/push.xml:1.2 peardoc/en/core/pear/pear-errorstack/push.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/push.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/push.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.push"> <refnamediv> <refname><function>PEAR_ErrorStack::push</function></refname> @@ -10,7 +10,7 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>PEAR_Error|array|Exception <function>PEAR_ErrorStack::push</function></funcdef> + <funcdef>PEAR_Error|array <function>PEAR_ErrorStack::push</function></funcdef> <paramdef>int <parameter>$code</parameter></paramdef> <paramdef>string <parameter> <optional>$level = 'error'</optional></parameter></paramdef> <paramdef>array <parameter> <optional>$params = array()</optional></parameter></paramdef> @@ -21,6 +21,15 @@ </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.push.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5. + Code that relies upon this behavior will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.push.desc"> &title.desc; <para> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/singleton.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/singleton.xml diff -u peardoc/en/core/pear/pear-errorstack/singleton.xml:1.2 peardoc/en/core/pear/pear-errorstack/singleton.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/singleton.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/singleton.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.singleton"> <refnamediv> <refname><function>PEAR_ErrorStack::singleton</function></refname> @@ -15,12 +15,20 @@ <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> - <paramdef>string <parameter> <optional>$exceptionClass = &null;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$stackClass = 'PEAR_ErrorStack'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.singleton.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and + the second-to-last parameter has been removed. Code that relies upon this behavior will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.desc"> &title.desc; <para>Note that all parameters are ignored if the stack for package $package has already been instantiated</para> @@ -85,19 +93,6 @@ <varlistentry> <term> &type.string; - <parameter>$exceptionClass</parameter> - </term> - <listitem> - <para> - exception class to instantiate if running in PHP 5 - </para> - </listitem> - </varlistentry> - </variablelist> - <variablelist> - <varlistentry> - <term> - &type.string; <parameter>$stackClass</parameter> </term> <listitem> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml diff -u peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.2 peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.staticgeterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticGetErrors</function></refname> @@ -10,15 +10,24 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>array <function>PEAR_ErrorStack::staticGetErrors</function></funcdef> - <paramdef>mixed <parameter> <optional>$purge = &false;</optional></parameter></paramdef> + <funcdef>array <function>PEAR_ErrorStack::staticGetErrors</function></funcdef> + <paramdef>boolean <parameter> <optional>$purge = &false;</optional></parameter></paramdef> + <paramdef>string|false <parameter> <optional>$level = &false;</optional></parameter></paramdef> <paramdef>boolean <parameter> <optional>$merge = &false;</optional></parameter></paramdef> <paramdef>array <parameter> <optional>$sortfunc = array('PEAR_ErrorStack', '_sortErrors')</optional></parameter></paramdef> - <paramdef>boolean <parameter>$clearStack</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.staticgeterrors.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, the second parameter is a new parameter <varname>$level</varname>. Any code that + relies on $merge being the second parameter will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.desc"> &title.desc; <para>Static version of <link linkend="core.pear.pear-errorstack.geterrors"><function>PEAR_ErrorStack::getErrors</function></link>, returns all errors from all singleton stacks.</para> @@ -29,12 +38,12 @@ <variablelist> <varlistentry> <term> - &type.mixed; + &type.bool; <parameter>$purge</parameter> </term> <listitem> <para> - + Set to purge the error stack of existing errors </para> </listitem> </varlistentry> @@ -42,12 +51,13 @@ <variablelist> <varlistentry> <term> - &type.bool; - <parameter>$merge</parameter> + &type.string; + <parameter>$level</parameter> </term> <listitem> <para> - Set to return a flat array, not organized by package + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) </para> </listitem> </varlistentry> @@ -55,13 +65,12 @@ <variablelist> <varlistentry> <term> - &type.array; - <parameter>$sortfunc</parameter> + &type.bool; + <parameter>$merge</parameter> </term> <listitem> <para> - Function used to sort a merged array - default sorts by time, and -should be good for most cases + Set to return a flat array, not organized by package </para> </listitem> </varlistentry> @@ -69,12 +78,13 @@ <variablelist> <varlistentry> <term> - &type.bool; - <parameter>$clearStack</parameter> + &type.array; + <parameter>$sortfunc</parameter> </term> <listitem> <para> - Set to purge the error stack of existing errors + Function used to sort a merged array - default sorts by time, and +should be good for most cases </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/statichaserrors.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/statichaserrors.xml diff -u peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.2 peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/statichaserrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.statichaserrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticHasErrors</function></refname> @@ -10,17 +10,53 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>boolean <function>PEAR_ErrorStack::staticHasErrors</function></funcdef> -<paramdef></paramdef> + <funcdef>boolean <function>PEAR_ErrorStack::staticHasErrors</function></funcdef> + <paramdef>string|false <parameter> <optional>$package = false</optional></parameter></paramdef> + <paramdef>string <parameter> <optional>$level = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.statichaserrors.desc"> &title.desc; - <para>Static version of <link linkend="core.pear.pear-errorstack.haserrors"><function>PEAR_ErrorStack::hasErrors</function></link>. Returns &true; if any singleton stack has - any errors pending.</para> + <para>Static version of <link linkend="core.pear.pear-errorstack.haserrors"> + <function>PEAR_ErrorStack::hasErrors</function></link>. Returns &true; if any singleton + stack has any errors pending. Since PEAR 1.3.2, If <varname>$package</varname> is specified, it will call PEAR_ErrorStack::hasErrors + for the singleton error stack of that package. If level is specified, hasErrors will ignore + any errors not conforming to the error level specified. Use this to simulate error_reporting(E_NOTICE), for example</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> + Package name to retrieve error information from, or false to retrieve error information from all singleton stacks + </para> + </listitem> + </varlistentry> + </variablelist> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$level</parameter> + </term> + <listitem> + <para> + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.throws"> &title.throws; <para>
http://cvs.php.net/diff.php/peardoc/html-common.dsl?r1=1.4&r2=1.5&ty=u Index: peardoc/html-common.dsl diff -u peardoc/html-common.dsl:1.4 peardoc/html-common.dsl:1.5 --- peardoc/html-common.dsl:1.4 Wed Feb 11 21:43:19 2004 +++ peardoc/html-common.dsl Sat Oct 23 17:13:22 2004 @@ -1,6 +1,6 @@ ;; -*- Scheme -*- ;; -;; $Id: html-common.dsl,v 1.4 2004/02/12 02:43:19 danielc Exp $ +;; $Id: html-common.dsl,v 1.5 2004/10/23 21:13:22 cellog Exp $ ;; ;; Returns the depth of the auto-generated TOC (table of http://cvs.php.net/diff.php/peardoc/html.xsl?r1=1.4&r2=1.5&ty=u Index: peardoc/html.xsl diff -u peardoc/html.xsl:1.4 peardoc/html.xsl:1.5 --- peardoc/html.xsl:1.4 Wed Feb 11 21:43:19 2004 +++ peardoc/html.xsl Sat Oct 23 17:13:22 2004 @@ -2,13 +2,13 @@ HTML specific stylesheet - $Id: html.xsl,v 1.4 2004/02/12 02:43:19 danielc Exp $ + $Id: html.xsl,v 1.5 2004/10/23 21:13:22 cellog Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<xsl:import href=""/> +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/> <xsl:include href="html-common.xsl"/> <xsl:param name="base.dir" select="'html/'"/> http://cvs.php.net/diff.php/peardoc/htmlhelp.xsl?r1=1.4&r2=1.5&ty=u Index: peardoc/htmlhelp.xsl diff -u peardoc/htmlhelp.xsl:1.4 peardoc/htmlhelp.xsl:1.5 --- peardoc/htmlhelp.xsl:1.4 Wed Feb 11 21:43:19 2004 +++ peardoc/htmlhelp.xsl Sat Oct 23 17:13:22 2004 @@ -2,13 +2,13 @@ HTML Help specific stylesheet - $Id: htmlhelp.xsl,v 1.4 2004/02/12 02:43:19 danielc Exp $ + $Id: htmlhelp.xsl,v 1.5 2004/10/23 21:13:22 cellog Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<xsl:import href=""/> +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/htmlhelp/htmlhelp.xsl"/> <xsl:include href="html-common.xsl"/> <xsl:param name="base.dir" select="'html/'"/> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/geterrors.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/geterrors.xml diff -u peardoc/en/core/pear/pear-errorstack/geterrors.xml:1.1 peardoc/en/core/pear/pear-errorstack/geterrors.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/geterrors.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/geterrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.geterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::getErrors</function></refname> @@ -12,13 +12,16 @@ <funcprototype> <funcdef>array <function>PEAR_ErrorStack::getErrors</function></funcdef> <paramdef>boolean <parameter> <optional>$purge = &false;</optional></parameter></paramdef> + <paramdef>string|false <parameter> <optional>$level = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.geterrors.desc"> &title.desc; - <para>Retrieve all errors since last purge</para> + <para>Retrieve all errors since last purge, or filter all errors and only return errors of a particular error level, + leaving the rest on the stack. + </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.geterrors.param"> &title.param; @@ -26,10 +29,8 @@ <variablelist> <varlistentry> <term> - - - &type.bool; - <parameter>$purge</parameter> + &type.bool; + <parameter>$purge</parameter> </term> <listitem> <para> @@ -38,6 +39,20 @@ </listitem> </varlistentry> </variablelist> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$level</parameter> + </term> + <listitem> + <para> + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) + </para> + </listitem> + </varlistentry> + </variablelist> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.geterrors.throws"> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/haserrors.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/haserrors.xml diff -u peardoc/en/core/pear/pear-errorstack/haserrors.xml:1.1 peardoc/en/core/pear/pear-errorstack/haserrors.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/haserrors.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/haserrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.haserrors"> <refnamediv> <refname><function>PEAR_ErrorStack::hasErrors</function></refname> @@ -10,8 +10,8 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>boolean <function>PEAR_ErrorStack::hasErrors</function></funcdef> -<paramdef></paramdef> + <funcdef>boolean <function>PEAR_ErrorStack::hasErrors</function></funcdef> + <paramdef>string <parameter> <optional>$level = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -20,6 +20,25 @@ &title.desc; <para>Determine whether there are any errors on the stack</para> </refsect1> + <refsect1 id="core.pear.pear-errorstack.haserrors.param"> + &title.param; + <para> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$level</parameter> + </term> + <listitem> + <para> + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> <refsect1 id="core.pear.pear-errorstack.haserrors.throws"> &title.throws; <para> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml diff -u peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.2 peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.pear-errorstack"> <refnamediv> <refname>constructor <function>PEAR_ErrorStack::PEAR_ErrorStack</function></refname> @@ -15,11 +15,19 @@ <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> - <paramdef>string <parameter> <optional>$exceptionClass = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.pear-errorstack.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and + the last parameter has been removed. Code that relies upon this behavior will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.desc"> &title.desc; <para>Creates a new private PEAR_ErrorStack. To access a universal stack, use <link linkend="core.pear.pear-errorstack.singleton"><function>PEAR_ErrorStack::singleton</function></link></para> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/push.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/push.xml diff -u peardoc/en/core/pear/pear-errorstack/push.xml:1.2 peardoc/en/core/pear/pear-errorstack/push.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/push.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/push.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.push"> <refnamediv> <refname><function>PEAR_ErrorStack::push</function></refname> @@ -10,7 +10,7 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>PEAR_Error|array|Exception <function>PEAR_ErrorStack::push</function></funcdef> + <funcdef>PEAR_Error|array <function>PEAR_ErrorStack::push</function></funcdef> <paramdef>int <parameter>$code</parameter></paramdef> <paramdef>string <parameter> <optional>$level = 'error'</optional></parameter></paramdef> <paramdef>array <parameter> <optional>$params = array()</optional></parameter></paramdef> @@ -21,6 +21,15 @@ </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.push.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5. + Code that relies upon this behavior will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.push.desc"> &title.desc; <para> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/singleton.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/singleton.xml diff -u peardoc/en/core/pear/pear-errorstack/singleton.xml:1.2 peardoc/en/core/pear/pear-errorstack/singleton.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/singleton.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/singleton.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.singleton"> <refnamediv> <refname><function>PEAR_ErrorStack::singleton</function></refname> @@ -15,12 +15,20 @@ <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> - <paramdef>string <parameter> <optional>$exceptionClass = &null;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$stackClass = 'PEAR_ErrorStack'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.singleton.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, PEAR_ErrorStack no longer instantiates and returns an Exception object in PHP5, and + the second-to-last parameter has been removed. Code that relies upon this behavior will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.singleton.desc"> &title.desc; <para>Note that all parameters are ignored if the stack for package $package has already been instantiated</para> @@ -85,19 +93,6 @@ <varlistentry> <term> &type.string; - <parameter>$exceptionClass</parameter> - </term> - <listitem> - <para> - exception class to instantiate if running in PHP 5 - </para> - </listitem> - </varlistentry> - </variablelist> - <variablelist> - <varlistentry> - <term> - &type.string; <parameter>$stackClass</parameter> </term> <listitem> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml diff -u peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.2 peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.staticgeterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticGetErrors</function></refname> @@ -10,15 +10,24 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>array <function>PEAR_ErrorStack::staticGetErrors</function></funcdef> - <paramdef>mixed <parameter> <optional>$purge = &false;</optional></parameter></paramdef> + <funcdef>array <function>PEAR_ErrorStack::staticGetErrors</function></funcdef> + <paramdef>boolean <parameter> <optional>$purge = &false;</optional></parameter></paramdef> + <paramdef>string|false <parameter> <optional>$level = &false;</optional></parameter></paramdef> <paramdef>boolean <parameter> <optional>$merge = &false;</optional></parameter></paramdef> <paramdef>array <parameter> <optional>$sortfunc = array('PEAR_ErrorStack', '_sortErrors')</optional></parameter></paramdef> - <paramdef>boolean <parameter>$clearStack</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> + <refsect1 id="core.pear.pear-errorstack.staticgeterrors.bcwarning"> + <title>Backwards Compatibility Warning</title> + <warning> + <para> + As of PEAR 1.3.2, the second parameter is a new parameter <varname>$level</varname>. Any code that + relies on $merge being the second parameter will break. + </para> + </warning> + </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.desc"> &title.desc; <para>Static version of <link linkend="core.pear.pear-errorstack.geterrors"><function>PEAR_ErrorStack::getErrors</function></link>, returns all errors from all singleton stacks.</para> @@ -29,12 +38,12 @@ <variablelist> <varlistentry> <term> - &type.mixed; + &type.bool; <parameter>$purge</parameter> </term> <listitem> <para> - + Set to purge the error stack of existing errors </para> </listitem> </varlistentry> @@ -42,12 +51,13 @@ <variablelist> <varlistentry> <term> - &type.bool; - <parameter>$merge</parameter> + &type.string; + <parameter>$level</parameter> </term> <listitem> <para> - Set to return a flat array, not organized by package + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) </para> </listitem> </varlistentry> @@ -55,13 +65,12 @@ <variablelist> <varlistentry> <term> - &type.array; - <parameter>$sortfunc</parameter> + &type.bool; + <parameter>$merge</parameter> </term> <listitem> <para> - Function used to sort a merged array - default sorts by time, and -should be good for most cases + Set to return a flat array, not organized by package </para> </listitem> </varlistentry> @@ -69,12 +78,13 @@ <variablelist> <varlistentry> <term> - &type.bool; - <parameter>$clearStack</parameter> + &type.array; + <parameter>$sortfunc</parameter> </term> <listitem> <para> - Set to purge the error stack of existing errors + Function used to sort a merged array - default sorts by time, and +should be good for most cases </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/statichaserrors.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/en/core/pear/pear-errorstack/statichaserrors.xml diff -u peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.2 peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.3 --- peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.2 Sat Mar 20 02:43:04 2004 +++ peardoc/en/core/pear/pear-errorstack/statichaserrors.xml Sat Oct 23 17:13:23 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="core.pear.pear-errorstack.statichaserrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticHasErrors</function></refname> @@ -10,17 +10,53 @@ require_once 'PEAR/ErrorStack.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>boolean <function>PEAR_ErrorStack::staticHasErrors</function></funcdef> -<paramdef></paramdef> + <funcdef>boolean <function>PEAR_ErrorStack::staticHasErrors</function></funcdef> + <paramdef>string|false <parameter> <optional>$package = false</optional></parameter></paramdef> + <paramdef>string <parameter> <optional>$level = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.statichaserrors.desc"> &title.desc; - <para>Static version of <link linkend="core.pear.pear-errorstack.haserrors"><function>PEAR_ErrorStack::hasErrors</function></link>. Returns &true; if any singleton stack has - any errors pending.</para> + <para>Static version of <link linkend="core.pear.pear-errorstack.haserrors"> + <function>PEAR_ErrorStack::hasErrors</function></link>. Returns &true; if any singleton + stack has any errors pending. Since PEAR 1.3.2, If <varname>$package</varname> is specified, it will call PEAR_ErrorStack::hasErrors + for the singleton error stack of that package. If level is specified, hasErrors will ignore + any errors not conforming to the error level specified. Use this to simulate error_reporting(E_NOTICE), for example</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> + Package name to retrieve error information from, or false to retrieve error information from all singleton stacks + </para> + </listitem> + </varlistentry> + </variablelist> + <variablelist> + <varlistentry> + <term> + &type.string; + <parameter>$level</parameter> + </term> + <listitem> + <para> + Level name to check for a particular severity. Use this to determine whether only a particular + class of errors has occurred, such as whether any warnings have occurred (errors will be ignored) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.throws"> &title.throws; <para>