cvs: peardoc /fr/package/xml/xml-statistics example.xml intro.xml /fr/package/xml/xml-statistics/xml-statistics analyzefile.xml analyzestring.xml
apiversion.xml countattribute.xml countdatachunks.xml countexternalentity.xml countpi.xml counttag.xml counttagsindepth.xml getcdatalength.xml
getmaxdepth.xml

From: Date: Tue, 03 Aug 2004 07:30:39 +0000
Subject: cvs: peardoc /fr/package/xml/xml-statistics example.xml intro.xml /fr/package/xml/xml-statistics/xml-statistics analyzefile.xml analyzestring.xml
apiversion.xml countattribute.xml countdatachunks.xml countexternalentity.xml countpi.xml counttag.xml counttagsindepth.xml getcdatalength.xml
getmaxdepth.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4721@lists.php.net to get a copy of this message
yannick Tue Aug 3 03:30:39 2004 EDT Added files: /peardoc/fr/package/xml/xml-statistics/xml-statistics analyzefile.xml analyzestring.xml apiversion.xml countattribute.xml countdatachunks.xml countexternalentity.xml countpi.xml counttagsindepth.xml counttag.xml getcdatalength.xml getmaxdepth.xml /peardoc/fr/package/xml/xml-statistics example.xml intro.xml Log: initial translation

http://cvs.php.net/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/analyzefile.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/analyzefile.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/analyzefile.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.analyzefile"> <refnamediv> <refname><function>XML_Statistics::analyzeFile</function></refname> <refpurpose>Analyse un fichier XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Statistics::analyzeFile</function></funcdef> <paramdef>string <parameter>$filename</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzefile.desc"> &title.desc; <para> Analyse un document XML en le lisant depuis un fichier. Vous devez analyser un document avant d'en extraire toutes statistiques. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzefile.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzefile.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzefile.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.analyzestring"><function>XML_Statistics::analyzeString</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/analyzestring.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/analyzestring.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/analyzestring.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.analyzestring"> <refnamediv> <refname><function>XML_Statistics::analyzeString</function></refname> <refpurpose>Analyse une cha&icirc;ne XML</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Statistics::analyzeString</function></funcdef> <paramdef>string <parameter>$string</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzestring.desc"> &title.desc; <para> Analyse un document XML directement depuis une chap&icirc;ne. Cel&agrave; est tr&egrave;s utile si vos documents sont cr&eacute;&eacute;s &agrave; la vol&eacute;e par une autre application. Vous devez analyser un document avant d'en extraite toutes statistiques. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzestring.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzestring.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.analyzestring.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.analyzefile"><function>XML_Statistics::analyzeFile</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/apiversion.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/apiversion.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/apiversion.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.apiversion"> <refnamediv> <refname><function>XML_Statistics::apiVersion</function></refname> <refpurpose>retourne la version de l'API</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_Statistics::apiVersion</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.apiversion.desc"> &title.desc; <para> Retourne la version de l'API XML_Statistics. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.apiversion.return"> &title.returns; <para> <emphasis>string</emphasis> : version de l'API </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.apiversion.note"> &title.note; &note.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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/countattribute.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/countattribute.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/countattribute.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.countattribute"> <refnamediv> <refname><function>XML_Statistics::countAttribute</function></refname> <refpurpose>compte les occurences d'un attribut</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::countAttribute</function></funcdef> <paramdef>string <parameter><optional>$attribute = null</optional></parameter></paramdef> <paramdef>string <parameter><optional>$tagname = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.countattribute.desc"> &title.desc; <para> Compte le nombre d'utilisation d'un certain attribut dans un document.. Si aucun attribut n'est sp&eacute;cifi&eacute;, le total du nombre de tags sera donn&eacute;. </para> <para> Avec le second param&egrave;tre, vous pouvez limiter la recherche &agrave; un tag sp&eacute;cifique. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countattribute.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $attribute</parameter> - si aucun nom de tag n'est sp&eacute;cifi&eacute;, tous les tags seront compt&eacute;s. </para> </listitem> <listitem> <para> <parameter>string $tagname</parameter> - ceci vous permet de limiter la recherche &agrave; un tag. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countattribute.return"> &title.returns; <para> <emphasis>integer</emphasis> : nombre d'occurences de l'attribut </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countattribute.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countattribute.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.counttag"><function>XML_Statistics::countTag</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/countdatachunks.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/countdatachunks.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/countdatachunks.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.countdatachunks"> <refnamediv> <refname><function>XML_Statistics::countDataChunks</function></refname> <refpurpose>compte le nombre d'occurences d'un block de donn&eacute;es</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::countDataChunks</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.desc"> &title.desc; <para> Ceci est influenc&eacute; par l'option '<literal>ignoreWhitespace</literal>'. En outre, un nouveau gros morceaux est compt&eacute; lorsque le parseur trouve un retour &agrave; la ligne ou une entit&eacute; interne. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.param"> &title.param; <para> Cette m&eacute;thode n'accepte aucun autre param&egrave;tre. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.return"> &title.returns; <para> <emphasis>integer</emphasis> : nombre de gros blocks dans le document </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.getcdatalength"><function>XML_Statistics::getCDataLength</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/countexternalentity.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/countexternalentity.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/countexternalentity.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.countexternalentity"> <refnamediv> <refname><function>XML_Statistics::countExternalEntity</function></refname> <refpurpose>compte le nombre d'occurences d'une entit&eacute; externe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::countExternalEntity</function></funcdef> <paramdef>string <parameter><optional>$name = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.countexternalentity.desc"> &title.desc; <para> Compte le nombre de fois qu'une entit&eacute; externe est utilis&eacute; dans le document. Si le nom n'est pas sp&eacute;cifi&eacute;, le nombre total d'entit&eacute;s externes sera retourn&eacute;. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countexternalentity.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $name</parameter> - nom de l'entit&eacute; externe, sans '&amp;' ni ';'. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countexternalentity.return"> &title.returns; <para> <emphasis>integer</emphasis> : nombre d'occurences de l'entit&eacute; externe. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countexternalentity.note"> &title.note; &note.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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/countpi.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/countpi.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/countpi.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.countpi"> <refnamediv> <refname><function>XML_Statistics::countPI</function></refname> <refpurpose>compte le nombre d'occurences d'une instruction sp&eacute;cifique</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::countPI</function></funcdef> <paramdef>string <parameter><optional>$target = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.countpi.desc"> &title.desc; <para> Compte le nombre d'occurences qu'une instruction sp&eacute;cifique (e.g. &lt;?php) est utilis&eacute;e dans un document. La cible est le 'langage' de l'instruction. Vous n'avez qu'&agrave; fournir le nom, sans le point d'interrogation principal. Si aucune cible n'est sp&eacute;cifi&eacute;, la m&eacute;thode comptera le nombre total d'instructions. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countpi.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $target</parameter> - cible du block d'instruction </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countpi.return"> &title.returns; <para> <emphasis>integer</emphasis> : nombre d'occurence de l'instruction </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countpi.note"> &title.note; &note.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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/counttagsindepth.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/counttagsindepth.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/counttagsindepth.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.counttagsindepth"> <refnamediv> <refname><function>XML_Statistics::countTagsInDepth</function></refname> <refpurpose>compte les tags dans une certaine profondeur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::counttagsindepth</function></funcdef> <paramdef>integer <parameter>$depth</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttagsindepth.desc"> &title.desc; <para> Le tag d&eacute;sir&eacute; peut &ecirc;tre &agrave; une certaine profondeur. Le tag racine est &agrave; la profondeur z&eacute;ro. En comptant les tas en amont dans une profondeur, vous pouvez compter le nombre de jeux d'enregistrements dans le document XML. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttagsindepth.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>integer $depth</parameter> - profondeur du tag (0 est le tag racine) </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttagsindepth.return"> &title.returns; <para> <emphasis>integer</emphasis> : nmbre de tabs dans la profondeur </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttagsindepth.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttagsindepth.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.counttag"><function>XML_Statistics::countTag</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/counttag.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/counttag.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/counttag.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.counttag"> <refnamediv> <refname><function>XML_Statistics::countTag</function></refname> <refpurpose>compte les occurences d'un tag</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::countTag</function></funcdef> <paramdef>string <parameter><optional>$tagname = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttag.desc"> &title.desc; <para> Compte le nombre d'occurences d'un certain tag d'un document XML. Si aucun tag n'est sp&eacute;cifi&eacute;, le nombre total de tags sera retourn&eacute;. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttag.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $tagname</parameter> - nom du tag &agrave; compter </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttag.return"> &title.returns; <para> <emphasis>integer</emphasis> : occurences de ce tag </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttag.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.counttag.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.counttagsindepth"><function>XML_Statistics::countTagsInDepth</function></link>, <link linkend="package.xml.xml-statistics.xml-statistics.countattribute"><function>XML_Statistics::countAttribute</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/getcdatalength.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/getcdatalength.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/getcdatalength.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.getcdatalength"> <refnamediv> <refname><function>XML_Statistics::getCDataLength</function></refname> <refpurpose>r&eacute;cup&egrave;re la longueur combin&eacute;e de toutes les sections cdata</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::getCDataLength</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.desc"> &title.desc; <para> Si vous avez besoin de savoir combien de caract&egrave;res vous avez entre deux tags, c'est la bonne m&eacute;thode. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.param"> &title.param; <para> Cette m&eacute;thode n'accepte aucun param&egrave;tre. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.return"> &title.returns; <para> <emphasis>integer</emphasis> : longueur totale de tous les blocks cdata du document XML. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.see"> &title.see; <para> <link linkend="package.xml.xml-statistics.xml-statistics.countdatachunks"><function>XML_Statistics::countDataChunks</function></link> </para> </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/co.php/peardoc/fr/package/xml/xml-statistics/xml-statistics/getmaxdepth.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/xml-statistics/getmaxdepth.xml +++ peardoc/fr/package/xml/xml-statistics/xml-statistics/getmaxdepth.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.xml-statistics.getmaxdepth"> <refnamediv> <refname><function>XML_Statistics::getMaxDepth</function></refname> <refpurpose>r&eacute;cup&egrave;re la profondeur maximale</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Statistics.php'; </funcsynopsisinfo> <funcprototype> <funcdef>integer <function>XML_Statistics::getMaxDepth</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-statistics.xml-statistics.getmaxdepth.desc"> &title.desc; <para> Le degr&egrave;s maximal d'un document vous donne la profondeur maximale des tags dans un document XML. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getmaxdepth.param"> &title.param; <para> Cette m&eacute;thode n'accepte aucun param&egrave;tre. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getmaxdepth.return"> &title.returns; <para> <emphasis>integer</emphasis> : profondeur maximale. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getmaxdepth.note"> &title.note; &note.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/co.php/peardoc/fr/package/xml/xml-statistics/example.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/example.xml +++ peardoc/fr/package/xml/xml-statistics/example.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.example"> <refnamediv> <refname>Exemple</refname> <refpurpose>Exemple d'utilisation de XML_Statistics</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-statistics.example.example1"> <title>Exemple d'utilisation</title> <simpara> Les exemples suivants montrent comment XML_Statistics peut &ecirc;tre utilis&eacute; pour analyser un document. </simpara> <example> <title>Exemple basique</title> <programlisting role="php"> <![CDATA[ require_once "XML/Statistics.php"; $stat = new XML_Statistics(array("ignoreWhitespace" => true)); $result = $stat->analyzeFile("example.xml"); if ($stat->isError($result)) { die("Erreur : " . $result->getMessage()); } // total des tags en amont : echo "Total des tags: " . $stat->countTag()."<br />"; // compte les attributs 'title' en amout, dans tous les tags : echo "Nombre d'occurences d'attributs title : " . $stat->countAttribute("title")."<br />"; // compte les attributs 'title' en amont, uniquement dans les tags <section> echo "Nombre d'occurences d'attributs title dans le tag section : " . $stat->countAttribute("title", "section")."<br />"; // compte le nombre total de tags dans la profondeur 4 echo "Nombre de tags en amont pour la profondeur 4 : " . $stat->countTagsInDepth(4)."<br />"; echo "Nombre d'occurences de blocks PHP : " . $stat->countPI("PHP")."<br />"; echo "Nombre d'occurences d'entit&eacute;s externes 'bar': " . $stat->countExternalEntity("bar")."<br />"; echo "Gros morceaux de donn&eacute;es: " . $stat->countDataChunks()."<br />"; echo "Longueur de tous les gros morceaux de donn&eacute;es : " . $stat->getCDataLength()."<br />"; ]]> </programlisting> </example> </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/co.php/peardoc/fr/package/xml/xml-statistics/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/xml/xml-statistics/intro.xml +++ peardoc/fr/package/xml/xml-statistics/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.xml.xml-statistics.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction &agrave; XML_Statistics</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-statistics.intro.refsect1"> <title>Introduction &agrave; XML_Statistics</title> <para> XML_Statistics est un paquet qui vous permet d'analyser des document XML qui peuvent &ecirc;tre des fichiers ou des cha&icirc;nes. </para> <para> XML_Statistics est capable de compter les tags, les attributs, ex&eacute;cuter des instructions, de g&eacute;rer les entit&eacute;s externes ainsi que les blocks cdata. En outre, vous pouvez appliquer des filtres donc, vous pourrez compter uniquement les tags dans une profondeur sp&eacute;cifi&eacute;e ou uniquement les attributs d'un tag sp&eacute;cifique. </para> </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 -->
« previous php.pear.doc (#4721) next »