svn: /phpdoc/ja/trunk/reference/zip/ziparchive/ addfromstring.xml
[email protected] (Yoshinari Takaoka)
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
mumumu Tue, 03 Mar 2020 00:48:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=349285
Log:
add flags parameter to ZipArchive::addFromString
Changed paths:
U phpdoc/ja/trunk/reference/zip/ziparchive/addfromstring.xml
Modified: phpdoc/ja/trunk/reference/zip/ziparchive/addfromstring.xml
===================================================================
--- phpdoc/ja/trunk/reference/zip/ziparchive/addfromstring.xml 2020-03-03 00:47:22 UTC (rev 349284)
+++ phpdoc/ja/trunk/reference/zip/ziparchive/addfromstring.xml 2020-03-03 00:48:08 UTC (rev 349285)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 340010 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 349281 Maintainer: takagi Status: ready -->
+<!-- Credits: mumumu -->
<refentry xml:id="ziparchive.addfromstring" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ZipArchive::addFromString</refname>
@@ -12,6 +13,7 @@
<type>bool</type><methodname>ZipArchive::addFromString</methodname>
<methodparam><type>string</type><parameter>localname</parameter></methodparam>
<methodparam><type>string</type><parameter>contents</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ZipArchive::FL_OVERWRITE</initializer></methodparam>
</methodsynopsis>
<para>
内容を指定して、ファイルを ZIP アーカイブに追加します。
@@ -39,6 +41,19 @@
</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>
@@ -48,6 +63,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;
<example>