Iterator & IteratorAggregate: improvements

git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@343692 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Alexey Pyltsyn
2017-12-22 15:44:44 +00:00
parent 3ad174b485
commit 4ac02f75dd
8 changed files with 25 additions and 25 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 9fc4150f84c78d4fe1ce7d46a9334f04fb474d35 Maintainer: mch Status: ready -->
<!-- $Revision$ -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<phpdoc:classref xml:id="class.iterator" 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">

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="iterator.current" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Iterator::current</refname>
<refpurpose>Возвращает текущий элемент</refpurpose>
<refpurpose>Возврат текущего элемента</refpurpose>
</refnamediv>
<refsect1 role="description">

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 37894faed3f858602e4dbd34567c26df08332b16 Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="iterator.key" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Iterator::key</refname>
<refpurpose>Возвращает ключ текущего элемента</refpurpose>
<refpurpose>Возврат ключа текущего элемента</refpurpose>
</refnamediv>
<refsect1 role="description">
@ -36,7 +36,7 @@
<refsect1 role="errors"><!-- {{{ -->
&reftitle.errors;
<para>
Порождает <constant>E_NOTICE</constant> при неудачном выполнении.
Создает <constant>E_NOTICE</constant> при неудачном выполнении.
</para>
</refsect1><!-- }}} -->

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="iterator.next" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Iterator::next</refname>
<refpurpose>Переходит к следующему элементу</refpurpose>
<refpurpose>Переход к следующему элементу</refpurpose>
</refnamediv>
<refsect1 role="description">

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="iterator.rewind" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Iterator::rewind</refname>
<refpurpose>Возвращает итератор на первый элемент</refpurpose>
<refpurpose>Перемотать итератор на первый элемент</refpurpose>
</refnamediv>
<refsect1 role="description">

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="iterator.valid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Iterator::valid</refname>
<refpurpose>Проверка корректности позиции</refpurpose>
<refpurpose>Проверяет корректность текущей позиции</refpurpose>
</refnamediv>
<refsect1 role="description">

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 4724b47c25b48f509355d27291aa6893ad0b40c0 Maintainer: mch Status: ready -->
<!-- $Revision$ -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<phpdoc:classref xml:id="class.iteratoraggregate" 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">
@ -53,12 +53,12 @@
<![CDATA[
<?php
class myData implements IteratorAggregate {
public $property1 = "Public property one";
public $property2 = "Public property two";
public $property3 = "Public property three";
public $property1 = "Первое общедоступное свойство";
public $property2 = "Второе общедоступное свойство";
public $property3 = "Третье общедоступное свойство";
public function __construct() {
$this->property4 = "last property";
$this->property4 = "последнее свойство";
}
public function getIterator() {
@ -79,16 +79,16 @@ foreach($obj as $key => $value) {
<screen>
<![CDATA[
string(9) "property1"
string(19) "Public property one"
string(19) "Первое общедоступное свойство"
string(9) "property2"
string(19) "Public property two"
string(19) "Второе общедоступное свойство"
string(9) "property3"
string(21) "Public property three"
string(21) "Третье общедоступное свойство"
string(9) "property4"
string(13) "last property"
string(13) "последнее свойство"
]]>
</screen>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="iteratoraggregate.getiterator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>IteratorAggregate::getIterator</refname>
<refpurpose>Возвращает внешний итератор</refpurpose>
<refpurpose>Получить внешний итератор</refpurpose>
</refnamediv>
<refsect1 role="description">
@ -28,7 +28,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Экземпляр объекта, использующего <classname>Iterator</classname> или
Экземпляр объекта, реализующий <classname>Iterator</classname> или
<classname>Traversable</classname>
</para>
</refsect1>
@ -36,7 +36,7 @@
<refsect1 role="errors"><!-- {{{ -->
&reftitle.errors;
<para>
Вызывает <classname>Exception</classname> в случае неудачи.
Выбрасывает <classname>Exception</classname> в случае неудачи.
</para>
</refsect1><!-- }}} -->