cvs: peardoc /en/package/php/php-compatinfo whatsnew.xml

From: Date: Sat, 05 Jul 2008 10:04:37 +0000
Subject: cvs: peardoc /en/package/php/php-compatinfo whatsnew.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10937@lists.php.net to get a copy of this message
farell Sat Jul 5 10:04:37 2008 UTC Modified files: /peardoc/en/package/php/php-compatinfo whatsnew.xml Log: summary of changes in new API 1.8.0 http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-compatinfo/whatsnew.xml?r1=1.15&r2=1.16&diff_format=u Index: peardoc/en/package/php/php-compatinfo/whatsnew.xml diff -u peardoc/en/package/php/php-compatinfo/whatsnew.xml:1.15 peardoc/en/package/php/php-compatinfo/whatsnew.xml:1.16 --- peardoc/en/package/php/php-compatinfo/whatsnew.xml:1.15 Sun May 18 13:20:41 2008 +++ peardoc/en/package/php/php-compatinfo/whatsnew.xml Sat Jul 5 10:04:37 2008 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <refentry id="package.php.php-compatinfo.whatsnew"> <refnamediv> <refname>News</refname> @@ -393,18 +393,73 @@ <refsect1 id="package.php.php-compatinfo.whatsnew.18x"> <title>Version 1.8.x</title> <para> - <itemizedlist> - <listitem> - <para> - Show a progress bar when parsing directories from CLI - </para> - </listitem> - <listitem> - <para> - Support of error_reporting constant E_RECOVERABLE_ERROR introduced with PHP 5.2.0 - </para> - </listitem> - </itemizedlist> + Rewrites of core API following the MVC pattern came from a user request that wanted + to customized its CLI output. Even if <emphasis>output-level</emphasis> switch + already exists, there is no easy way with no process-logic dependency. + </para> + <para> + <emphasis role="bold">A word about the new architecture:</emphasis> + Parser logic may be found in class <classname>PHP_CompatInfo_Parser</classname>, + while <classname>PHP_CompatInfo</classname> class is still the main controller, + but just a wrapper to parser methods. Each output format (csv, xml, text, html, array) + is produced by an independant renderer with the common interface + <classname>PHP_CompatInfo_Renderer</classname> + </para> + <para> + To create your own renderer or just customize a bit an exists renderer, please + have a look on example named <filename>pci180_parsedir_tohtml.php</filename> + </para> + <para> + Here are the list of news and changes since previous API: + <itemizedlist> + <listitem> + <para> + <emphasis role="bold">Always display result on standard output.</emphasis> + To disable this feature, see the FAQ entry <link linkend="faq" endterm="faq3" />. + </para> + </listitem> + <listitem> + <para> + <emphasis role="bold">2 news output format.</emphasis> + With the new renderer system, the Web SAPI may use the <literal>xml</literal> + render (until now limited to CLI). While there is two news render: + <literal>csv</literal> and <literal>html</literal>. + Default output format (PHP dump array) use the <literal>array</literal> render + while <literal>text</literal> is for CLI. + </para> + </listitem> + <listitem> + <para> + <emphasis role="bold">A common method to parse all data sources.</emphasis> + The new method + <link linkend="package.php.php-compatinfo.php-compatinfo.parsedata"> + <function>PHP_CompatInfo::parseData</function> + </link> + allow to parse all data source (array, string, file, directory) with the + same interface. All others PHP_CompatInfo::parse* functions become now alias + of this new method (to keep backward compatibility). + </para> + </listitem> + <listitem> + <para> + <emphasis role="bold">Event-driven architecture</emphasis> + allow multiple renderer and extending core API of PHP_CompatInfo. + </para> + </listitem> + <listitem> + <para> + <emphasis role="bold">Progress bar for long process.</emphasis> + Ability to display simple text wait message or a progress bar when parsing + directories (or lot of files) from the command line, and even on web interface. + </para> + </listitem> + <listitem> + <para> + <emphasis role="bold">Constant E_RECOVERABLE_ERROR</emphasis> + introduced with PHP 5.2.0, is now detected. + </para> + </listitem> + </itemizedlist> </para> </refsect1>

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