svn: /phpdoc/fa/trunk/reference/ datetime/datetime/add.xml maxdb/functions/maxdb-stmt-store-result.xml maxdb/functions/maxdb-store-result.xml maxdb/functions/maxdb-thread-safe.xml maxdb/functions/maxdb-use-result.xml mysqli/functions/mysqli-disable-reads-from-master.xml sqlite3/sqlite3stmt/bindparam.xml
[email protected] (Pedram Salehpoor)
| Newsgroups | php.doc.fa |
|---|---|
| Message-ID | <[email protected]> |
psalehpoor Tue, 11 May 2010 17:02:50 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299257
Log:
update
Changed paths:
U phpdoc/fa/trunk/reference/datetime/datetime/add.xml
U phpdoc/fa/trunk/reference/maxdb/functions/maxdb-stmt-store-result.xml
U phpdoc/fa/trunk/reference/maxdb/functions/maxdb-store-result.xml
U phpdoc/fa/trunk/reference/maxdb/functions/maxdb-thread-safe.xml
U phpdoc/fa/trunk/reference/maxdb/functions/maxdb-use-result.xml
U phpdoc/fa/trunk/reference/mysqli/functions/mysqli-disable-reads-from-master.xml
U phpdoc/fa/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml
svn-diffs-299257.txt
(text/x-diff, 14 KB)
Modified: phpdoc/fa/trunk/reference/datetime/datetime/add.xml
===================================================================
--- phpdoc/fa/trunk/reference/datetime/datetime/add.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/datetime/datetime/add.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 295194 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 298971 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
@@ -7,95 +7,148 @@
<refnamediv>
<refname>DateTime::add</refname>
<refpurpose>
- اضافه کردن تعدادی روز، ماه، سال، ساعت، دقیقه و ثانیه به شی DateTime
+ اصافه کردن تعداد روز، ماه، سال، ساعت، دقیقه و ثانیه به شی DateTime
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
+ <para>&style.oop;</para>
<methodsynopsis>
<modifier>public</modifier> <type>DateTime</type><methodname>DateTime::add</methodname>
<methodparam><type>DateInterval</type><parameter>interval</parameter></methodparam>
</methodsynopsis>
+ <para>&style.procedural;</para>
<methodsynopsis>
<type>DateTime</type><methodname>date_add</methodname>
- <methodparam><type>DateTime</type><parameter>object</parameter></methodparam>
+ <methodparam><type>DateTime</type><parameter role="reference">object</parameter></methodparam>
<methodparam><type>DateInterval</type><parameter>interval</parameter></methodparam>
</methodsynopsis>
<para>
- اضافه کردن شی مشخص <classname>DateInterval</classname> به شی مشخص
- <classname>DateTime</classname>.
+ اضافه کردن شی <classname>DateInterval</classname> مشخص به شی
+ <classname>DateTime</classname> مشخص.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
- <para>
- <variablelist>
- &date.datetime.description;
- <varlistentry>
- <term>
- <parameter>interval</parameter>
- </term>
- <listitem>
- <para>
- شی <classname>DateInterval</classname>
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </para>
+ <variablelist>
+ &date.datetime.description;
+ <varlistentry>
+ <term>
+ <parameter>interval</parameter>
+ </term>
+ <listitem>
+ <para>
+ شی <classname>DateInterval</classname>
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- بازگرداندن شی خود تغییریافته (DateTime).
+ &date.datetime.return.modifiedobjectorfalseforfailure;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
- <para>
- <example>
- <title>مثال <function>date_add</function></title>
- <programlisting role="php">
+ <example>
+ <title>مثال <function>DateTime::add</function></title>
+ <para>&style.oop;</para>
+ <programlisting role="php">
<![CDATA[
<?php
+$date = new DateTime('2000-01-01');
+$date->add(new DateInterval('P10D'));
+echo $date->format('Y-m-d') . "\n";
+?>
+]]>
+ </programlisting>
+ <para>&style.procedural;</para>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$date = date_create('2000-01-01');
+date_add($date, date_interval_create_from_date_string('10 days'));
+echo date_format($date, 'Y-m-d');
+?>
+]]>
+ </programlisting>
+ &examples.outputs;
+ <screen>
+<![CDATA[
+2000-01-11
+]]>
+ </screen>
+ </example>
+ <example>
+ <title>مثال بیشتر برای <function>DateTime::add</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$date = new DateTime('2000-01-01');
+$date->add(new DateInterval('PT10H30S'));
+echo $date->format('Y-m-d H:i:s') . "\n";
-$date = new DateTime("18-July-2008 16:30:30");
-echo $date->format("d-m-Y H:i:s").'<br />';
+$date = new DateTime('2000-01-01');
+$date->add(new DateInterval('P7Y5M4DT4H3M2S'));
+echo $date->format('Y-m-d H:i:s') . "\n";
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+2000-01-01 10:00:30
+2007-06-05 04:03:02
+]]>
+ </screen>
+ </example>
+ <example>
+ <title>هنگام اضافه کردن ماه توجه کنید</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$date = new DateTime('2000-12-31');
+$interval = new DateInterval('P1M');
-date_add($date, new DateInterval("P5D"));
-echo '<br />'.$date->format("d-m-Y").' : 5 Days';
+$date->add($interval);
+echo $date->format('Y-m-d') . "\n";
-date_add($date, new DateInterval("P5M"));
-echo '<br />'.$date->format("d-m-Y").' : 5 Months';
-
-date_add($date, new DateInterval("P5Y"));
-echo '<br />'.$date->format("d-m-Y").' : 5 Years';
-
-date_add($date, new DateInterval("P5Y5M5D"));
-echo '<br />'.$date->format("d-m-Y").' : 5 Days, 5 Months, 5 Years';
-
-date_add($date, new DateInterval("P5YT5H"));
-echo '<br />'.$date->format("d-m-Y H:i:s").' : 5 Years, 5 Hours';
-
+$date->add($interval);
+echo $date->format('Y-m-d') . "\n";
?>
]]>
- </programlisting>
- </example>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+2001-01-31
+2001-03-03
+]]>
+ </screen>
+ </example>
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <para>
+ <function>DateTime::modify</function>
+ هنگام استفاده از PHP 5.2 یک جایگزین است.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
- <para>
- <simplelist>
- <member><function>DateTime::sub</function></member>
- <member><function>DateTime::diff</function></member>
- </simplelist>
- </para>
+ <simplelist>
+ <member><function>DateTime::sub</function></member>
+ <member><function>DateTime::diff</function></member>
+ <member><function>DateTime::modify</function></member>
+ </simplelist>
</refsect1>
</refentry>
Modified: phpdoc/fa/trunk/reference/maxdb/functions/maxdb-stmt-store-result.xml
===================================================================
--- phpdoc/fa/trunk/reference/maxdb/functions/maxdb-stmt-store-result.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/maxdb/functions/maxdb-stmt-store-result.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -1,30 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299169 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.maxdb-stmt-store-result">
<refnamediv>
<refname>maxdb_stmt_store_result</refname>
- <refname>maxdb->store_result</refname>
+ <refname>maxdb::store_result</refname>
<refpurpose>انتقال نتیجه از عبارت فراهم شده</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
- <para>شیوه رویهای:</para>
+ <para>&style.procedural;</para>
<methodsynopsis>
<type>bool</type><methodname>maxdb_stmt_store_result</methodname>
<methodparam><type>resource</type><parameter>stmt</parameter></methodparam>
</methodsynopsis>
- <para>شیوه شیگرا (متد):</para>
- <classsynopsis>
- <ooclass><classname>maxdb</classname></ooclass>
+ <para>&style.oop;</para>
<methodsynopsis>
<type>object</type>
- <methodname>store_result</methodname>
+ <methodname>maxdb::store_result</methodname>
<void />
</methodsynopsis>
- </classsynopsis>
<para>
<function>maxdb_stmt_store_result</function> تاثیر کاربردی ندارد و نباید برای بازیابی داده از سرور
MaxDB بکار رود.
Modified: phpdoc/fa/trunk/reference/maxdb/functions/maxdb-store-result.xml
===================================================================
--- phpdoc/fa/trunk/reference/maxdb/functions/maxdb-store-result.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/maxdb/functions/maxdb-store-result.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -1,30 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299169 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.maxdb-store-result">
<refnamediv>
<refname>maxdb_store_result</refname>
- <refname>maxdb->store_result</refname>
+ <refname>maxdb::store_result</refname>
<refpurpose>انتقال مجموعه نتیحه از آخرین پرس و جو</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
- <para>شیوه رویهای:</para>
+ <para>&style.procedural;</para>
<methodsynopsis>
<type>resource</type><methodname>maxdb_store_result</methodname>
<methodparam><type>resource</type><parameter>link</parameter></methodparam>
</methodsynopsis>
- <para>شیوه شیگرا (متد):</para>
- <classsynopsis>
- <ooclass><classname>maxdb</classname></ooclass>
+ <para>&style.oop;</para>
<methodsynopsis>
<type>object</type>
- <methodname>store_result</methodname>
+ <methodname>maxdb::store_result</methodname>
<void />
</methodsynopsis>
- </classsynopsis>
+
<para>
این تابع هیچ تاثیر کاربردی ندارد.
</para>
Modified: phpdoc/fa/trunk/reference/maxdb/functions/maxdb-thread-safe.xml
===================================================================
--- phpdoc/fa/trunk/reference/maxdb/functions/maxdb-thread-safe.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/maxdb/functions/maxdb-thread-safe.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299169 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.maxdb-thread-safe">
@@ -10,7 +10,6 @@
<refsect1 role="description">
&reftitle.description;
- <para>Procedural style:</para>
<methodsynopsis>
<type>bool</type><methodname>maxdb_thread_safe</methodname>
<void />
Modified: phpdoc/fa/trunk/reference/maxdb/functions/maxdb-use-result.xml
===================================================================
--- phpdoc/fa/trunk/reference/maxdb/functions/maxdb-use-result.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/maxdb/functions/maxdb-use-result.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -1,29 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299169 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.maxdb-use-result">
<refnamediv>
<refname>maxdb_use_result</refname>
- <refname>maxdb->use_result</refname>
+ <refname>maxdb::use_result</refname>
<refpurpose>شروع بازیابی نتیجه</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
- <para>Procedural style:</para>
+ <para>&style.procedural;</para>
<methodsynopsis>
<type>resource</type><methodname>maxdb_use_result</methodname>
<methodparam><type>resource</type><parameter>link</parameter></methodparam>
</methodsynopsis>
- <para>Object oriented style (method):</para>
- <classsynopsis>
- <ooclass><classname>maxdb</classname></ooclass>
+ <para>&style.oop;</para>
<methodsynopsis>
- <type>resource</type><methodname>use_result</methodname>
+ <type>resource</type><methodname>maxdb::use_result</methodname>
<void />
</methodsynopsis>
- </classsynopsis>
<para>
<function>maxdb_use_result</function> تاثیری ندارد.
</para>
Modified: phpdoc/fa/trunk/reference/mysqli/functions/mysqli-disable-reads-from-master.xml
===================================================================
--- phpdoc/fa/trunk/reference/mysqli/functions/mysqli-disable-reads-from-master.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/mysqli/functions/mysqli-disable-reads-from-master.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -11,19 +11,16 @@
<refsect1 role="description">
&reftitle.description;
- <para>&style.oop;</para>
+ <para>&style.oop;</para>
<methodsynopsis>
- <type>bool</type><methodname>mysqli::disable_reads_from_master</methodname>
+ <type>void</type><methodname>mysqli::disable_reads_from_master</methodname>
+ <void />
+ </methodsynopsis>
+ <para>&style.procedural;</para>
+ <methodsynopsis>
+ <type>bool</type><methodname>mysqli_disable_reads_from_master</methodname>
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
</methodsynopsis>
- <para>&style.procedural;</para>
- <classsynopsis>
- <ooclass><classname>mysqli</classname></ooclass>
- <methodsynopsis>
- <type>void</type><methodname>disable_reads_from_master</methodname>
- <void />
- </methodsynopsis>
- </classsynopsis>
&warn.undocumented.func;
&warn.deprecated.function.removed-5-3-0;
Modified: phpdoc/fa/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml
===================================================================
--- phpdoc/fa/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml 2010-05-11 16:40:03 UTC (rev 299256)
+++ phpdoc/fa/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml 2010-05-11 17:02:50 UTC (rev 299257)
@@ -28,8 +28,24 @@
<variablelist>
<varlistentry>
<term><parameter>sql_param</parameter></term>
+ <listitem>
+ <para>
+ <type>string</type> شناسایی کننده متغیر عبارت که پارامتر باید به آن انقیاد یابد.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>param</parameter></term>
<listitem>
<para>
+ پارامتر برای انقیاد به متغیر عبارت.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>type</parameter></term>
+ <listitem>
+ <para>
نوع داده مقدار برای انقیاد.
<itemizedlist>
<listitem>