svn: /phpdoc/fa/trunk/reference/phar/PharData/ construct.xml

[email protected] (Pedram Salehpoor)
Newsgroups php.doc.fa
Message-ID <[email protected]>
psalehpoor                               Tue, 21 Dec 2010 19:11:08 +0000

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

Log:
update

Changed paths:
    U   phpdoc/fa/trunk/reference/phar/PharData/construct.xml

Modified: phpdoc/fa/trunk/reference/phar/PharData/construct.xml
===================================================================
--- phpdoc/fa/trunk/reference/phar/PharData/construct.xml	2010-12-21 19:07:37 UTC (rev 306547)
+++ phpdoc/fa/trunk/reference/phar/PharData/construct.xml	2010-12-21 19:11:08 UTC (rev 306548)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
-<!-- Reviewed: yes -->
+<!-- EN-Revision: 303712 Maintainer: pedram Status: ready -->
+<!-- Reviewed: no -->
 <!-- $Revision$ -->

 <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="phardata.construct">
  <refnamediv>
   <refname>PharData::__construct</refname>
-  <refpurpose>ساخت tar غیرقابل اجرا یا شی آرشیو zip</refpurpose>
+  <refpurpose>Construct a non-executable tar or zip archive object</refpurpose>
  </refnamediv>
  <refsect1 role="description">
   &reftitle.description;
@@ -14,6 +14,8 @@
    <type>void</type><methodname>PharData::__construct</methodname>
    <methodparam><type>string</type><parameter>fname</parameter></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
+   <methodparam choice="opt"><type>string</type><parameter>alias</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>format</parameter><initializer><constant>Phar::TAR</constant></initializer></methodparam>
   </methodsynopsis>

  </refsect1>
@@ -25,7 +27,7 @@
      <term><parameter>fname</parameter></term>
      <listitem>
       <para>
-       مسیر آرشیو موجود tar/zip archive یا آرشیوی که ساخته خواهد شد
+       Path to an existing tar/zip archive or to-be-created archive
       </para>
      </listitem>
     </varlistentry>
@@ -33,10 +35,30 @@
      <term><parameter>flags</parameter></term>
      <listitem>
       <para>
-       پرچم‌های ارسالی به کلاس والد <classname>Phar</classname><classname>RecursiveDirectoryIterator</classname>.
+       Flags to pass to <classname>Phar</classname> parent class
+       <classname>RecursiveDirectoryIterator</classname>.
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>alias</parameter></term>
+     <listitem>
+      <para>
+       Alias with which this Phar archive should be referred to in calls to stream
+       functionality.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>format</parameter></term>
+     <listitem>
+      <para>
+       One of the
+       <link linkend="phar.constants.fileformat">file format constants</link>
+       available within the <classname>Phar</classname> class.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -44,8 +66,9 @@
  <refsect1 role="errors">
   &reftitle.errors;
   <para>
-   ایجاد BadMethodCallException اگر دوبار فراخوانی شود، UnexpectedValueException
-   اگر آرشیو phar نتواند باز شود.
+   Throws <classname>BadMethodCallException</classname> if called twice;
+   <classname>UnexpectedValueException</classname> if the Phar archive can't
+   be opened.
   </para>
  </refsect1>

@@ -54,7 +77,7 @@
   &reftitle.examples;
   <para>
    <example>
-    <title>مثال <function>PharData::__construct</function></title>
+    <title>A <function>PharData::__construct</function> example</title>
      <para>
       <programlisting role="php">
        <![CDATA[
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.