svn: /phpdoc/ja/trunk/reference/zip/ziparchive/ addfile.xml replacefile.xml
[email protected] (Yoshinari Takaoka)
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
mumumu Tue, 03 Mar 2020 21:48:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=349297
Log:
add ZipArchive::replaceFile() method
Changed paths:
U phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml
A phpdoc/ja/trunk/reference/zip/ziparchive/replacefile.xml
Modified: phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml
===================================================================
--- phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml 2020-03-03 21:48:28 UTC (rev 349296)
+++ phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml 2020-03-03 21:48:51 UTC (rev 349297)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 349282 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 349293 Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->
<refentry xml:id="ziparchive.addfile" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -131,6 +131,16 @@
</programlisting>
</example>
</refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><methodname>ZipArchive::replaceFile</methodname></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
<refsect1 role="notes">
&reftitle.notes;
<note>
Added: phpdoc/ja/trunk/reference/zip/ziparchive/replacefile.xml
===================================================================
--- phpdoc/ja/trunk/reference/zip/ziparchive/replacefile.xml (rev 0)
+++ phpdoc/ja/trunk/reference/zip/ziparchive/replacefile.xml 2020-03-03 21:48:51 UTC (rev 349297)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 349293 Maintainer: mumumu Status: ready -->
+<refentry xml:id="ziparchive.replacefile" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>ZipArchive::replaceFile</refname>
+ <refpurpose>指定されたパスのファイルにアーカイブの一部を置き換える</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>bool</type><methodname>ZipArchive::replaceFile</methodname>
+ <methodparam><type>string</type><parameter>filename</parameter></methodparam>
+ <methodparam><type>int</type><parameter>index</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>start</parameter><initializer>0</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>0</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ZipArchive::FL_OVERWRITE</initializer></methodparam>
+ </methodsynopsis>
+ <para>
+ 指定されたパスのファイルにアーカイブの一部を置き換えます。
+ </para>
+ &zip.filename.separator;
+ </refsect1>
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>filename</parameter></term>
+ <listitem>
+ <para>
+ 追加するファイルのパス。
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>index</parameter></term>
+ <listitem>
+ <para>
+ 置き換えるファイルのインデックス。名前は変更されません。
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>start</parameter></term>
+ <listitem>
+ <para>
+ このパラメータをここでは使いませんが、
+ <classname>ZipArchive</classname> を継承するのに必要です。
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>length</parameter></term>
+ <listitem>
+ <para>
+ このパラメータをここでは使いませんが、
+ <classname>ZipArchive</classname> を継承するのに必要です。
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>flags</parameter></term>
+ <listitem>
+ <para>
+ 以下のビットマスクの組み合わせ:
+ <constant>ZipArchive::FL_ENC_GUESS</constant>,
+ <constant>ZipArchive::FL_ENC_UTF_8</constant>,
+ <constant>ZipArchive::FL_ENC_CP437</constant>.
+ これらの定数の振る舞いは、<link linkend="zip.constants">定義済みの定数</link> で説明しています。
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ この例は、ZIP ファイルアーカイブ <filename>test.zip</filename>
+ をオープンし、ファイル <filename>/path/to/index.txt</filename>
+ を <filename>newname.txt</filename> という名前で追加します。
+ </para>
+ <example>
+ <title>オープンおよび追加</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$zip = new ZipArchive;
+if ($zip->open('test.zip') === TRUE) {
+ $zip->replaceFile('/path/to/index.txt', 1);
+ $zip->close();
+ echo 'ok';
+} else {
+ echo 'failed';
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><methodname>ZipArchive::addFile</methodname></member>
+ </simplelist>
+ </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:"~/.phpdoc/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
+-->
Property changes on: phpdoc/ja/trunk/reference/zip/ziparchive/replacefile.xml
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property