svn: /phpdoc/fa/trunk/ language/oop5/autoload.xml reference/apc/book.xml reference/apc/constants.xml reference/array/functions/natsort.xml reference/datetime/datetime/construct.xml reference/oauth/examples.xml reference/spl/splheap/top.xml reference/spl/splpriorityqueue/top.xml
[email protected] (Pedram Salehpoor)
| Newsgroups | php.doc.fa |
|---|---|
| Message-ID | <[email protected]> |
psalehpoor Thu, 27 May 2010 19:58:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299875
Log:
updated
Changed paths:
U phpdoc/fa/trunk/language/oop5/autoload.xml
U phpdoc/fa/trunk/reference/apc/book.xml
U phpdoc/fa/trunk/reference/apc/constants.xml
U phpdoc/fa/trunk/reference/array/functions/natsort.xml
U phpdoc/fa/trunk/reference/datetime/datetime/construct.xml
U phpdoc/fa/trunk/reference/oauth/examples.xml
U phpdoc/fa/trunk/reference/spl/splheap/top.xml
U phpdoc/fa/trunk/reference/spl/splpriorityqueue/top.xml
svn-diffs-299875.txt
(text/x-diff, 12.3 KB)
Modified: phpdoc/fa/trunk/language/oop5/autoload.xml
===================================================================
--- phpdoc/fa/trunk/language/oop5/autoload.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/language/oop5/autoload.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299619 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook">
Modified: phpdoc/fa/trunk/reference/apc/book.xml
===================================================================
--- phpdoc/fa/trunk/reference/apc/book.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/apc/book.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 288721 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299728 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<!-- Purpose: basic.php -->
@@ -21,6 +21,7 @@
&reference.apc.setup;
&reference.apc.constants;
&reference.apc.reference;
+ &reference.apc.apciterator;
</book>
Modified: phpdoc/fa/trunk/reference/apc/constants.xml
===================================================================
--- phpdoc/fa/trunk/reference/apc/constants.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/apc/constants.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,11 +1,247 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299728 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<appendix xml:id="apc.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
- &no.constants;
+ &extension.constants;
+
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term>
+ <constant>APC_BIN_VERIFY_CRC32</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_BIN_VERIFY_MD5</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_ALL</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_ATIME</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_CTIME</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_DEVICE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_DTIME</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_FILENAME</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_INODE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_KEY</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_MD5</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_MEM_SIZE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_MTIME</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_NONE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_NUM_HITS</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_REFCOUNT</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_TTL</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_TYPE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_ITER_VALUE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_LIST_ACTIVE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>APC_LIST_DELETED</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
</appendix>
<!-- Keep this comment at the end of the file
Modified: phpdoc/fa/trunk/reference/array/functions/natsort.xml
===================================================================
--- phpdoc/fa/trunk/reference/array/functions/natsort.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/array/functions/natsort.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 299407 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299436 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="function.natsort" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -40,11 +40,34 @@
&return.success;
</para>
</refsect1>
- <refsect1 role="examples">
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.2.10</entry>
+ <entry>
+ عددهای جدا شده توسط صفر (به عنوان مثال '00005') اساسا 0 را در نظر نمیگیرد
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
+ <refsect1 role="examples">
&reftitle.examples;
<para>
<example>
- <title>مثال <function>natsort</function></title>
+ <title>مثال <function>natsort</function> نمایشدهنده استفاده اساسی</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -87,6 +110,116 @@
</para>
</example>
</para>
+ <example>
+ <title>مثالهای <function>natsort</function> نشاندهنده گرفتنیهای ممکن</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo "Negative numbers\n";
+$negative = array('-5','3','-2','0','-1000','9','1');
+print_r($negative);
+natsort($negative);
+print_r($negative);
+
+echo "Zero padding\n";
+$zeros = array('09', '8', '10', '009', '011', '0');
+print_r($zeros);
+natsort($zeros);
+print_r($zeros);
+
+echo "Other characters interfering\n";
+$images_oops = array('image_1.jpg','image_12.jpg', 'image_21.jpg', 'image_4.jpg');
+print_r($images_oops);
+natsort($images_oops);
+print_r($images_oops);
+
+echo "Sort by keys\n";
+$smoothie = array('orange' => 1, 'apple' => 1, 'yogurt' => 4, 'banana' => 4);
+print_r($smoothie);
+uksort( $smoothie, 'strnatcmp');
+print_r($smoothie);
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Negative numbers
+Array
+(
+ [0] => -5
+ [1] => 3
+ [2] => -2
+ [3] => 0
+ [4] => -1000
+ [5] => 9
+ [6] => 1
+)
+Array
+(
+ [2] => -2
+ [0] => -5
+ [4] => -1000
+ [3] => 0
+ [6] => 1
+ [1] => 3
+ [5] => 9
+)
+
+Zero padding
+Array
+(
+ [0] => 09
+ [1] => 8
+ [2] => 10
+ [3] => 009
+ [4] => 011
+ [5] => 0
+)
+Array
+(
+ [5] => 0
+ [1] => 8
+ [3] => 009
+ [0] => 09
+ [2] => 10
+ [4] => 011
+)
+
+Other characters interfering
+Array
+(
+ [0] => image_1.jpg
+ [1] => image_12.jpg
+ [2] => image_21.jpg
+ [3] => image_4.jpg
+)
+Array
+(
+ [0] => image_1.jpg
+ [3] => image_4.jpg
+ [1] => image_12.jpg
+ [2] => image_21.jpg
+)
+
+Sort by keys
+Array
+(
+ [orange] => 1
+ [apple] => 1
+ [yogurt] => 4
+ [banana] => 4
+)
+Array
+(
+ [apple] => 1
+ [banana] => 4
+ [orange] => 1
+ [yogurt] => 4
+)
+]]>
+ </screen>
+ </example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
Modified: phpdoc/fa/trunk/reference/datetime/datetime/construct.xml
===================================================================
--- phpdoc/fa/trunk/reference/datetime/datetime/construct.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/datetime/datetime/construct.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 299461 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299487 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
Modified: phpdoc/fa/trunk/reference/oauth/examples.xml
===================================================================
--- phpdoc/fa/trunk/reference/oauth/examples.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/oauth/examples.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 288721 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299869 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
@@ -40,7 +40,7 @@
$_SESSION['state'] = 2;
$_SESSION['token'] = $access_token_info['oauth_token'];
$_SESSION['secret'] = $access_token_info['oauth_token_secret'];
- }
+ }
$oauth->setToken($_SESSION['token'],$_SESSION['secret']);
$oauth->fetch("$api_url/user.json");
$json = json_decode($oauth->getLastResponse());
Modified: phpdoc/fa/trunk/reference/spl/splheap/top.xml
===================================================================
--- phpdoc/fa/trunk/reference/spl/splheap/top.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/spl/splheap/top.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297078 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299795 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="splheap.top" xmlns="http://docbook.org/ns/docbook">
Modified: phpdoc/fa/trunk/reference/spl/splpriorityqueue/top.xml
===================================================================
--- phpdoc/fa/trunk/reference/spl/splpriorityqueue/top.xml 2010-05-27 19:57:24 UTC (rev 299874)
+++ phpdoc/fa/trunk/reference/spl/splpriorityqueue/top.xml 2010-05-27 19:58:21 UTC (rev 299875)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 297078 Maintainer: pedram Status: ready -->
+<!-- EN-Revision: 299795 Maintainer: pedram Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="splpriorityqueue.top" xmlns="http://docbook.org/ns/docbook">