Add parameter and initializers

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326112 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2012-06-12 00:36:15 +00:00
parent e5cd37977a
commit 66a7b80b4a
2 changed files with 14 additions and 4 deletions

View file

@ -11,7 +11,8 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <methodname>ArrayIterator::__construct</methodname>
<methodparam><type>mixed</type><parameter>array</parameter></methodparam>
<methodparam choice="opt"><type>mixed</type><parameter>array</parameter><initializer>array()</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Constructs an <classname>ArrayIterator</classname> <type>object</type>.
@ -33,6 +34,15 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>flags</parameter></term>
<listitem>
<para>
Flags to control the behaviour of the <classname>ArrayObject</classname> object.
See <methodname>ArrayObject::setFlags</methodname>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

View file

@ -11,8 +11,8 @@
<constructorsynopsis>
<modifier>public</modifier> <methodname>ArrayObject::__construct</methodname>
<methodparam choice="opt"><type>mixed</type><parameter>input</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>iterator_class</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
<methodparam choice="opt"><type>string</type><parameter>iterator_class</parameter><initializer>"ArrayIterator"</initializer></methodparam>
</constructorsynopsis>
<para>
This constructs a new array <type>object</type>.
@ -37,6 +37,7 @@
<listitem>
<para>
Flags to control the behaviour of the <classname>ArrayObject</classname> object.
See <methodname>ArrayObject::setFlags</methodname>.
</para>
</listitem>
</varlistentry>
@ -45,7 +46,6 @@
<listitem>
<para>
Specify the class that will be used for iteration of the <classname>ArrayObject</classname> object.
<classname>ArrayIterator</classname> is the default class used.
</para>
</listitem>
</varlistentry>