cvs: peardoc /en/package/pear/pear-size reusing.xml

From: Date: Wed, 27 Aug 2008 22:53:11 +0000
Subject: cvs: peardoc /en/package/pear/pear-size reusing.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11065@lists.php.net to get a copy of this message
kguest Wed Aug 27 22:53:11 2008 UTC Modified files: /peardoc/en/package/pear/pear-size reusing.xml Log: fleshed out documentation a bit more http://cvs.php.net/viewvc.cgi/peardoc/en/package/pear/pear-size/reusing.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/package/pear/pear-size/reusing.xml diff -u peardoc/en/package/pear/pear-size/reusing.xml:1.2 peardoc/en/package/pear/pear-size/reusing.xml:1.3 --- peardoc/en/package/pear/pear-size/reusing.xml:1.2 Fri Apr 18 01:19:18 2008 +++ peardoc/en/package/pear/pear-size/reusing.xml Wed Aug 27 22:53:10 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.pear.pear-size.reusing"> <refnamediv> @@ -9,19 +9,26 @@ <refsect1> <title>Re-using PEAR_Size</title> <para> - PEAR_Size consists of several core classes plus some ancillary ones. - Most important is the <classname>PEAR_Size</classname> class itself which performs the - data-gathering process and then initiates the generation of the output - report (using the <function>analyse</function> and - <function>generateReport</function> methods respectively). The format - of the report is set using the <function>setOutputDriver</function> - method. + PEAR_Size consists of several core classes plus some ancillary + ones. Most important is the <classname>PEAR_Size</classname> + class itself which performs the data-gathering process and + then initiates the generation of the output report (using the + <function>analyse</function> and <function>generateReport</function> + methods respectively). The format of the report is set using the + <function>setOutputDriver</function> method. </para> + <para> - If writing a command-line script that will utilise the power of PEAR_Size it - is best to use the <classname>PEAR_Size_CLI</classname> class and - <function>run</function> for parsing the details and options set at the - command prompt. + If writing a command-line script that will utilise the power of + PEAR_Size it is best to use the <classname>PEAR_Size_CLI</classname> + class and <function>run()</function> for parsing the details and + options set at the command prompt. The <function>usage()</function> + method is for displaying either a usage screen or some error + message. This method uses the application name as defined with the + <function>setAppName()</function> method in those screens. If you + intend to embed PEAR_Size into your own application or script you + can set its name with the aforementioned method and retrieve it with + <function>appName()</function>. </para> </refsect1> </refentry>

« previous php.pear.doc (#11065) next »