cvs: pear /HTML_Progress/tutorials/HTML_Progress monitor.accept.pkg monitor.callprogresshandler.pkg monitor.getprogresselement.pkg
monitor.getscript.pkg monitor.getstyle.pkg monitor.iscanceled.pkg monitor.isstarted.pkg monitor.notify.pkg monitor.run.pkg monitor.setcaption.pkg
monitor.setprogresselement.pkg monitor.setprogresshandler.pkg monitor.tohtml.pkg

From: Date: Fri, 10 Sep 2004 16:29:09 +0000
Subject: cvs: pear /HTML_Progress/tutorials/HTML_Progress monitor.accept.pkg monitor.callprogresshandler.pkg monitor.getprogresselement.pkg
monitor.getscript.pkg monitor.getstyle.pkg monitor.iscanceled.pkg monitor.isstarted.pkg monitor.notify.pkg monitor.run.pkg monitor.setcaption.pkg
monitor.setprogresselement.pkg monitor.setprogresshandler.pkg monitor.tohtml.pkg
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23791@lists.php.net to get a copy of this message
farell Fri Sep 10 12:29:09 2004 EDT Added files: /pear/HTML_Progress/tutorials/HTML_Progress monitor.accept.pkg monitor.callprogresshandler.pkg monitor.getprogresselement.pkg monitor.getscript.pkg monitor.getstyle.pkg monitor.iscanceled.pkg monitor.isstarted.pkg monitor.notify.pkg monitor.run.pkg monitor.setcaption.pkg monitor.setprogresselement.pkg monitor.setprogresshandler.pkg monitor.tohtml.pkg Log: new API Monitor for the Definitive Guide

http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.accept.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.accept.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.accept.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::accept</function></refname> <refpurpose>accepts a quickform renderer</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::accept</function></funcdef> <paramdef>object &amp;<parameter>$renderer</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> Accepts a renderer. This method is a part of the Visitor design pattern implementation. </para> </refsect1> <refsect1 id="{@id parameter}"> <title>Parameter</title> <para> <variablelist> <varlistentry> <term> <type>object</type> <parameter>&amp;$renderer</parameter> </term> <listitem> <para> an instance of HTML_QuickForm_Renderer subclass </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="{@id throws}"> <title>Throws</title> <para> <table frame="all"> <title>Possible PEAR_Error values</title> <tgroup cols="4"> <thead> <row> <entry>Error level</entry> <entry>Error code</entry> <entry>Error message</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry>exception</entry> <entry><constant>HTML_PROGRESS_ERROR_INVALID_INPUT</constant></entry> <entry>invalid input, parameter #1 "<parameter>$renderer</parameter>" was expecting (HTML_QuickForm_Renderer object)</entry> <entry>Fixed the cast of parameter</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.callprogresshandler.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.callprogresshandler.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.callprogresshandler.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::callProgressHandler</function></refname> <refpurpose>calls a user-defined progress handler function</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::callProgressHandler</function></funcdef> <paramdef>integer <parameter>$arg</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is a wrapper for your callback function defined by {@tutorial monitor.setprogresshandler.pkg} or at least call by default the {@tutorial progress.sleep.pkg} method. </para> </refsect1> <refsect1 id="{@id parameter}"> <title>Parameter</title> <para> <variablelist> <varlistentry> <term> <type>integer</type> <parameter>$arg</parameter> </term> <listitem> <para> current value of the progress bar </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial progress.setanimspeed.pkg}, {@tutorial progress.sleep.pkg}, {@tutorial monitor.setprogresshandler.pkg}, {@tutorial monitor.run.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.getprogresselement.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.getprogresselement.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.getprogresselement.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::getProgressElement</function></refname> <refpurpose>returns a reference to the progress bar used by the monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void &amp;<function>HTML_Progress_Monitor::getProgressElement</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to get a reference to the progress bar object attached to the monitor. </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial monitor.setprogresselement.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.getscript.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.getscript.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.getscript.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::getScript</function></refname> <refpurpose>returns the javascript to manage the monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::getScript</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to get the javascript required to manage the monitor progress bar. </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.0 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.getstyle.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.getstyle.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.getstyle.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::getStyle</function></refname> <refpurpose>returns the stylesheet to display the monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::getStyle</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to get the stylesheet required to display the monitor dialog box. </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.0 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.iscanceled.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.iscanceled.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.iscanceled.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::isCanceled</function></refname> <refpurpose>returns TRUE if progress was canceled by user, FALSE otherwise</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::isCanceled</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to detect if progress monitor was stopped by action user. </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.0 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial monitor.isstarted.pkg}, {@tutorial monitor.run.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.isstarted.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.isstarted.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.isstarted.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::isStarted</function></refname> <refpurpose>returns TRUE if progress was started by user, FALSE otherwise</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::isStarted</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to detect if progress monitor is running or not. </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial monitor.iscanceled.pkg}, {@tutorial monitor.run.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.notify.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.notify.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.notify.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::notify</function></refname> <refpurpose>listens all progress events from the monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::notify</function></funcdef> <paramdef>mixed <parameter>$event</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method call the user callback with {@tutorial monitor.callprogresshandler.pkg} each time the progress bar value changes, and refresh display output. </para> </refsect1> <refsect1 id="{@id parameter}"> <title>Parameter</title> <para> <variablelist> <varlistentry> <term> <type>mixed</type> <parameter>$event</parameter> </term> <listitem> <para> hash describing the progress event (event name and value) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.0 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial monitor.setprogresshandler.pkg}, {@tutorial monitor.callprogresshandler.pkg}, {@tutorial monitor.run.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.run.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.run.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.run.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::run</function></refname> <refpurpose>runs the monitor and catch user action (cancel)</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::run</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method launch the monitoring process after user has clicked on <emphasis>Start</emphasis> button. </para> <simpara> At any time, the user can stop the process with the <emphasis>Cancel</emphasis> button. </simpara> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.0 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial progress.setanimspeed.pkg}, {@tutorial progress.sleep.pkg}, {@tutorial monitor.setprogresshandler.pkg}, {@tutorial monitor.callprogresshandler.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> <simpara> The full example below will run a progress monitor starting in indeterminate mode, and then switch back to determinate mode. </simpara> <figure> <graphic fileref="../media/screenshots/indeterminate.png"></graphic> </figure> {@example monitor_indeterminate.php} </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.setcaption.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.setcaption.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.setcaption.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::setCaption</function></refname> <refpurpose>displays caption on action in progress</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::setCaption</function></funcdef> <paramdef>string <parameter><optional>$caption = '&nbsp;'</optional></parameter></paramdef> <paramdef>array <parameter><optional>$args = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> Allows to display a caption to action in progress into the dialog box monitor. </para> </refsect1> <refsect1 id="{@id parameter}"> <title>Parameter</title> <para> <variablelist> <varlistentry> <term> <type>string</type> <parameter>$caption</parameter> </term> <listitem> <para> caption to action in progress </para> </listitem> </varlistentry> <varlistentry> <term> <type>array</type> <parameter>$args</parameter> </term> <listitem> <para> associative array of template variable, message text </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="{@id throws}"> <title>Throws</title> <para> <table frame="all"> <title>Possible PEAR_Error values</title> <tgroup cols="4"> <thead> <row> <entry>Error level</entry> <entry>Error code</entry> <entry>Error message</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry>exception</entry> <entry><constant>HTML_PROGRESS_ERROR_INVALID_INPUT</constant></entry> <entry>invalid input, parameter #1 "<parameter>$caption</parameter>" was expecting "string"</entry> <entry>Fixed the cast of parameter</entry> </row> <row> <entry>exception</entry> <entry><constant>HTML_PROGRESS_ERROR_INVALID_INPUT</constant></entry> <entry>invalid input, parameter #2 "<parameter>$args</parameter>" was expecting "array"</entry> <entry>Fixed the cast of parameter</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.setprogresselement.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.setprogresselement.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.setprogresselement.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::setProgressElement</function></refname> <refpurpose>attachs a progress bar to the monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::setProgressElement</function></funcdef> <paramdef>object <parameter>$bar</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to attach a new progress bar to the current monitor. </para> <simpara> All progress events will be send to this monitor thru the listen interface ({@tutorial monitor.notify.pkg}). </simpara> </refsect1> <refsect1 id="{@id parameter}"> <title>Parameter</title> <para> <variablelist> <varlistentry> <term> <type>object</type> <parameter>$bar</parameter> </term> <listitem> <para> a html_progress instance </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="{@id throws}"> <title>Throws</title> <para> <table frame="all"> <title>Possible PEAR_Error values</title> <tgroup cols="4"> <thead> <row> <entry>Error level</entry> <entry>Error code</entry> <entry>Error message</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry>exception</entry> <entry><constant>HTML_PROGRESS_ERROR_INVALID_INPUT</constant></entry> <entry>invalid input, parameter #1 "<parameter>$val</parameter>" was expecting (HTML_Progress object)</entry> <entry>Fixed the cast of parameter</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial monitor.getprogresselement.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.setprogresshandler.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.setprogresshandler.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.setprogresshandler.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::setProgressHandler</function></refname> <refpurpose>sets the user callback of the progress monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress/monitor.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_Progress_Monitor::setProgressHandler</function></funcdef> <paramdef>mixed <parameter>$handler</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method defines the user process to execute while the progress monitor is running. </para> <para> This user callback is called by {@tutorial monitor.callprogresshandler.pkg} into the {@tutorial monitor.notify.pkg} method. </para> </refsect1> <refsect1 id="{@id parameter}"> <title>Parameter</title> <para> <variablelist> <varlistentry> <term> <type>mixed</type> <parameter>$handler</parameter> </term> <listitem> <para> a valid callback </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="{@id throws}"> <title>Throws</title> <para> <table frame="all"> <title>Possible PEAR_Error values</title> <tgroup cols="4"> <thead> <row> <entry>Error level</entry> <entry>Error code</entry> <entry>Error message</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry>warning</entry> <entry><constant>HTML_PROGRESS_ERROR_INVALID_CALLBACK</constant></entry> <entry>invalid callback, parameter #1 "<parameter>$handler</parameter>" expecting "(a valid callback)"</entry> <entry>Fixed the user-callback reference </entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.1 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id see}"> <title>See</title> <para> {@tutorial progress.setanimspeed.pkg}, {@tutorial progress.sleep.pkg}, {@tutorial monitor.callprogresshandler.pkg}, {@tutorial monitor.run.pkg} </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry> http://cvs.php.net/co.php/pear/HTML_Progress/tutorials/HTML_Progress/monitor.tohtml.pkg?r=1.1&p=1 Index: pear/HTML_Progress/tutorials/HTML_Progress/monitor.tohtml.pkg +++ pear/HTML_Progress/tutorials/HTML_Progress/monitor.tohtml.pkg <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="{@id}"> <refnamediv> <refname><function>HTML_Progress_Monitor::toHtml</function></refname> <refpurpose>returns an HTML version of the progress monitor</refpurpose> </refnamediv> <refsect1 id="{@id synopsis}"> <title>Synopsis</title> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Progress.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTML_Progress_Monitor::toHtml</function></funcdef> <void/> </funcprototype> </funcsynopsis> </refsynopsisdiv> </refsect1> <refsect1 id="{@id description}"> <title>Description</title> <para> This method is used to get the HTML code of the progress monitor. </para> </refsect1> <refsect1 id="{@id note}"> <title>Note</title> <simpara> ( HTML_Progress >= 1.0 ) </simpara> <para> <important> This function can not be called statically. </important> </para> </refsect1> <refsect1 id="{@id example}"> <title>Example</title> <para> See example of {@tutorial monitor.run.pkg}. </para> </refsect1> </refentry>
« previous php.pear.cvs (#23791) next »