cvs: peardoc /ja/packages/phpdoc doccomments.xml introduction.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 usingtool.xml

From: Date: Sun, 24 Feb 2002 10:07:58 +0000
Subject: cvs: peardoc /ja/packages/phpdoc doccomments.xml introduction.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 usingtool.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2587@lists.php.net to get a copy of this message
hirokawa Sun Feb 24 05:07:58 2002 EDT Added files: /peardoc/ja/packages/phpdoc doccomments.xml introduction.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 usingtool.xml Log: added phpdoc

Index: peardoc/ja/packages/phpdoc/doccomments.xml +++ peardoc/ja/packages/phpdoc/doccomments.xml <!-- $Id: doccomments.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.doccomments"> <refnamediv> <refname>docコメント</refname> <refpurpose> docコメントの構造 </refpurpose> </refnamediv> <refsect1 id="packages.phpdoc.doccomments.format"> <title>docコメント形式</title> <para> docコメントの一般的な形式は、記述する要素とは独立です。コメントと要 素の間に空行以外のものは何も記述しないようにして下さい。 <programlisting role="php"> <![CDATA[ /** * 短い説明 - 1行 * * 詳細な説明 (オプション) * 複数行にわたり、説明部分に空白行は不要です。 * * @keyword キーワードパラメータ * @keyword 任意のキーワードの並び */ [element to describe] ]]> </programlisting> </para> <para> 要素の型 <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="packages.phpdoc.doccomments.shortdesc"> <title>短い説明文</title> <para> この行には、ある要素に含まれるものまたは動作を記述します。すなわち、 変数の場合"Count of articles"、関数の場合"Creates a hyperlink"、ク ラスの場合、"provides PDF-related functions"といったようになります。 通常、この行が索引ページまたは目次で参照されます。 </para> <note> <para> 1行は、先頭の<parameter>*</parameter>と改行文字の間のもの全てを意 味します。 </para> </note> </refsect1> <refsect1 id="packages.phpdoc.doccomments.detaildesc"> <title>説明部分の詳細</title> <para> ここでは、作成する要素についてより詳細に記述することが可能です。パ ラメータ、返り値、keywordセクションで記述される要素との間の関係に注 意して下さい。ここで使用可能なHTMLタグには以下のようなものがありま す。 <itemizedlist> <listitem> <para><parameter>&lt;a&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;i&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;b&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;pre&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;ul&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;li&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;br&gt;</parameter></para> </listitem> <listitem> <para><parameter>&lt;code&gt;</parameter></para> </listitem> </itemizedlist> このタグは、HTML以外の<classname>PHPDoc</classname>レンダラでは、無 視される可能性があることに注意して下さい。 </para> </refsect1> <refsect1 id="packages.phpdoc.doccomments.keyword"> <title>keyword部</title> <para> keyword行の形式は、簡単です。 <programlisting role="php"> * @keyword <parameter>parameters</parameter> </programlisting> </para> <para> 全ての要素で全てのキーワードが使用可能であるわけではありません。キー ワードが使用できるかどうかは、スコープのセクションを参照下さい。 </para> </refsect1> <refsect1 id="packages.phpdoc.doccomments.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ /** * Basket class for my web shop. * * Basket is a repository for instances of * the class Article... * * @autor Alexander Merz <alexander.merz@php.net>; * @version 1.6 * @access public * @package MyWebShop */ class Basket { /** * contains the articles * @var array * @see add(), mod(), del() */ var $articles = array() ; /** * Adds an article. * * An instance of the given article and the count is * stored in the basket * * @param object Article $article article to add * @param integer $count count of the article * @return boolean returns false, if error occurs * @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 --> Index: peardoc/ja/packages/phpdoc/introduction.xml +++ peardoc/ja/packages/phpdoc/introduction.xml <!-- $Id: introduction.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.introduction"> <refnamediv> <refname>導入</refname> <refpurpose> 目的 </refpurpose> </refnamediv> <refsect1 id="packages.phpdoc.introduction.whatisphpdoc"> <title>PHPDocとは?</title> <para> PHPDocは、ソースコードからPHP アプリケーションのAPIドキュメントを 作成するツールです。PHPDocは、ソースコードから情報を検索し、関数、 クラス、パッケージ、モジュールのドキュメントを作成するための特殊な PHPDocコメントから情報を取得します。 </para> <para> 詳細な情報及びデモについては、 <ulink url="http://www.phpdoc.de/">www.phpdoc.de</ulink>を参照下さ い。 </para> <para> PEARプロジェクトは、完全にPHPDocコメントを用いてドキュメント化され ています。このコメントを実用的な使用例を参照したい場合には、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 --> Index: peardoc/ja/packages/phpdoc/keywordauthor.xml +++ peardoc/ja/packages/phpdoc/keywordauthor.xml <!-- $Id: keywordauthor.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordauthor"> <refnamediv> <refname>@author</refname> <refpurpose> 作者に関する説明 </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@author</command> <arg choice="req"> <option>名前</option> </arg> <arg choice="opt"> <option>&lt;email&gt;</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordauthor.scope"> <title>スコープ</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.keywordauthor.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... * @author The invisible man * @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 --> Index: peardoc/ja/packages/phpdoc/keywordconst.xml +++ peardoc/ja/packages/phpdoc/keywordconst.xml <!-- $Id: keywordconst.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordconst"> <refnamediv> <refname>@const</refname> <refpurpose> <function>define</function>で作成された定数を記述する </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@const</command> <arg choice="req"> <option>ラベル</option> </arg> <arg choice="opt"> <option>説明</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordconst.scope"> <title>スコープ</title> <para> <itemizedlist> <listitem> <para>define</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordconst.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... /** * maximum of permitted clients at the same time * @const MAX_CLIENTS maximum clients */ define("MAX_CLIENTS", 1000, true); /** * maximum request per 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 --> Index: peardoc/ja/packages/phpdoc/keyworddeprecated.xml +++ peardoc/ja/packages/phpdoc/keyworddeprecated.xml <!-- $Id: keyworddeprecated.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keyworddeprecated"> <refnamediv> <refname>@deprecated</refname> <refpurpose> 過去のAPI要素を示す </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@deprecated</command> <arg choice="req"> <option>ラベル</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keyworddeprecated.scope"> <title>スコープ</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.keyworddeprecated.example"> <title>例</title> <para> <parameter>label</parameter>の形式は、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 --> Index: peardoc/ja/packages/phpdoc/keywordglobal.xml +++ peardoc/ja/packages/phpdoc/keywordglobal.xml <!-- $Id: keywordglobal.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordglobal"> <refnamediv> <refname>@global</refname> <refpurpose> グローバル変数の説明 </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@global</command> <arg choice="req"> <option>型|オブジェクト定義</option> </arg> <arg choice="req"> <option>$varname</option> </arg> <arg choice="opt"> <option>説明</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordglobal.scope"> <title>スコープ</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordglobal.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... * @global array $files list of file * @global integer $errcode errorcode * @global string $errmsg error message * @global object FileSystem $fs instance of the FS class */ 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 --> Index: peardoc/ja/packages/phpdoc/keywordpackage.xml +++ peardoc/ja/packages/phpdoc/keywordpackage.xml <!-- $Id: keywordpackage.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordpackage"> <refnamediv> <refname>@package</refname> <refpurpose> クラスをグループ化する </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@package</command> <arg choice="req"> <option>ラベル</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordpackage.scope"> <title>スコープ</title> <para> <itemizedlist> <listitem> <para>class</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordpackage.example"> <title>例</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 --> Index: peardoc/ja/packages/phpdoc/keywordparam.xml +++ peardoc/ja/packages/phpdoc/keywordparam.xml <!-- $Id: keywordparam.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordparam"> <refnamediv> <refname>@param</refname> <refpurpose> 関数のパラメータを記述する </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>説明</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordparam.scope"> <title>スコープ</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordparam.note"> <title>注意</title> <para> PHPDocは、ソースからデフォルト値を検出し、文書に記述します。 </para> </refsect1> <refsect1 id="packages.phpdoc.keywordparam.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... * @param string $name name of the person * (complete name!) * @param integer $age age of the person * @param float $size size of person * @param object Adresse $adr adresse of the person * @param array $childs names of the children * @param boolean $job if true, person has a job * @param boolean $gender use FEMALE * or 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 --> Index: peardoc/ja/packages/phpdoc/keywordreturn.xml +++ peardoc/ja/packages/phpdoc/keywordreturn.xml <!-- $Id: keywordreturn.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordreturn"> <refnamediv> <refname>@return</refname> <refpurpose> 関数の返り値を記述する </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>スコープ</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordreturn.note"> <title>注意</title> <para> キーワード<parameter>@return</parameter>が指定されない場合、 PHPDocはvoidを使用します。 コンストラクラ関数の中で(誤って)使用された場合、このキーワードは無 視されます。 </para> </refsect1> <refsect1 id="packages.phpdoc.keywordreturn.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... * @return mixed a PEAR_Error object or an integer * @return boolean true, if successful ... ]]> </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 --> Index: peardoc/ja/packages/phpdoc/keywordsee.xml +++ peardoc/ja/packages/phpdoc/keywordsee.xml <!-- $Id: keywordsee.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordsee"> <refnamediv> <refname>@see</refname> <refpurpose> 他の要素への参照リンクを記述する </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@see</command> <arg choice="req"> <option>element</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordsee.scope"> <title>スコープ</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>例</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 --> Index: peardoc/ja/packages/phpdoc/keywordsince.xml +++ peardoc/ja/packages/phpdoc/keywordsince.xml <!-- $Id: keywordsince.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordsince"> <refnamediv> <refname>@since</refname> <refpurpose> あるAPI要素が導入された時を記述する </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@since</command> <arg choice="req"> <option>label</option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordsince.scope"> <title>スコープ</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.keywordsince.example"> <title>例</title> <para> <parameter>label</parameter>の形式は、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 --> Index: peardoc/ja/packages/phpdoc/keywordstatic.xml +++ peardoc/ja/packages/phpdoc/keywordstatic.xml <!-- $Id: keywordstatic.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordstatic"> <refnamediv> <refname>@static</refname> <refpurpose> staticとして関数を記述する </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>@static</command> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.keywordstatic.scope"> <title>スコープ</title> <para> <itemizedlist> <listitem> <para>function</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordstatic.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... class Foo { /** ... * @static */ function Bar (... ... // this call is permitted according to the docs: 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 --> Index: peardoc/ja/packages/phpdoc/keywordvar.xml +++ peardoc/ja/packages/phpdoc/keywordvar.xml <!-- $Id: keywordvar.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.keywordvar"> <refnamediv> <refname>@var</refname> <refpurpose> クラス変数について説明する </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="packages.phpdoc.keywordvar.scope"> <title>スコープ</title> <para> <itemizedlist> <listitem> <para>var</para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.keywordvar.note"> <title>注意</title> <para> 型が指定されない場合、PHPDocは推定を試みます。 </para> </refsect1> <refsect1 id="packages.phpdoc.keywordvar.example"> <title>例</title> <para> <programlisting role="php"> <![CDATA[ ... * @var string $name name of the person */ 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 --> Index: peardoc/ja/packages/phpdoc/requirements.xml +++ peardoc/ja/packages/phpdoc/requirements.xml <!-- $Id: requirements.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.requirements"> <refnamediv> <refname>Requirements</refname> <refpurpose> Dependencies, time and memory settings </refpurpose> </refnamediv> <refsect1 id="packages.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> Both extensions should be avaible in common PHP distributions. </para> </refsect1> <refsect1 id="packages.phpdoc.requirements.executiontime"> <title>Execution time</title> <para> It is recommended to set the <parameter>maximum execution time</parameter> in the <command>php.ini</command> on a high value or disable it. <programlisting> max_execution_time = 0 ; Maximum execution time of each script, in seconds </programlisting> I.e. <classname>PHPDoc</classname> needs between 5 and 10 min for creating an API documentation of the whole PEAR project depending of your computer. </para> </refsect1> <refsect1 id="packages.phpdoc.requirements.memorylimit"> <title>Memory limit</title> <para> It could be necessary to increase the memory limit. Especially when you are using Windows and PHP crashes while runing <command>PHPDoc</command>. <programlisting> memory_limit = 67108846 ; Maximum amount of memory a script may consume (8MB) </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 --> Index: peardoc/ja/packages/phpdoc/usingtool.xml +++ peardoc/ja/packages/phpdoc/usingtool.xml <!-- $Id: usingtool.xml,v 1.1 2002/02/24 10:07:58 hirokawa Exp $ --> <refentry id="packages.phpdoc.usingtool"> <refnamediv> <refname>Using the PHPDoc tool</refname> <refpurpose> Calling the PHPDoc commandline program </refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>phpdoc</command> <arg choice="opt"> <option>-h</option> </arg> <arg choice="opt"> <option>-?</option> </arg> <arg choice="opt"> <option>-f</option> </arg> <arg choice="opt"> <option>-h</option> </arg> <arg choice="opt"> <option>-i <parameter>directory</parameter></option> </arg> <arg choice="opt"> <option>-s <parameter>directory</parameter></option> </arg> <arg choice="opt"> <option>-d <parameter>directory</parameter></option> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1 id="packages.phpdoc.usingtool.options"> <title>Options</title> <para> <itemizedlist> <listitem> <para> <parameter>-h -?</parameter> </para> <para> Display help/usage </para> </listitem> <listitem> <para> <parameter>-f</parameter> </para> <para> Force the deletion of the destination directory for HTML/XML output file. </para> </listitem> <listitem> <para> <parameter>-i</parameter> </para> <para> Directory with the PHPDoc include files. Normally the PHPDoc directory in your PEAR directory itself. See the <link linkend="packages.phpdoc.usingtool.setup">'Setup' section</link>. </para> </listitem> <listitem> <para> <parameter>-s</parameter> </para> <para> Directory where your source files reside. </para> </listitem> <listitem> <para> <parameter>-d</parameter> </para> <para> Destination directory for the generated doc files. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="packages.phpdoc.usingtool.setup"> <title>Set up the program</title> <para> The PHPDoc program <command>phpdoc</command> reside in <parameter>&lt;pearpath&gt;/phpdoc/</parameter>. Open this file and edit this section on the top of the file to match your system paths: <programlisting role="php"> <![CDATA[ /*** CONFIGURATION ***/ // Directory with PHPDoc include files $phpdoc_include_dir = '/usr/lib/php/PHPDoc'; // directory where your source files reside $source_files = '/usr/lib/php/'; // save the generated docs here: $dest_apidoc_dir = '/usr/doc/pear'; // force the deletion of the target apidocs directory $dest_apidoc_delete = false; /*** END CONF ***/ ]]> </programlisting> You can set the parameters while calling this program, too. But it is recommended to edit at least <parameter> $phpdoc_include_dir</parameter>, because this normally never change. </para> <refsect2 id="packages.phpdoc.usingtool.setup.unix"> <title>Unix specific settings</title> <para> Check the first line to ensure it shows on your php program (installed as CGI, not as webserver module!) <programlisting> <command>#!/usr/local/bin/php -Cq</command> </programlisting> </para> </refsect2> <refsect2 id="packages.phpdoc.usingtool.setup.win"> <title>Windows specific settings</title> <para> For running the PHPDoc program on Windows, the PHPDoc directory contains a batch file <command>phpdoc.bat</command>. edit the following lines to match the path of your PHP executable (not webserver module!). <programlisting> REM ------------------- set PHP_PATH=c:\php REM ------------------- </programlisting> </para> </refsect2> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.cvs (#2587) next »