cvs: phpdoc-fr /reference/tidy/functions ob-tidyhandler.xml tidy-access-count.xml tidy-clean-repair.xml tidy-config-count.xml tidy-construct.xml
tidy-diagnose.xml tidy-error-count.xml tidy-get-body.xml tidy-get-config.xml tidy-get-error-buffer.xml tidy-get-head.xml tidy-get-html-ver.xml
tidy-get-html.xml tidy-get-output.xml tidy-get-root.xml tidy-get-status.xml tidy-getopt.xml tidy-is-xhtml.xml tidy-is-xml.xml tidy-parse-file.xml
tidy-parse-string.xml tidy-warning-count.xml

From: Date: Mon, 15 Nov 2004 19:51:57 +0000
Subject: cvs: phpdoc-fr /reference/tidy/functions ob-tidyhandler.xml tidy-access-count.xml tidy-clean-repair.xml tidy-config-count.xml tidy-construct.xml
tidy-diagnose.xml tidy-error-count.xml tidy-get-body.xml tidy-get-config.xml tidy-get-error-buffer.xml tidy-get-head.xml tidy-get-html-ver.xml
tidy-get-html.xml tidy-get-output.xml tidy-get-root.xml tidy-get-status.xml tidy-getopt.xml tidy-is-xhtml.xml tidy-is-xml.xml tidy-parse-file.xml
tidy-parse-string.xml tidy-warning-count.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-3647@lists.php.net to get a copy of this message
yannick Mon Nov 15 14:51:57 2004 EDT Modified files: /phpdoc-fr/reference/tidy/functions ob-tidyhandler.xml tidy-access-count.xml tidy-clean-repair.xml tidy-config-count.xml tidy-construct.xml tidy-diagnose.xml tidy-error-count.xml tidy-get-body.xml tidy-get-config.xml tidy-get-error-buffer.xml tidy-get-head.xml tidy-get-html-ver.xml tidy-get-html.xml tidy-getopt.xml tidy-get-output.xml tidy-get-root.xml tidy-get-status.xml tidy-is-xhtml.xml tidy-is-xml.xml tidy-parse-file.xml tidy-parse-string.xml tidy-warning-count.xml Log: sync with EN

http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/ob-tidyhandler.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/tidy/functions/ob-tidyhandler.xml diff -u phpdoc-fr/reference/tidy/functions/ob-tidyhandler.xml:1.6 phpdoc-fr/reference/tidy/functions/ob-tidyhandler.xml:1.7 --- phpdoc-fr/reference/tidy/functions/ob-tidyhandler.xml:1.6 Tue Aug 10 15:37:58 2004 +++ phpdoc-fr/reference/tidy/functions/ob-tidyhandler.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.ob-tidyhandler"> <refnamediv> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-access-count.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-access-count.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-access-count.xml:1.8 phpdoc-fr/reference/tidy/functions/tidy-access-count.xml:1.9 --- phpdoc-fr/reference/tidy/functions/tidy-access-count.xml:1.8 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-access-count.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-access-count"> <refnamediv> @@ -14,7 +14,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>tidy_access_count</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> <function>tidy_access_count</function> retourne le nombre d'alertes d'accessibilité http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-clean-repair.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-clean-repair.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-clean-repair.xml:1.10 phpdoc-fr/reference/tidy/functions/tidy-clean-repair.xml:1.11 --- phpdoc-fr/reference/tidy/functions/tidy-clean-repair.xml:1.10 Wed Aug 11 05:00:47 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-clean-repair.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-clean-repair"> <refnamediv> @@ -15,7 +15,7 @@ &title.procedural; <methodsynopsis> <type>bool</type><methodname>tidy_clean_repair</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -23,7 +23,7 @@ <void /> </methodsynopsis> <para> - Cette fonction nettoie et répare la ressource <parameter>tidy</parameter> + Cette fonction nettoie et répare l'objet <parameter>object</parameter> Tidy passée en argument. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-config-count.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-config-count.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-config-count.xml:1.7 phpdoc-fr/reference/tidy/functions/tidy-config-count.xml:1.8 --- phpdoc-fr/reference/tidy/functions/tidy-config-count.xml:1.7 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-config-count.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-config-count"> <refnamediv> @@ -14,11 +14,12 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>tidy_config_count</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> <function>tidy_config_count</function> retourne le nombre d'erreurs - rencontrées dans une configuration donnée. + rencontrées dans la configuration de l'objet <parameter>object</parameter> + Tidy spécifié. </para> <para> <example> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-construct.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-construct.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.3 phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.4 --- phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.3 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-construct.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-construct"> <refnamediv> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-diagnose.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-diagnose.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-diagnose.xml:1.8 phpdoc-fr/reference/tidy/functions/tidy-diagnose.xml:1.9 --- phpdoc-fr/reference/tidy/functions/tidy-diagnose.xml:1.8 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-diagnose.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-diagnose"> <refnamediv> @@ -12,7 +12,7 @@ &title.procedural; <methodsynopsis> <type>bool</type><methodname>tidy_diagnose</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -20,11 +20,58 @@ <void /> </methodsynopsis> <para> - <function>tidy_diagnose</function> lance un diagnostic sur la ressource fournie. + <function>tidy_diagnose</function> lance un diagnostic sur l'objet + <parameter>object</parameter> Tidy donné, en ajoutant quelques informations + concernant le document dans la pile d'erreur. </para> <para> &return.success; </para> + <para> + <example> + <title>Exemple avec <function>tidy_diagnose</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$html = <<< HTML +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<p>paragraph</p> +HTML; + +$tidy = tidy_parse_string($html); +$tidy->CleanRepair(); + +// notez la différence entre les deux sorties +echo tidy_get_error_buffer($tidy) . "\n"; + +$tidy->diagnose(); +echo tidy_get_error_buffer($tidy); + +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +line 5 column 1 - Warning: <p> isn't allowed in <head> elements +line 5 column 1 - Warning: inserting missing 'title' element + +line 5 column 1 - Warning: <p> isn't allowed in <head> elements +line 5 column 1 - Warning: inserting missing 'title' element +Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN" +Info: Document content looks like XHTML 1.0 Strict +2 warnings, 0 errors were found! +]]> + </screen> + </example> + </para> + <para> + Voir aussi + <function>tidy_get_error_buffer</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-error-count.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-error-count.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-error-count.xml:1.8 phpdoc-fr/reference/tidy/functions/tidy-error-count.xml:1.9 --- phpdoc-fr/reference/tidy/functions/tidy-error-count.xml:1.8 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-error-count.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-error-count"> <refnamediv> @@ -14,7 +14,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>tidy_error_count</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> <function>tidy_error_count</function> retourne le nombre d'erreurs http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-body.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-body.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-body.xml:1.10 phpdoc-fr/reference/tidy/functions/tidy-get-body.xml:1.11 --- phpdoc-fr/reference/tidy/functions/tidy-get-body.xml:1.10 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-body.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-body"> <refnamediv> @@ -15,7 +15,7 @@ &title.procedural; <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_body</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-config.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-config.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-config.xml:1.8 phpdoc-fr/reference/tidy/functions/tidy-get-config.xml:1.9 --- phpdoc-fr/reference/tidy/functions/tidy-get-config.xml:1.8 Wed Aug 11 05:00:47 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-config.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.5 Maintainer: dams Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: dams Status: ready --> <refentry id="function.tidy-get-config"> <refnamediv> <refname>tidy_get_config</refname> @@ -13,7 +13,7 @@ &title.procedural; <methodsynopsis> <type>array</type><methodname>tidy_get_config</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -22,7 +22,8 @@ </methodsynopsis> <para> <function>tidy_get_config</function> retourne un tableau avec les - options de configuration utilisées par la ressource <parameter>tidy</parameter>. + options de configuration utilisées par l'objet <parameter>object</parameter> Tidy + spécifié. </para> <para> Pour une explication de chaque option, voyez <ulink @@ -51,7 +52,7 @@ Array ( [indent-spaces] => 2 - [wrap] => 68 + [wrap] => 200 [tab-size] => 8 [char-encoding] => 1 [input-encoding] => 3 @@ -131,6 +132,7 @@ [accessibility-check] => 0 [vertical-space] => [punctuation-wrap] => + [merge-divs] => 1 ) ]]> </screen> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-error-buffer.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-error-buffer.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-error-buffer.xml:1.7 phpdoc-fr/reference/tidy/functions/tidy-get-error-buffer.xml:1.8 --- phpdoc-fr/reference/tidy/functions/tidy-get-error-buffer.xml:1.7 Fri Jul 16 09:10:10 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-error-buffer.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-error-buffer"> <refnamediv> @@ -15,7 +15,7 @@ &title.procedural; <methodsynopsis> <type>string</type><methodname>tidy_get_error_buffer</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para>Style orienté objet (propriété) :</para> <classsynopsis> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-head.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-head.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-head.xml:1.10 phpdoc-fr/reference/tidy/functions/tidy-get-head.xml:1.11 --- phpdoc-fr/reference/tidy/functions/tidy-get-head.xml:1.10 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-head.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-head"> <refnamediv> @@ -14,7 +14,7 @@ &title.procedural; <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_head</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -22,7 +22,7 @@ <void /> </methodsynopsis> <para> - <function>tidy_get_head</function> Retourne un objet TidyNode à partir de + <function>tidy_get_head</function> retourne un objet tidyNode à partir de la balise &lt;head&gt;. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-html-ver.xml?r1=1.14&r2=1.15&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-html-ver.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-html-ver.xml:1.14 phpdoc-fr/reference/tidy/functions/tidy-get-html-ver.xml:1.15 --- phpdoc-fr/reference/tidy/functions/tidy-get-html-ver.xml:1.14 Fri Aug 20 11:56:03 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-html-ver.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-html-ver"> <refnamediv> @@ -14,7 +14,7 @@ &title.procedural; <methodsynopsis> <type>int</type><methodname>tidy_get_html_ver</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -23,7 +23,7 @@ </methodsynopsis> <para> <function>tidy_get_html_ver</function> retourne la version détectée du code HTML - pour la ressource <parameter>tidy</parameter>. + pour l'objet <parameter>object</parameter> Tidy spécifié. </para> <warning> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-html.xml?r1=1.12&r2=1.13&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-html.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-html.xml:1.12 phpdoc-fr/reference/tidy/functions/tidy-get-html.xml:1.13 --- phpdoc-fr/reference/tidy/functions/tidy-get-html.xml:1.12 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-html.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.9 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-html"> <refnamediv> @@ -14,7 +14,7 @@ &title.procedural; <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_html</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -22,7 +22,7 @@ <void /> </methodsynopsis> <para> - <function>tidy_get_html</function> retourne un objet TidyNode commençant à + <function>tidy_get_html</function> retourne un objet tidyNode commençant à la balise &lt;html&gt;. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-getopt.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-getopt.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-getopt.xml:1.9 phpdoc-fr/reference/tidy/functions/tidy-getopt.xml:1.10 --- phpdoc-fr/reference/tidy/functions/tidy-getopt.xml:1.9 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-getopt.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-getopt"> <refnamediv> @@ -12,7 +12,7 @@ &title.procedural; <methodsynopsis> <type>mixed</type><methodname>tidy_getopt</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> <methodparam><type>string</type><parameter>option</parameter></methodparam> </methodsynopsis> &title.oop; @@ -22,8 +22,8 @@ </methodsynopsis> <para> <function>tidy_getopt</function> retourne la valeur de l'option spécifié - <parameter>option</parameter> pour le document - <parameter>tidy</parameter> spécifié. Le type retourné dépend du + <parameter>option</parameter> pour l'objet + <parameter>object</parameter> spécifié. Le type retourné dépend du type de l'option spécifié <parameter>option</parameter>. Vous pouvez trouver une liste de chaque option de configuration ainsi que leur type à : <ulink url="&url.tidy.conf;">&url.tidy.conf;</ulink>. http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-output.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-output.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-output.xml:1.7 phpdoc-fr/reference/tidy/functions/tidy-get-output.xml:1.8 --- phpdoc-fr/reference/tidy/functions/tidy-get-output.xml:1.7 Wed Jul 21 08:47:59 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-output.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-output"> <refnamediv> @@ -13,7 +13,7 @@ <title>Description</title> <methodsynopsis> <type>string</type><methodname>tidy_get_output</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> <function>tidy_get_output</function> retourne une chaîne avec le HTML http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-root.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-root.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-root.xml:1.9 phpdoc-fr/reference/tidy/functions/tidy-get-root.xml:1.10 --- phpdoc-fr/reference/tidy/functions/tidy-get-root.xml:1.9 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-root.xml Mon Nov 15 14:51:51 2004 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-root"> <refnamediv> <refname>tidy_get_root</refname> <refpurpose> - Retourne un objet TidyNode représentant la racine du document HTML + Retourne un objet tidyNode représentant la racine du document HTML </refpurpose> </refnamediv> <refsect1> @@ -14,17 +14,66 @@ &title.procedural; <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_root</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> <type>tidyNode</type><methodname>tidy->root</methodname> <void /> </methodsynopsis> + <para> + <function>tidy_get_root</function> retourne un objet tidyNode + représentant la racine de l'arbre Tidy analysé. + </para> + <para> + <example> + <title>Affichage des noeuds</title> + <programlisting role="php"> +<![CDATA[ +<?php - &warn.undocumented.func; - &note.tidy.ze2; +$html = <<< HTML +<html><body> +<p>paragraphe</p> +<br/> + +</body></html> +HTML; + +$tidy = tidy_parse_string($html); +dump_nodes($tidy->root(), 1); + + +function dump_nodes($node, $indent) { + + if($node->hasChildren()) { + foreach($node->child as $child) { + echo str_repeat('.', $indent*2) . ($child->name ? $child->name : '"'.$child->value.'"'). "\n"; + + dump_nodes($child, $indent+1); + } + } +} +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +..html +....head +......title +....body +......p +........"paragraphe" +......br +]]> + </screen> + </example> + </para> + + &note.tidy.ze2; </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-status.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-status.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-status.xml:1.10 phpdoc-fr/reference/tidy/functions/tidy-get-status.xml:1.11 --- phpdoc-fr/reference/tidy/functions/tidy-get-status.xml:1.10 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-status.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-status"> <refnamediv> @@ -14,7 +14,7 @@ &title.procedural; <methodsynopsis> <type>int</type><methodname>tidy_get_status</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -22,8 +22,8 @@ <void /> </methodsynopsis> <para> - <function>tidy_get_status</function> retourne le statut de la ressource - <parameter>tidy</parameter> spécifiée. Elle retourne 0 si aucune + <function>tidy_get_status</function> retourne le statut de l'objet + <parameter>object</parameter> Tidy spécifié. Elle retourne 0 si aucune erreur/avertissement n'a été rencontrée, 1 pour les avertissements d'accessibilité, et 2 pour les erreurs. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-is-xhtml.xml?r1=1.12&r2=1.13&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-is-xhtml.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-is-xhtml.xml:1.12 phpdoc-fr/reference/tidy/functions/tidy-is-xhtml.xml:1.13 --- phpdoc-fr/reference/tidy/functions/tidy-is-xhtml.xml:1.12 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-is-xhtml.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-is-xhtml"> <refnamediv> @@ -14,7 +14,7 @@ &title.procedural; <methodsynopsis> <type>bool</type><methodname>tidy_is_xhtml</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -23,7 +23,7 @@ </methodsynopsis> <para> <function>tidy_is_xhtml</function> retourne &true; si l'objet - spécifié par <parameter>tidy</parameter> est un document XHTML ou &false; sinon. + <parameter>object</parameter> Tidy est un document XHTML ou &false; sinon. </para> <warning> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-is-xml.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-is-xml.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-is-xml.xml:1.10 phpdoc-fr/reference/tidy/functions/tidy-is-xml.xml:1.11 --- phpdoc-fr/reference/tidy/functions/tidy-is-xml.xml:1.10 Sun Nov 14 10:02:38 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-is-xml.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-is-xml"> <refnamediv> @@ -14,7 +14,7 @@ &title.procedural; <methodsynopsis> <type>bool</type><methodname>tidy_is_xml</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> &title.oop; <methodsynopsis> @@ -22,8 +22,8 @@ <void /> </methodsynopsis> <para> - <function>tidy_is_xml</function> retourne &true; si l'objet spécifié par - <parameter>tidy</parameter> est un document XML générique (non HTML/XHTML) + <function>tidy_is_xml</function> retourne &true; si l'objet + <parameter>object</parameter> Tidy est un document XML générique (non HTML/XHTML) ou &false; sinon. </para> <warning> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-parse-file.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-parse-file.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-parse-file.xml:1.9 phpdoc-fr/reference/tidy/functions/tidy-parse-file.xml:1.10 --- phpdoc-fr/reference/tidy/functions/tidy-parse-file.xml:1.9 Wed Aug 11 05:00:47 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-parse-file.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-parse-file"> <refnamediv> @@ -13,7 +13,7 @@ <title>Description</title> &title.procedural; <methodsynopsis> - <type>resource</type><methodname>tidy_parse_file</methodname> + <type>tidy</type><methodname>tidy_parse_file</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.11 phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.12 --- phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.11 Wed Aug 11 05:00:47 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.6 Maintainer: dams Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.7 Maintainer: dams Status: ready --> <refentry id="function.tidy-parse-string"> <refnamediv> <refname>tidy_parse_string</refname> @@ -12,7 +12,7 @@ <title>Description</title> &title.procedural; <methodsynopsis> - <type>resource</type><methodname>tidy_parse_string</methodname> + <type>tidy</type><methodname>tidy_parse_string</methodname> <methodparam><type>string</type><parameter>input</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-warning-count.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-warning-count.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-warning-count.xml:1.7 phpdoc-fr/reference/tidy/functions/tidy-warning-count.xml:1.8 --- phpdoc-fr/reference/tidy/functions/tidy-warning-count.xml:1.7 Fri Aug 20 11:47:04 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-warning-count.xml Mon Nov 15 14:51:51 2004 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-warning-count"> <refnamediv> @@ -13,7 +13,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>tidy_warning_count</methodname> - <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> + <methodparam><type>tidy</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> <function>tidy_warning_count</function> retourne le nombre d'avertissements
« previous php.doc.fr (#3647) next »