svn: /phpdoc/ar/trunk/language/predefined/ arrayaccess.xml

From: Date: Thu, 15 Jan 2015 15:20:31 +0000
Subject: svn: /phpdoc/ar/trunk/language/predefined/ arrayaccess.xml
Groups: php.doc.ar 
Request: Send a blank email to doc-ar+get-863@lists.php.net to get a copy of this message
visualmind Thu, 15 Jan 2015 15:20:31 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=335752 Log: Translation submitted by Mohammed Al-qarni Changed paths: U phpdoc/ar/trunk/language/predefined/arrayaccess.xml Modified: phpdoc/ar/trunk/language/predefined/arrayaccess.xml =================================================================== --- phpdoc/ar/trunk/language/predefined/arrayaccess.xml 2015-01-15 15:19:04 UTC (rev 335751) +++ phpdoc/ar/trunk/language/predefined/arrayaccess.xml 2015-01-15 15:20:31 UTC (rev 335752) @@ -1,46 +1,46 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 301180 Maintainer: visualmind Status: ready Editor: Anonymous --> -<!-- Reviewed: no --> +<!-- EN-Revision: 335080 Maintainer: visualmind Status: ready Editor: Mohammed Al-qarni --> +<!-- Reviewed: yes --> <phpdoc:classref xml:id="class.arrayaccess" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> - + <title>واجهة الوصول للمصفوفات ArrayAccess</title> <titleabbrev>ArrayAccess</titleabbrev> - + <partintro> - -<!-- {{{ ArrayAccess intro --> + + <!-- {{{ ArrayAccess intro --> <section xml:id="arrayaccess.intro"> &reftitle.intro; <para> - هذه الواجهة توفر إمكانية الوصول للكائنات على شكل مصفوفات + هذه الواجهة تتيح الوصول للكائنات كما لو كانت مصفوفة </para> </section> -<!-- }}} --> - + <!-- }}} --> + <section xml:id="arrayaccess.synopsis"> &reftitle.interfacesynopsis; - -<!-- {{{ Synopsis --> + + <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>ArrayAccess</classname></ooclass> - -<!-- {{{ Class synopsis --> + + <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>ArrayAccess</classname> </ooclass> </classsynopsisinfo> -<!-- }}} --> + <!-- }}} --> <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.arrayaccess')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> -<!-- }}} --> - + <!-- }}} --> + </section> - + <section xml:id="arrayaccess.examples"> <example xml:id="arrayaccess.example.basic"><!-- {{{ --> <title>طريقة الاستخدام</title> @@ -49,6 +49,7 @@ <?php class obj implements arrayaccess { private $container = array(); + public function __construct() { $this->container = array( "one" => 1, @@ -56,6 +57,7 @@ "three" => 3, ); } + public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; @@ -63,12 +65,15 @@ $this->container[$offset] = $value; } } + public function offsetExists($offset) { return isset($this->container[$offset]); } + public function offsetUnset($offset) { unset($this->container[$offset]); } + public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } @@ -113,14 +118,14 @@ </screen> </example><!-- }}} --> </section> - + </partintro> - + &language.predefined.arrayaccess.offsetexists; &language.predefined.arrayaccess.offsetget; &language.predefined.arrayaccess.offsetset; &language.predefined.arrayaccess.offsetunset; - + </phpdoc:classref> <!-- Keep this comment at the end of the file

« previous php.doc.ar (#863) next »