cvs: phpdoc-ja /reference/rar .cvsignore ini.xml reference.xml /reference/rar/functions rar-close.xml rar-entry-get.xml rar-extract.xml
rar-getattr.xml rar-getcrc.xml rar-getfiletime.xml rar-gethostos.xml rar-getmethod.xml rar-getname.xml rar-getpackedsize.xml rar-getunpackedsize.xml
rar-getversion.xml rar-list.xml rar-open.xml

From: Date: Fri, 19 Aug 2005 08:31:20 +0000
Subject: cvs: phpdoc-ja /reference/rar .cvsignore ini.xml reference.xml /reference/rar/functions rar-close.xml rar-entry-get.xml rar-extract.xml
rar-getattr.xml rar-getcrc.xml rar-getfiletime.xml rar-gethostos.xml rar-getmethod.xml rar-getname.xml rar-getpackedsize.xml rar-getunpackedsize.xml
rar-getversion.xml rar-list.xml rar-open.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1134@lists.php.net to get a copy of this message
takagi Fri Aug 19 04:31:20 2005 EDT Added files: /phpdoc-ja/reference/rar/functions rar-open.xml rar-list.xml rar-getversion.xml rar-getunpackedsize.xml rar-getpackedsize.xml rar-getname.xml rar-getmethod.xml rar-gethostos.xml rar-getfiletime.xml rar-getcrc.xml rar-getattr.xml rar-extract.xml rar-entry-get.xml rar-close.xml /phpdoc-ja/reference/rar reference.xml ini.xml .cvsignore Log: added japanese manual.

http://cvs.php.net/co.php/phpdoc-ja/reference/rar/functions/rar-open.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-open.xml +++ phpdoc-ja/reference/rar/functions/rar-open.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="function.rar-open"> <refnamediv> <refname>rar_open</refname> <refpurpose>Rar アーカイブをオープンする</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>resource</type><methodname>rar_open</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam> </methodsynopsis> <para> 指定した Rar アーカイブをオープンし、Rar ファイルリソースを返します。 </para> <para> <function>rar_open</function> は成功した場合に Rar ファイルリソース、 エラー時には &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-list.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-list.xml +++ phpdoc-ja/reference/rar/functions/rar-list.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.rar-list"> <refnamediv> <refname>rar_list</refname> <refpurpose>Rar アーカイブのエントリ一覧を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>array</type><methodname>rar_list</methodname> <methodparam><type>resource</type><parameter>rar_file</parameter></methodparam> </methodsynopsis> <para> Rar アーカイブから、エントリの一覧を取得します。 </para> <example> <title><function>Rar::</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entries_list = rar_list($rar_file); print_r($entries_list); ?> ]]> </programlisting> </example> <para> <function>rar_list</function> は成功した場合にエントリの配列、 エラー時には &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getversion.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getversion.xml +++ phpdoc-ja/reference/rar/functions/rar-getversion.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getVersion"> <refnamediv> <refname>Rar::getVersion</refname> <refpurpose>エントリを追加するのに用いたアーカイバのバージョンを取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getVersion</methodname> <void/> </methodsynopsis> <para> アーカイブエントリを追加するのに用いたアーカイバのバージョンを 取得します。 </para> <example> <title><function>Rar::getVersion</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりませんでした"); echo "使用した Rar (WinRAR) のバージョン: " . $entry->getVersion(); ?> ]]> </programlisting> </example> <para> <function>Rar::getVersion</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getunpackedsize.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getunpackedsize.xml +++ phpdoc-ja/reference/rar/functions/rar-getunpackedsize.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getUnpackedSize"> <refnamediv> <refname>Rar::getUnpackedSize</refname> <refpurpose>展開後のエントリのサイズを取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getUnpackedSize</methodname> <void/> </methodsynopsis> <para> 展開後のアーカイブエントリのサイズを取得します。 </para> <example> <title><function>Rar::getUnpackedSize</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); echo "展開後の " . $entry->getName() . " のサイズ = " . $entry->getUnpackedSize() . " バイト"; ?> ]]> </programlisting> </example> <para> <function>Rar::getUnpackedSize</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getpackedsize.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getpackedsize.xml +++ phpdoc-ja/reference/rar/functions/rar-getpackedsize.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getPackedSize"> <refnamediv> <refname>Rar::getPackedSize</refname> <refpurpose>圧縮後のエントリのサイズを取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getPackedSize</methodname> <void/> </methodsynopsis> <para> 圧縮後のアーカイブエントリのサイズを取得します。 </para> <example> <title><function>Rar::getPackedSize</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); echo "圧縮後の " . $entry->getName() . " のサイズ = " . $entry->getPackedSize() . " バイト"; ?> ]]> </programlisting> </example> <para> <function>Rar::getPackedSize</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getname.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getname.xml +++ phpdoc-ja/reference/rar/functions/rar-getname.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getName"> <refnamediv> <refname>Rar::getName</refname> <refpurpose>エントリの名前を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>Rar::getName</methodname> <void/> </methodsynopsis> <para> <function>Rar::getName</function> は、アーカイブエントリの名前を返します。 </para> <example> <title><function>Rar::getName</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); echo "エントリ名: " . $entry->getName(); ?> ]]> </programlisting> </example> <para> <function>Rar::getName</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getmethod.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getmethod.xml +++ phpdoc-ja/reference/rar/functions/rar-getmethod.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getMethod"> <refnamediv> <refname>Rar::getMethod</refname> <refpurpose>エントリの圧縮方法を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getMethod</methodname> <void/> </methodsynopsis> <para> <function>Rar::getMethod</function> は、カレントのアーカイブエントリを 追加する際に使用したメソッドの番号を返します。 </para> <example> <title><function>Rar::getMethod</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); echo "メソッド番号: " . $entry->getMethod(); ?> ]]> </programlisting> </example> <para> <function>Rar::getMethod</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-gethostos.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-gethostos.xml +++ phpdoc-ja/reference/rar/functions/rar-gethostos.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getHostOs"> <refnamediv> <refname>Rar::getHostOs</refname> <refpurpose>エントリのホスト OS を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getHostOs</methodname> <void/> </methodsynopsis> <para> <function>Rar::getHostOs</function> は、アーカイブエントリの ホスト OS のコードを返します。 </para> <example> <title><function>Rar::getHostOs</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); switch ($entry->getHostOs()) { case RAR_HOST_MSDOS: echo "MS-DOS\n"; break; case RAR_HOST_OS2: echo "OS2\n"; break; case RAR_HOST_WIN32: echo "Win32\n"; break; case RAR_HOST_MACOS: echo "MacOS\n"; break; case RAR_HOST_UNIX: echo "Unix/Linux\n"; break; case RAR_HOST_BEOS: echo "BeOS\n"; break; } ?> ]]> </programlisting> </example> <para> <function>Rar::getHostOs</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getfiletime.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getfiletime.xml +++ phpdoc-ja/reference/rar/functions/rar-getfiletime.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getFileTime"> <refnamediv> <refname>Rar::getFileTime</refname> <refpurpose>エントリの最終更新時刻を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>Rar::getFileTime</methodname> <void/> </methodsynopsis> <para> <function>Rar::getFileTime</function> は、エントリの最終更新時刻を YYYY-MM-DD HH:II:SS 形式の文字列で返します。 </para> <example> <title><function>Rar::</function> の例</title> <programlisting role="php"> <![CDATA[ <?php ?> ]]> </programlisting> </example> <para> <function>Rar::getFileTime</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getcrc.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getcrc.xml +++ phpdoc-ja/reference/rar/functions/rar-getcrc.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getCrc"> <refnamediv> <refname>Rar::getCrc</refname> <refpurpose>エントリの CRC を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getCrc</methodname> <void/> </methodsynopsis> <para> <function>Rar::getCrc</function> は、アーカイブエントリの CRC を返します。 </para> <example> <title><function>Rar::getCrc</function> の例</title> <programlisting role="php"> <![CDATA[ <?php ?> ]]> </programlisting> </example> <para> <function>Rar::getCrc</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-getattr.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-getattr.xml +++ phpdoc-ja/reference/rar/functions/rar-getattr.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-getAttr"> <refnamediv> <refname>Rar::getAttr</refname> <refpurpose>エントリの属性を取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>int</type><methodname>Rar::getAttr</methodname> <void/> </methodsynopsis> <para> <function>Rar::getAttr</function> は、アーカイブエントリの属性を返します。 </para> <example> <title><function>Rar::getAttr</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'dir/in/the/archive') or die("そのようなエントリは見つかりません"); $host_os = $entry->getHostOs(); $attr = $entry->getAttr(); switch($host_os) { case RAR_HOST_MSDOS: case RAR_HOST_OS2: case RAR_HOST_WIN32: case RAR_HOST_MACOS: printf("%c%c%c%c%c%c\n", ($attr & 0x08) ? 'V' : '.', ($attr & 0x10) ? 'D' : '.', ($attr & 0x01) ? 'R' : '.', ($attr & 0x02) ? 'H' : '.', ($attr & 0x04) ? 'S' : '.', ($attr & 0x20) ? 'A' : '.'); break; case RAR_HOST_UNIX: case RAR_HOST_BEOS: switch ($attr & 0xF000) { case 0x4000: printf("d"); break; case 0xA000: printf("l"); break; default: printf("-"); break; } printf("%c%c%c%c%c%c%c%c%c\n", ($attr & 0x0100) ? 'r' : '-', ($attr & 0x0080) ? 'w' : '-', ($attr & 0x0040) ? (($attr & 0x0800) ? 's':'x'):(($attr & 0x0800) ? 'S':'-'), ($attr & 0x0020) ? 'r' : '-', ($attr & 0x0010) ? 'w' : '-', ($attr & 0x0008) ? (($attr & 0x0400) ? 's':'x'):(($attr & 0x0400) ? 'S':'-'), ($attr & 0x0004) ? 'r' : '-', ($attr & 0x0002) ? 'w' : '-', ($attr & 0x0001) ? 'x' : '-'); break; } rar_close($rar_file); ?> ]]> </programlisting> </example> <para> <function>Rar::getAttr</function> は、エラー時に &false; を返します。 </para> <para> <function>Rar::getHostOs</function> も参照ください。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-extract.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-extract.xml +++ phpdoc-ja/reference/rar/functions/rar-extract.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.Rar-extract"> <refnamediv> <refname>Rar::extract</refname> <refpurpose>アーカイブのエントリを展開する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>Rar::extract</methodname> <methodparam><type>string</type><parameter>dir</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filepath</parameter></methodparam> </methodsynopsis> <para> <function>Rar::extract</function> は、エントリのデータを <parameter>dir</parameter> に展開します。指定した <parameter>dir</parameter> に、エントリの名前と同名の新しいファイルを 作成します。<parameter>dir</parameter> の代わりに <parameter>filepath</parameter> が指定されている場合は、 <function>Rar::extract</function> はエントリのデータを指定したファイルに 展開します。 </para> <example> <title><function>Rar::extract</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); $entry->extract('/dir/to'); // /dir/to/Dir/file.txt を作成する $entry->extract(false, '/dir/to/new_name.txt'); // /dir/to/new_name.txt を作成する ?> ]]> </programlisting> </example> <para> &return.success; </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-entry-get.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-entry-get.xml +++ phpdoc-ja/reference/rar/functions/rar-entry-get.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="function.rar-entry-get"> <refnamediv> <refname>rar_entry_get</refname> <refpurpose>Rar アーカイブからエントリオブジェクトを取得する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>RarEntry</type><methodname>rar_entry_get</methodname> <methodparam><type>resource</type><parameter>rar_file</parameter></methodparam> <methodparam><type>string</type><parameter>entry_name</parameter></methodparam> </methodsynopsis> <para> Rar アーカイブから、エントリオブジェクトを取得します。 </para> <example> <title><function>Rar::</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブのオープンに失敗しました"); $entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("そのようなエントリは見つかりません"); print_r($entry); ?> ]]> </programlisting> </example> <para> <function>rar_get_entry</function> は、成功した場合にエントリオブジェクト、 エラー時には &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/functions/rar-close.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/functions/rar-close.xml +++ phpdoc-ja/reference/rar/functions/rar-close.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="function.rar-close"> <refnamediv> <refname>rar_close</refname> <refpurpose>Rar アーカイブをクローズし、全リソースを開放する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>bool</type><methodname>rar_close</methodname> <methodparam><type>resource</type><parameter>rar_file</parameter></methodparam> </methodsynopsis> <para> Rar アーカイブをクローズし、割り当てられた全リソースを開放します。 </para> <para> <function>rar_close</function> は、エラー時に &false; を返します。 </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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/reference.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/reference.xml +++ phpdoc-ja/reference/rar/reference.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <reference id="ref.rar"> <title>Rar 関数</title> <titleabbrev>Rar</titleabbrev> <partintro> <section id="rar.intro"> &reftitle.intro; <para> Rar は、Eugene Roshal が作成した強力で効率的なアーカイバです。 この拡張は Rar アーカイブの読み込み機能を提供しますが、書き込みは サポートしません。なぜなら UnRar ライブラリがその機能を有しておらず、 また実際のところそれ(書き込み)はライセンスで禁じられているからです。 </para> <para> Rar および UnRar についてのより詳細な情報は <ulink url="&url.rar;">&url.rar;</ulink> で見つけられます。 </para> </section> <section id="rar.requirements"> &reftitle.required; &no.requirement; </section> &reference.rar.ini; <section id="rar.install"> &reftitle.install; <para> Rar は、現在 PECL <ulink url="&url.pecl.package;rar">&url.pecl.package;rar</ulink> で取得可能です。 </para> <para> また、以下のコマンドを使用して pear インストーラで Rar 拡張モジュールを インストールすることができます。<command>pear -v install rar</command> </para> <para> tar.gz パッケージをダウンロードし、Rar を手動でインストールすることも 可能です。 <example> <title>Rar のインストール</title> <programlisting role="shell"> <![CDATA[ gunzip rar-xxx.tgz tar -xvf rar-xxx.tar cd rar-xxx phpize../configure && make && make install ]]> </programlisting> </example> </para> <para> Windows ユーザは、拡張 DLL <filename>php_rar.dll</filename> をここから ダウンロードします。<ulink url="&url.pecl.get.win;">&url.pecl.get.win;</ulink> </para> </section> <section id="rar.resources"> &reftitle.resources; <para> Rar 拡張モジュールが使用するリソースはひとつ、すなわち <function>rar_open</function> が返すファイル記述子です。 </para> </section> <section id="rar.constants"> &reftitle.constants; <variablelist> <varlistentry> <term> <constant>RAR_HOST_MSDOS</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>RAR_HOST_OS2</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>RAR_HOST_WIN32</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>RAR_HOST_UNIX</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> <varlistentry> <term> <constant>RAR_HOST_BEOS</constant> (<type>integer</type>) </term> <listitem> <simpara> </simpara> </listitem> </varlistentry> </variablelist> </section> <section id="rar.examples"> &reftitle.examples; <para> <example> <title>Rar 拡張モジュールの概要</title> <programlisting role="php"> <![CDATA[ <?php $rar_file = rar_open('example.rar') or die("Rar アーカイブをオープンできません。"); $entries = rar_list($rar_file); foreach ($entries as $entry) { echo 'ファイル名: ' . $entry->getName() . "\n"; echo '圧縮時のファイルサイズ: ' . $entry->getPackedSize() . "\n"; echo '展開後のファイルサイズ: ' . $entry->getUnpackedSize() . "\n"; $entry->extract('/dir/extract/to/'); } rar_close($rar_file); ?> ]]> </programlisting> </example> </para> <para> この例は Rar アーカイブファイルをオープンし、 指定したディレクトリに個々のファイルを展開します。 </para> </section> </partintro> &reference.rar.functions; </reference> <!-- 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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/ini.xml?r=1.1&p=1 Index: phpdoc-ja/reference/rar/ini.xml +++ phpdoc-ja/reference/rar/ini.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <section id="rar.configuration"> &reftitle.runtime; &no.config; </section> <!-- 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 indent-tabs-mode:nil 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/phpdoc-ja/reference/rar/.cvsignore?r=1.1&p=1 Index: phpdoc-ja/reference/rar/.cvsignore +++ phpdoc-ja/reference/rar/.cvsignore functions.xml
« previous php.doc.ja (#1134) next »