svn: /phpdoc/fa/trunk/reference/simplexml/simplexmlelement/ count.xml

[email protected] (Yannick Torres)
Newsgroups php.doc.fa
Message-ID <[email protected]>
yannick                                  Sat, 01 May 2010 20:04:33 +0000

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

Log:
New translation

Changed paths:
    A   phpdoc/fa/trunk/reference/simplexml/simplexmlelement/count.xml

Added: phpdoc/fa/trunk/reference/simplexml/simplexmlelement/count.xml
===================================================================
--- phpdoc/fa/trunk/reference/simplexml/simplexmlelement/count.xml	                        (rev 0)
+++ phpdoc/fa/trunk/reference/simplexml/simplexmlelement/count.xml	2010-05-01 20:04:33 UTC (rev 298846)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 295805 Maintainer: pedram Status: ready -->
+<!-- Reviewed: yes -->
+<!-- $Revision$ -->
+
+<refentry xml:id="simplexmlelement.count" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+  <refname>SimpleXMLElement::count</refname>
+  <refpurpose>شمارش فرزندان یک جز</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>integer</type><methodname>SimpleXMLElement::count</methodname>
+   <void />
+  </methodsynopsis>
+  <para>
+   این متد تعداد فرزندان جز را باز می‌گرداند.
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   بازگرداندن تعداد اجزا یک جز.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title>شمارش تعداد فرزندان</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+$xml = <<<EOF
+<people>
+ <person name="Person 1">
+  <child/>
+  <child/>
+  <child/>
+ </person>
+ <person name="Person 2">
+  <child/>
+  <child/>
+  <child/>
+  <child/>
+  <child/>
+ </person>
+</people>
+EOF;
+
+$elem = new SimpleXMLElement($xml);
+
+foreach ($elem as $person) {
+    printf("%s has got %d children.\n", $person['name'], $person->count());
+}
+?>
+]]>
+    </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+Person 1 has got 3 children.
+Person 2 has got 5 children.
+]]>
+    </screen>
+   </example>
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><methodname>SimpleXMLElement::children</methodname></member>
+   </simplelist>
+  </para>
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
+


Property changes on: phpdoc/fa/trunk/reference/simplexml/simplexmlelement/count.xml
___________________________________________________________________
Added: svn:keywords
   + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
   + native
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.