svn: /phpdoc/ja/trunk/reference/zip/ziparchive/ addfile.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Tue, 03 Mar 2020 00:48:44 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=349287

Log:
add flags parameter to ZipArchive::addFile

Changed paths:
    U   phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml

Modified: phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml
===================================================================
--- phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml	2020-03-03 00:48:25 UTC (rev 349286)
+++ phpdoc/ja/trunk/reference/zip/ziparchive/addfile.xml	2020-03-03 00:48:44 UTC (rev 349287)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 340010 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 349282 Maintainer: takagi Status: ready -->
+<!-- Credits: mumumu -->
 <refentry xml:id="ziparchive.addfile" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>ZipArchive::addFile</refname>
@@ -14,6 +15,7 @@
    <methodparam choice="opt"><type>string</type><parameter>localname</parameter><initializer>&null;</initializer></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>
    指定したパスから、ファイルを ZIP アーカイブに追加します。
@@ -56,9 +58,23 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>flags</parameter></term>
+     <listitem>
+      <para>
+       以下のビットマスクの組み合わせ:
+       <constant>ZipArchive::FL_OVERWRITE</constant>,
+       <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>
@@ -65,6 +81,31 @@
    &return.success;
   </para>
  </refsect1>
+
+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>8.0.0 / 1.18.0</entry>
+       <entry>
+        <parameter>flags</parameter> が追加されました。
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
     <para>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.