cvs: phpdoc-fr /reference/tidy configure.xml /reference/tidy/functions tidy-get-output.xml tidy-get-status.xml

From: Date: Thu, 11 Mar 2004 12:59:47 +0000
Subject: cvs: phpdoc-fr /reference/tidy configure.xml /reference/tidy/functions tidy-get-output.xml tidy-get-status.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2029@lists.php.net to get a copy of this message
didou Thu Mar 11 07:59:47 2004 EDT Modified files: /phpdoc-fr/reference/tidy configure.xml /phpdoc-fr/reference/tidy/functions tidy-get-output.xml tidy-get-status.xml Log: sync with en http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/configure.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/tidy/configure.xml diff -u phpdoc-fr/reference/tidy/configure.xml:1.4 phpdoc-fr/reference/tidy/configure.xml:1.5 --- phpdoc-fr/reference/tidy/configure.xml:1.4 Thu Mar 4 08:34:01 2004 +++ phpdoc-fr/reference/tidy/configure.xml Thu Mar 11 07:59:46 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <section id="tidy.installation"> &reftitle.install; @@ -22,7 +22,7 @@ <para> Vous pouvez aussi télécharger l'archive tar.gz et installer tidy à la main : <example> - <title>installation de tidy à la main</title> + <title>Installation de tidy à la main pour PHP 4.3.x</title> <programlisting role="shell"> <![CDATA[ gunzip tidy-xxx.tgz @@ -38,6 +38,10 @@ Les utilisateurs de windows peuvent télécharger la dll de l'extension <filename>php_tidy.dll</filename> à partir de <ulink url="&url.pecl.get.win;">&url.pecl.get.win;</ulink>. </para> + <para> + En &php; 5 vous avez uniquement besoin de compiler en utilisant l'option + <option role="configure">--with-tidy</option>. + </para> </section> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-output.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-output.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-output.xml:1.5 phpdoc-fr/reference/tidy/functions/tidy-get-output.xml:1.6 --- phpdoc-fr/reference/tidy/functions/tidy-get-output.xml:1.5 Thu Mar 4 08:34:01 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-output.xml Thu Mar 11 07:59:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-output"> <refnamediv> @@ -13,11 +13,46 @@ <title>Description</title> <methodsynopsis> <type>string</type><methodname>tidy_get_output</methodname> - <void/> + <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> </methodsynopsis> + <para> + <function>tidy_get_output</function> retourne une chaîne avec le HTML + réparé. + </para> + <para> + <example> + <title>Exemple avec <function>tidy_get_output</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$html = '<p>paragraphe</i>'; +$tidy = tidy_parse_string($html); + +$tidy->CleanRepair(); - &warn.undocumented.func; - +echo tidy_get_output($tidy); +?> +]]> + </programlisting> + <para> + L'exemple va afficher : + </para> + <screen> +<![CDATA[ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<title></title> +</head> +<body> +<p>paragraphe</p> +</body> +</html> +]]> + </screen> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/tidy/functions/tidy-get-status.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/tidy/functions/tidy-get-status.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-get-status.xml:1.5 phpdoc-fr/reference/tidy/functions/tidy-get-status.xml:1.6 --- phpdoc-fr/reference/tidy/functions/tidy-get-status.xml:1.5 Thu Mar 4 08:34:01 2004 +++ phpdoc-fr/reference/tidy/functions/tidy-get-status.xml Thu Mar 11 07:59:47 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.tidy-get-status"> <refnamediv> @@ -13,11 +13,34 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>tidy_get_status</methodname> - <void/> + <methodparam><type>resource</type><parameter>tidy</parameter></methodparam> </methodsynopsis> + <para> + <function>tidy_get_status</function> retourne le status de la ressource + <parameter>tidy</parameter> spécifiée. Elle retourne 0 si aucune + erreur/avertissement n'a été rencontrée, 1 pour les avertissements + d'accéssibilité, et 2 pour les erreurs. + </para> + <para> + <example> + <title>Exemple avec <function>tidy_get_status</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$html = '<p>paragraphe</i>'; +$tidy = tidy_parse_string($html); + +$html2 = '<bogus>test</bogus>'; +$tidy2 = tidy_parse_string($html2); + +echo tidy_get_status($tidy); //1 - &warn.undocumented.func; - +echo tidy_get_status($tidy2); //2 +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry>

« previous php.doc.fr (#2029) next »