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: | Yannick TORRES | 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; ¬e.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î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îne. Celà est très utile si vos documents sont créés à la volé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; ¬e.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; ¬e.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écifié, le total du nombre de tags sera donné. </para> <para> Avec le second paramètre, vous pouvez limiter la recherche à un tag spé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écifié, tous les tags seront comptés. </para> </listitem> <listitem> <para> <parameter>string $tagname</parameter> - ceci vous permet de limiter la recherche à 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; ¬e.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é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é par l'option '<literal>ignoreWhitespace</literal>'. En outre, un nouveau gros morceaux est compté lorsque le parseur trouve un retour à la ligne ou une entité interne. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.param"> &title.param; <para> Cette méthode n'accepte aucun autre paramè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; ¬e.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é 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é externe est utilisé dans le document. Si le nom n'est pas spécifié, le nombre total d'entités externes sera retourné. </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é externe, sans '&' 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é externe. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countexternalentity.note"> &title.note; ¬e.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é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écifique (e.g. <?php) est utilisée dans un document. La cible est le 'langage' de l'instruction. Vous n'avez qu'à fournir le nom, sans le point d'interrogation principal. Si aucune cible n'est spécifié, la mé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; ¬e.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ésiré peut être à une certaine profondeur. Le tag racine est à la profondeur zé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; ¬e.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écifié, le nombre total de tags sera retourné. </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 à 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; ¬e.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écupère la longueur combiné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ères vous avez entre deux tags, c'est la bonne méthode. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.param"> &title.param; <para> Cette méthode n'accepte aucun paramè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; ¬e.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écupè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è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éthode n'accepte aucun paramè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; ¬e.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 être utilisé 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és externes 'bar': " . $stat->countExternalEntity("bar")."<br />"; echo "Gros morceaux de données: " . $stat->countDataChunks()."<br />"; echo "Longueur de tous les gros morceaux de donné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 à XML_Statistics</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-statistics.intro.refsect1"> <title>Introduction à XML_Statistics</title> <para> XML_Statistics est un paquet qui vous permet d'analyser des document XML qui peuvent être des fichiers ou des chaînes. </para> <para> XML_Statistics est capable de compter les tags, les attributs, exécuter des instructions, de gérer les entité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écifiée ou uniquement les attributs d'un tag spé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 -->
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; ¬e.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î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îne. Celà est très utile si vos documents sont créés à la volé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; ¬e.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; ¬e.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écifié, le total du nombre de tags sera donné. </para> <para> Avec le second paramètre, vous pouvez limiter la recherche à un tag spé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écifié, tous les tags seront comptés. </para> </listitem> <listitem> <para> <parameter>string $tagname</parameter> - ceci vous permet de limiter la recherche à 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; ¬e.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é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é par l'option '<literal>ignoreWhitespace</literal>'. En outre, un nouveau gros morceaux est compté lorsque le parseur trouve un retour à la ligne ou une entité interne. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countdatachunks.param"> &title.param; <para> Cette méthode n'accepte aucun autre paramè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; ¬e.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é 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é externe est utilisé dans le document. Si le nom n'est pas spécifié, le nombre total d'entités externes sera retourné. </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é externe, sans '&' 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é externe. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.countexternalentity.note"> &title.note; ¬e.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é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écifique (e.g. <?php) est utilisée dans un document. La cible est le 'langage' de l'instruction. Vous n'avez qu'à fournir le nom, sans le point d'interrogation principal. Si aucune cible n'est spécifié, la mé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; ¬e.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ésiré peut être à une certaine profondeur. Le tag racine est à la profondeur zé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; ¬e.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écifié, le nombre total de tags sera retourné. </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 à 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; ¬e.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écupère la longueur combiné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ères vous avez entre deux tags, c'est la bonne méthode. </para> </refsect1> <refsect1 id="package.xml.xml-statistics.xml-statistics.getcdatalength.param"> &title.param; <para> Cette méthode n'accepte aucun paramè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; ¬e.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écupè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è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éthode n'accepte aucun paramè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; ¬e.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 être utilisé 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és externes 'bar': " . $stat->countExternalEntity("bar")."<br />"; echo "Gros morceaux de données: " . $stat->countDataChunks()."<br />"; echo "Longueur de tous les gros morceaux de donné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 à XML_Statistics</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-statistics.intro.refsect1"> <title>Introduction à XML_Statistics</title> <para> XML_Statistics est un paquet qui vous permet d'analyser des document XML qui peuvent être des fichiers ou des chaînes. </para> <para> XML_Statistics est capable de compter les tags, les attributs, exécuter des instructions, de gérer les entité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écifiée ou uniquement les attributs d'un tag spé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 -->