cvs: peardoc /fr/package/php/phpdoc doccomments.xml intro.xml keywordauthor.xml keywordconst.xml keyworddeprecated.xml keywordglobal.xml
keywordpackage.xml keywordparam.xml keywordreturn.xml keywordsee.xml keywordsince.xml keywordstatic.xml keywordvar.xml requirements.xml
| From: | Yannick Torres | Date: | Fri, 19 Nov 2004 12:22:44 +0000 |
| Subject: | cvs: peardoc /fr/package/php/phpdoc doccomments.xml intro.xml keywordauthor.xml keywordconst.xml keyworddeprecated.xml keywordglobal.xml keywordpackage.xml keywordparam.xml keywordreturn.xml keywordsee.xml keywordsince.xml keywordstatic.xml keywordvar.xml requirements.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5144@lists.php.net to get a copy of this message | ||
yannick Fri Nov 19 07:22:44 2004 EDT
Added files:
/peardoc/fr/package/php/phpdoc doccomments.xml intro.xml
keywordauthor.xml keywordconst.xml
keyworddeprecated.xml
keywordglobal.xml keywordpackage.xml
keywordparam.xml keywordreturn.xml
keywordsee.xml keywordsince.xml
keywordstatic.xml keywordvar.xml
requirements.xml
Log:
initial translation
http://cvs.php.net/co.php/peardoc/fr/package/php/phpdoc/doccomments.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/doccomments.xml +++ peardoc/fr/package/php/phpdoc/doccomments.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.doccomments"> <refnamediv> <refname>Commentaires</refname> <refpurpose> la structure d'un commentaire de documentation </refpurpose> </refnamediv> <refsect1 id="package.php.phpdoc.doccomments.format"> <title>Format d'un commentaire de documentation</title> <para> Le format général d'un commentaire de documentation est indépendant de l'élément à décrire. Assurez-vous qu'il n'y a rien entre le commentaire et l'élément, mise à par des lignes vides. </para> <para> <programlisting role="php"> <![CDATA[ /** * description courte - une ligne * * description détaillée (optionnel) * sur plusieurs lignes, les lignes vides * entre les parties de la description ne sont * pas nécessaire * * @keyword parameters_of_keyword * @keyword la séquence arbitraire de mot clé */ [élément à décrire] ]]> </programlisting> </para> <para> Types d'éléments <itemizedlist> <listitem> <para><parameter>class</parameter></para> </listitem> <listitem> <para><parameter>function</parameter></para> </listitem> <listitem> <para><parameter>var</parameter></para> </listitem> <listitem> <para><parameter>define</parameter></para> </listitem> <listitem> <para><parameter>include/require</parameter></para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.shortdesc"> <title>Partie : description courte</title> <para> Cette ligne doitdécrire ce que l'élément contient ou ne contient pas. Exemple pour une variable : "Compte les articles", pour une fonction : "Crée un lien hypertexte" ou pour une classe : "fournit les fonctions PDF-related". Cette ligne est normalement rendu dans un index de page ou dans une table de contenu. </para> <note> <para> Une 'ligne' signifie n'importe quel caractère entre le premier <parameter>*</parameter> et le caractère de nouvelle ligne. </para> </note> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.detaildesc"> <title>Partie : description détaillée</title> <para> Dans cette partie, vous pouvez écrire plus d'informations concernant votre élément. Notez que les paramètres, les valeurs retournées ainsi que les liens entre les éléments sont couverts par la section <literal>keyword</literal>. Quelques tags HTML sont autorisés : <itemizedlist> <listitem> <para><parameter><a></parameter></para> </listitem> <listitem> <para><parameter><i></parameter></para> </listitem> <listitem> <para><parameter><b></parameter></para> </listitem> <listitem> <para><parameter><pre></parameter></para> </listitem> <listitem> <para><parameter><ul></parameter></para> </listitem> <listitem> <para><parameter><li></parameter></para> </listitem> <listitem> <para><parameter><br></parameter></para> </listitem> <listitem> <para><parameter><code></parameter></para> </listitem> </itemizedlist> Mais faites attention, ces tags peuvent être ignorés par des rendus non-HTML de la classe <classname>PHPDoc</classname>. </para> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.keyword"> <title>Partie : <literal>Keyword</literal></title> <para> Le format d'une ligne <literal>Keyword</literal> est simple : <programlisting role="php"> * @keyword <parameters> </programlisting> </para> <para> Tous les <literal>Keyword</literal>s ne sont pas autorisés pour tous les éléments. Lisez la section de portée pour savoir quand un <literal>Keyword</literal> est permet ou non. </para> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[ /** * Classe panier pour mon site marchand * * Panier est un répository d'instances * de la classe Article... * * @autor Alexander Merz <alexander.merz@php.net>; * @version 1.6 * @access public * @package MyWebShop */ class Panier { /** * contient les articles * @var array * @see add(), mod(), del() */ var $articles = array() ; /** * Ajout d'un article. * * Une instance d'un article donné et la somme est * stocké dans le Panier * * @param object Article $article article to add * @param integer $count count of the article * @return boolean retourne false, si une erreur survient * @access public * @see $articles */ function add( $article, $count = 1) { ... } } ]]> </programlisting> </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/php/phpdoc/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/intro.xml +++ peardoc/fr/package/php/phpdoc/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.introduction"> <refnamediv> <refname>Introduction</refname> <refpurpose> But </refpurpose> </refnamediv> <refsect1 id="package.php.phpdoc.introduction.whatisphpdoc"> <title>Qu'est-ce PHPDoc?</title> <para> PHPDoc est un utilitaire pour générer une API documentation d'applications PHP depuis le code source. Il lit les informations depuis le source et récupère les informations depuis des commentaires spéciaux PHPDoc pour créer une documentation de fonctions, de classes, de package.php et de modules. </para> <para> Allez sur <ulink url="&url.phpdoc;">&url.phpdoc;</ulink> pour en savoir plus ainsi que pour une démonstration. </para> <para> Le projet PEAR est documenté en utilisant les commentaires PHPDoc. Si vous voulez voir des exemples de ces commentaires, vous n'avez qu'à regarder les sources du projet PEAR. </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/php/phpdoc/keywordauthor.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordauthor.xml +++ peardoc/fr/package/php/phpdoc/keywordauthor.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordauthor"> <refnamediv> <refname>@author</refname> <refpurpose> décrit l'auteur </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@author</command> <arg choice="req"> <option>Name</option> </arg> <arg choice="opt"> <option><email></option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordauthor.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordauthor.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @author L'homme invisible * @author Alexander Merz <alexmerz@php.net>.... ]]> </programlisting> </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/php/phpdoc/keywordconst.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordconst.xml +++ peardoc/fr/package/php/phpdoc/keywordconst.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordconst"> <refnamediv> <refname>@const</refname> <refpurpose> décrit des constantes créées par <function>define</function> </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@const</command> <arg choice="req"> <option>label</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordconst.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordconst.example"> <title>Example</title> <para> <programlisting role="php"> <![CDATA[.... /** * nombre maximal de clients autorisés en même temps * @const MAX_CLIENTS maximum clients */ define("MAX_CLIENTS", 1000, true); /** * nombre maximal de requête par client * @const MAX_REQUESTS_PER_CLIENT */ define("MAX_REQUESTS_PER_CLIENT", 5); .... ]]> </programlisting> </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/php/phpdoc/keyworddeprecated.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keyworddeprecated.xml +++ peardoc/fr/package/php/phpdoc/keyworddeprecated.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keyworddeprecated"> <refnamediv> <refname>@deprecated</refname> <refpurpose> marque des éléments de l'API dépréciés </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@deprecated</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keyworddeprecated.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keyworddeprecated.example"> <title>Exemple</title> <para> Notez que le format de <parameter>label</parameter> n'est pas défini par PHPDoc. <programlisting role="php"> <![CDATA[.... * @deprecated Rev. 1.8 - 03/10/2001.... * @deprecated 03-10-2001.... ]]> </programlisting> </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/php/phpdoc/keywordglobal.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordglobal.xml +++ peardoc/fr/package/php/phpdoc/keywordglobal.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordglobal"> <refnamediv> <refname>@global</refname> <refpurpose> variables globales utilisées dans le document </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@global</command> <arg choice="req"> <option>type|objectdef</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordglobal.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordglobal.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @global array $files list of file * @global integer $errcode code d'erreur * @global string $errmsg message d'erreur * @global object Instance système de fichiers $fs de la classe FS */ function fooBar() { global $files, $errcode, $errmsg, $fs; .... ]]> </programlisting> </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/php/phpdoc/keywordpackage.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordpackage.xml +++ peardoc/fr/package/php/phpdoc/keywordpackage.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordpackage"> <refnamediv> <refname>@package</refname> <refpurpose> groupe de classes </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@package</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordpackage.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordpackage.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @package Net.... ]]> </programlisting> </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/php/phpdoc/keywordparam.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordparam.xml +++ peardoc/fr/package/php/phpdoc/keywordparam.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordparam"> <refnamediv> <refname>@param</refname> <refpurpose> décrit un paramètre d'une fonction </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@param</command> <arg choice="req"> <option>type|objectdefinition</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordparam.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordparam.note"> <title>Note</title> <para> PHPDoc détecte les valeurs par défaut et les documente depuis la source. </para> </refsect1> <refsect1 id="packages.phpdoc.keywordparam.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @param string $name nom de la personne * (nom complet !) * @param integer $age âge de la personne * @param float $size taille de la personne * @param object Adresse $adr addresse de la personne * @param array $childs noms des enfants * @param boolean $job si true, personne a un travail * @param boolean $gender utilisez FEMALE * ou MALE */ function person($name, $age, $size, $adr, $childs, $job=true, $gender=FEMALE) {.... ]]> </programlisting> </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/php/phpdoc/keywordreturn.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordreturn.xml +++ peardoc/fr/package/php/phpdoc/keywordreturn.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordreturn"> <refnamediv> <refname>@return</refname> <refpurpose> décrit la valeur retournée par une fonction </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@return</command> <arg choice="req"> <option>type|objectdefinition</option> </arg> <arg choice="opt"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordreturn.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordreturn.note"> <title>Note</title> <para> Si aucun mot clé <parameter>@return</parameter> n'est donné, PHPDoc utilisera void. Le mot clé est ignoré, si (oublié-)utilisé dans la fonction constructrice. </para> </refsect1> <refsect1 id="packages.phpdoc.keywordreturn.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @return mixed un objet PEAR_Error ou un entier * @return boolean true, si succès.... ]]> </programlisting> </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/php/phpdoc/keywordsee.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordsee.xml +++ peardoc/fr/package/php/phpdoc/keywordsee.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordsee"> <refnamediv> <refname>@see</refname> <refpurpose> marqueur de référence vers d'autres éléments </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@see</command> <arg choice="req"> <option>element</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordsee.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordsee.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @see $article, Article::edit() * @see delete(), print().... ]]> </programlisting> </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/php/phpdoc/keywordsince.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordsince.xml +++ peardoc/fr/package/php/phpdoc/keywordsince.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordsince"> <refnamediv> <refname>@since</refname> <refpurpose> marqueur renseignant la date à laquelle les éléments de l'API ont été ajoutées </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@since</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordsince.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordsince.example"> <title>Exemple</title> <para> Notez que le format de <parameter>label</parameter> n'est pas défini par PHPDoc. <programlisting role="php"> <![CDATA[.... * @since Rev. 1.8 - 03/10/2001.... * @since 03-10-2001.... ]]> </programlisting> </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/php/phpdoc/keywordstatic.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordstatic.xml +++ peardoc/fr/package/php/phpdoc/keywordstatic.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordstatic"> <refnamediv> <refname>@static</refname> <refpurpose> marque une fonction comme étant statique </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@static</command> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordstatic.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordstatic.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... class Foo { /** ... * @static */ function Bar (....... // cet appel est permis en accord avec la documentation : Foo::Bar() ; ]]> </programlisting> </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/php/phpdoc/keywordvar.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordvar.xml +++ peardoc/fr/package/php/phpdoc/keywordvar.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordvar"> <refnamediv> <refname>@var</refname> <refpurpose> décrit les variables des classes </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@var</command> <arg choice="req"> <option>type|objectdefinition</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordvar.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>var</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordvar.note"> <title>Note</title> <para> Si aucun type n'est donné, PHPDoc tentera de le deviner. </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordvar.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @var string $name nom de la personne */ var name = "" ;.... ]]> </programlisting> </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/php/phpdoc/requirements.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/requirements.xml +++ peardoc/fr/package/php/phpdoc/requirements.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.requirements"> <refnamediv> <refname>Conditions d'utilisation</refname> <refpurpose> Configuration concernant les dépendances, le temps d'exécution et la mémoire </refpurpose> </refnamediv> <refsect1 id="package.php.phpdoc.requirements.extensions"> <title>PHP-Extensions</title> <para> <itemizedlist> <listitem> <para> <command>XML-Support</command> </para> </listitem> <listitem> <para> <command>Perl Compatible Regular Expressions - PCRE</command> </para> </listitem> </itemizedlist> Ces deux extensions doivent être disponibles dans les distributions communes de PHP. </para> </refsect1> <refsect1 id="package.php.phpdoc.requirements.executiontime"> <title>Temps d'exécution</title> <para> I.e. <classname>PHPDoc</classname> a besoin de 3 à 10 minutes pour créer une documentation de l'API du projet complet PEAR dépendant des performances de votre machine. </para> </refsect1> <refsect1 id="package.php.phpdoc.requirements.memorylimit"> <title>Limite de mémoire</title> <para> Il peut être nécessaire d'augmenter la mémoire limite. Tout spécialement lorsque vous utilisez Windows et que PHP plante durant l'exécution de <command>PHPDoc</command>. <screen> memory_limit = 67108846 ; Maximum amount of memory a script may consume (64MB) </screen> </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/php/phpdoc/doccomments.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/doccomments.xml +++ peardoc/fr/package/php/phpdoc/doccomments.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.doccomments"> <refnamediv> <refname>Commentaires</refname> <refpurpose> la structure d'un commentaire de documentation </refpurpose> </refnamediv> <refsect1 id="package.php.phpdoc.doccomments.format"> <title>Format d'un commentaire de documentation</title> <para> Le format général d'un commentaire de documentation est indépendant de l'élément à décrire. Assurez-vous qu'il n'y a rien entre le commentaire et l'élément, mise à par des lignes vides. </para> <para> <programlisting role="php"> <![CDATA[ /** * description courte - une ligne * * description détaillée (optionnel) * sur plusieurs lignes, les lignes vides * entre les parties de la description ne sont * pas nécessaire * * @keyword parameters_of_keyword * @keyword la séquence arbitraire de mot clé */ [élément à décrire] ]]> </programlisting> </para> <para> Types d'éléments <itemizedlist> <listitem> <para><parameter>class</parameter></para> </listitem> <listitem> <para><parameter>function</parameter></para> </listitem> <listitem> <para><parameter>var</parameter></para> </listitem> <listitem> <para><parameter>define</parameter></para> </listitem> <listitem> <para><parameter>include/require</parameter></para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.shortdesc"> <title>Partie : description courte</title> <para> Cette ligne doitdécrire ce que l'élément contient ou ne contient pas. Exemple pour une variable : "Compte les articles", pour une fonction : "Crée un lien hypertexte" ou pour une classe : "fournit les fonctions PDF-related". Cette ligne est normalement rendu dans un index de page ou dans une table de contenu. </para> <note> <para> Une 'ligne' signifie n'importe quel caractère entre le premier <parameter>*</parameter> et le caractère de nouvelle ligne. </para> </note> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.detaildesc"> <title>Partie : description détaillée</title> <para> Dans cette partie, vous pouvez écrire plus d'informations concernant votre élément. Notez que les paramètres, les valeurs retournées ainsi que les liens entre les éléments sont couverts par la section <literal>keyword</literal>. Quelques tags HTML sont autorisés : <itemizedlist> <listitem> <para><parameter><a></parameter></para> </listitem> <listitem> <para><parameter><i></parameter></para> </listitem> <listitem> <para><parameter><b></parameter></para> </listitem> <listitem> <para><parameter><pre></parameter></para> </listitem> <listitem> <para><parameter><ul></parameter></para> </listitem> <listitem> <para><parameter><li></parameter></para> </listitem> <listitem> <para><parameter><br></parameter></para> </listitem> <listitem> <para><parameter><code></parameter></para> </listitem> </itemizedlist> Mais faites attention, ces tags peuvent être ignorés par des rendus non-HTML de la classe <classname>PHPDoc</classname>. </para> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.keyword"> <title>Partie : <literal>Keyword</literal></title> <para> Le format d'une ligne <literal>Keyword</literal> est simple : <programlisting role="php"> * @keyword <parameters> </programlisting> </para> <para> Tous les <literal>Keyword</literal>s ne sont pas autorisés pour tous les éléments. Lisez la section de portée pour savoir quand un <literal>Keyword</literal> est permet ou non. </para> </refsect1> <refsect1 id="package.php.phpdoc.doccomments.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[ /** * Classe panier pour mon site marchand * * Panier est un répository d'instances * de la classe Article... * * @autor Alexander Merz <alexander.merz@php.net>; * @version 1.6 * @access public * @package MyWebShop */ class Panier { /** * contient les articles * @var array * @see add(), mod(), del() */ var $articles = array() ; /** * Ajout d'un article. * * Une instance d'un article donné et la somme est * stocké dans le Panier * * @param object Article $article article to add * @param integer $count count of the article * @return boolean retourne false, si une erreur survient * @access public * @see $articles */ function add( $article, $count = 1) { ... } } ]]> </programlisting> </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/php/phpdoc/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/intro.xml +++ peardoc/fr/package/php/phpdoc/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.introduction"> <refnamediv> <refname>Introduction</refname> <refpurpose> But </refpurpose> </refnamediv> <refsect1 id="package.php.phpdoc.introduction.whatisphpdoc"> <title>Qu'est-ce PHPDoc?</title> <para> PHPDoc est un utilitaire pour générer une API documentation d'applications PHP depuis le code source. Il lit les informations depuis le source et récupère les informations depuis des commentaires spéciaux PHPDoc pour créer une documentation de fonctions, de classes, de package.php et de modules. </para> <para> Allez sur <ulink url="&url.phpdoc;">&url.phpdoc;</ulink> pour en savoir plus ainsi que pour une démonstration. </para> <para> Le projet PEAR est documenté en utilisant les commentaires PHPDoc. Si vous voulez voir des exemples de ces commentaires, vous n'avez qu'à regarder les sources du projet PEAR. </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/php/phpdoc/keywordauthor.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordauthor.xml +++ peardoc/fr/package/php/phpdoc/keywordauthor.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordauthor"> <refnamediv> <refname>@author</refname> <refpurpose> décrit l'auteur </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@author</command> <arg choice="req"> <option>Name</option> </arg> <arg choice="opt"> <option><email></option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordauthor.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordauthor.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @author L'homme invisible * @author Alexander Merz <alexmerz@php.net>.... ]]> </programlisting> </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/php/phpdoc/keywordconst.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordconst.xml +++ peardoc/fr/package/php/phpdoc/keywordconst.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordconst"> <refnamediv> <refname>@const</refname> <refpurpose> décrit des constantes créées par <function>define</function> </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@const</command> <arg choice="req"> <option>label</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordconst.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordconst.example"> <title>Example</title> <para> <programlisting role="php"> <![CDATA[.... /** * nombre maximal de clients autorisés en même temps * @const MAX_CLIENTS maximum clients */ define("MAX_CLIENTS", 1000, true); /** * nombre maximal de requête par client * @const MAX_REQUESTS_PER_CLIENT */ define("MAX_REQUESTS_PER_CLIENT", 5); .... ]]> </programlisting> </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/php/phpdoc/keyworddeprecated.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keyworddeprecated.xml +++ peardoc/fr/package/php/phpdoc/keyworddeprecated.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keyworddeprecated"> <refnamediv> <refname>@deprecated</refname> <refpurpose> marque des éléments de l'API dépréciés </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@deprecated</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keyworddeprecated.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keyworddeprecated.example"> <title>Exemple</title> <para> Notez que le format de <parameter>label</parameter> n'est pas défini par PHPDoc. <programlisting role="php"> <![CDATA[.... * @deprecated Rev. 1.8 - 03/10/2001.... * @deprecated 03-10-2001.... ]]> </programlisting> </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/php/phpdoc/keywordglobal.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordglobal.xml +++ peardoc/fr/package/php/phpdoc/keywordglobal.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordglobal"> <refnamediv> <refname>@global</refname> <refpurpose> variables globales utilisées dans le document </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@global</command> <arg choice="req"> <option>type|objectdef</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordglobal.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordglobal.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @global array $files list of file * @global integer $errcode code d'erreur * @global string $errmsg message d'erreur * @global object Instance système de fichiers $fs de la classe FS */ function fooBar() { global $files, $errcode, $errmsg, $fs; .... ]]> </programlisting> </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/php/phpdoc/keywordpackage.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordpackage.xml +++ peardoc/fr/package/php/phpdoc/keywordpackage.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordpackage"> <refnamediv> <refname>@package</refname> <refpurpose> groupe de classes </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@package</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordpackage.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordpackage.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @package Net.... ]]> </programlisting> </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/php/phpdoc/keywordparam.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordparam.xml +++ peardoc/fr/package/php/phpdoc/keywordparam.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordparam"> <refnamediv> <refname>@param</refname> <refpurpose> décrit un paramètre d'une fonction </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@param</command> <arg choice="req"> <option>type|objectdefinition</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordparam.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordparam.note"> <title>Note</title> <para> PHPDoc détecte les valeurs par défaut et les documente depuis la source. </para> </refsect1> <refsect1 id="packages.phpdoc.keywordparam.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @param string $name nom de la personne * (nom complet !) * @param integer $age âge de la personne * @param float $size taille de la personne * @param object Adresse $adr addresse de la personne * @param array $childs noms des enfants * @param boolean $job si true, personne a un travail * @param boolean $gender utilisez FEMALE * ou MALE */ function person($name, $age, $size, $adr, $childs, $job=true, $gender=FEMALE) {.... ]]> </programlisting> </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/php/phpdoc/keywordreturn.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordreturn.xml +++ peardoc/fr/package/php/phpdoc/keywordreturn.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordreturn"> <refnamediv> <refname>@return</refname> <refpurpose> décrit la valeur retournée par une fonction </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@return</command> <arg choice="req"> <option>type|objectdefinition</option> </arg> <arg choice="opt"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordreturn.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordreturn.note"> <title>Note</title> <para> Si aucun mot clé <parameter>@return</parameter> n'est donné, PHPDoc utilisera void. Le mot clé est ignoré, si (oublié-)utilisé dans la fonction constructrice. </para> </refsect1> <refsect1 id="packages.phpdoc.keywordreturn.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @return mixed un objet PEAR_Error ou un entier * @return boolean true, si succès.... ]]> </programlisting> </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/php/phpdoc/keywordsee.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordsee.xml +++ peardoc/fr/package/php/phpdoc/keywordsee.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="packages.phpdoc.keywordsee"> <refnamediv> <refname>@see</refname> <refpurpose> marqueur de référence vers d'autres éléments </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@see</command> <arg choice="req"> <option>element</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordsee.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordsee.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @see $article, Article::edit() * @see delete(), print().... ]]> </programlisting> </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/php/phpdoc/keywordsince.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordsince.xml +++ peardoc/fr/package/php/phpdoc/keywordsince.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordsince"> <refnamediv> <refname>@since</refname> <refpurpose> marqueur renseignant la date à laquelle les éléments de l'API ont été ajoutées </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@since</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordsince.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> <listitem> <para>function</para> </listitem> <listitem> <para>var</para> </listitem> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordsince.example"> <title>Exemple</title> <para> Notez que le format de <parameter>label</parameter> n'est pas défini par PHPDoc. <programlisting role="php"> <![CDATA[.... * @since Rev. 1.8 - 03/10/2001.... * @since 03-10-2001.... ]]> </programlisting> </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/php/phpdoc/keywordstatic.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordstatic.xml +++ peardoc/fr/package/php/phpdoc/keywordstatic.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordstatic"> <refnamediv> <refname>@static</refname> <refpurpose> marque une fonction comme étant statique </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@static</command> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordstatic.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordstatic.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... class Foo { /** ... * @static */ function Bar (....... // cet appel est permis en accord avec la documentation : Foo::Bar() ; ]]> </programlisting> </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/php/phpdoc/keywordvar.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/keywordvar.xml +++ peardoc/fr/package/php/phpdoc/keywordvar.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.keywordvar"> <refnamediv> <refname>@var</refname> <refpurpose> décrit les variables des classes </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@var</command> <arg choice="req"> <option>type|objectdefinition</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>description</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="package.php.phpdoc.keywordvar.scope"> <title>Portée</title> <para> <itemizedlist> <listitem> <para>var</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordvar.note"> <title>Note</title> <para> Si aucun type n'est donné, PHPDoc tentera de le deviner. </para> </refsect1> <refsect1 id="package.php.phpdoc.keywordvar.example"> <title>Exemple</title> <para> <programlisting role="php"> <![CDATA[.... * @var string $name nom de la personne */ var name = "" ;.... ]]> </programlisting> </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/php/phpdoc/requirements.xml?r=1.1&p=1 Index: peardoc/fr/package/php/phpdoc/requirements.xml +++ peardoc/fr/package/php/phpdoc/requirements.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="package.php.phpdoc.requirements"> <refnamediv> <refname>Conditions d'utilisation</refname> <refpurpose> Configuration concernant les dépendances, le temps d'exécution et la mémoire </refpurpose> </refnamediv> <refsect1 id="package.php.phpdoc.requirements.extensions"> <title>PHP-Extensions</title> <para> <itemizedlist> <listitem> <para> <command>XML-Support</command> </para> </listitem> <listitem> <para> <command>Perl Compatible Regular Expressions - PCRE</command> </para> </listitem> </itemizedlist> Ces deux extensions doivent être disponibles dans les distributions communes de PHP. </para> </refsect1> <refsect1 id="package.php.phpdoc.requirements.executiontime"> <title>Temps d'exécution</title> <para> I.e. <classname>PHPDoc</classname> a besoin de 3 à 10 minutes pour créer une documentation de l'API du projet complet PEAR dépendant des performances de votre machine. </para> </refsect1> <refsect1 id="package.php.phpdoc.requirements.memorylimit"> <title>Limite de mémoire</title> <para> Il peut être nécessaire d'augmenter la mémoire limite. Tout spécialement lorsque vous utilisez Windows et que PHP plante durant l'exécution de <command>PHPDoc</command>. <screen> memory_limit = 67108846 ; Maximum amount of memory a script may consume (64MB) </screen> </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 -->