cvs: phpdoc /en/reference/spl arrayobject.xml /en/reference/spl/arrayobject setflags.xml
| From: | Joris van de Sande | Date: | Fri, 03 Jul 2009 18:52:29 +0000 |
| Subject: | cvs: phpdoc /en/reference/spl arrayobject.xml /en/reference/spl/arrayobject setflags.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4324@lists.php.net to get a copy of this message | ||
joris Fri Jul 3 18:52:29 2009 UTC
Modified files:
/phpdoc/en/reference/spl/arrayobject setflags.xml
/phpdoc/en/reference/spl arrayobject.xml
Log:
Added ArrayObject constants description, and added links to theses constants in the setFlags
method documentation.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/arrayobject/setflags.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc/en/reference/spl/arrayobject/setflags.xml
diff -u phpdoc/en/reference/spl/arrayobject/setflags.xml:1.1
phpdoc/en/reference/spl/arrayobject/setflags.xml:1.2
--- phpdoc/en/reference/spl/arrayobject/setflags.xml:1.1 Sat Jun 27 10:16:12 2009
+++ phpdoc/en/reference/spl/arrayobject/setflags.xml Fri Jul 3 18:52:29 2009
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry xml:id="arrayobject.setflags" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ArrayObject::setFlags</refname>
@@ -30,7 +30,9 @@
versions.
</para>
<para>
- The available behavior flags are listed below.
+ The available behavior flags are listed below. The actual
+ meanings of these flags are described in the
+ <link linkend="arrayobject.constants">predefined constants</link>.
<table>
<title>ArrayObject behavior flags</title>
<tgroup cols="2">
@@ -44,13 +46,13 @@
<row>
<entry>1</entry>
<entry>
- <constant>ArrayObject::STD_PROP_LIST</constant>
+ <link
linkend="arrayobject.constants.std-prop-list">ArrayObject::STD_PROP_LIST</link>
</entry>
</row>
<row>
<entry>2</entry>
<entry>
- <constant>ArrayObject::ARRAY_AS_PROPS</constant>
+ <link
linkend="arrayobject.constants.array-as-props">ArrayObject::ARRAY_AS_PROPS</link>
</entry>
</row>
</tbody>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/arrayobject.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/spl/arrayobject.xml
diff -u phpdoc/en/reference/spl/arrayobject.xml:1.5 phpdoc/en/reference/spl/arrayobject.xml:1.6
--- phpdoc/en/reference/spl/arrayobject.xml:1.5 Sat Jun 27 10:16:12 2009
+++ phpdoc/en/reference/spl/arrayobject.xml Fri Jul 3 18:52:29 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc"
xml:id="class.arrayobject" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The ArrayObject class</title>
<titleabbrev>ArrayObject</titleabbrev>
@@ -46,6 +46,19 @@
</oointerface>
</classsynopsisinfo>
+ <classsynopsisinfo role="comment">Constants</classsynopsisinfo>
+ <fieldsynopsis>
+ <modifier>const</modifier>
+ <type>integer</type>
+ <varname
linkend="arrayobject.constants.std-prop-list">STD_PROP_LIST</varname>
+ <initializer>1</initializer>
+ </fieldsynopsis>
+ <fieldsynopsis>
+ <modifier>const</modifier>
+ <type>integer</type>
+ <varname
linkend="arrayobject.constants.array-as-props">ARRAY_AS_PROPS</varname>
+ <initializer>2</initializer>
+ </fieldsynopsis>
<!-- }}} -->
<!-- {{{ If the property is documented below (xml:id=arrayobject.props) use this
@@ -64,6 +77,29 @@
</section>
+ <section xml:id="arrayobject.constants">
+ &reftitle.constants;
+ <section xml:id="arrayobject.constants.flags">
+ <title>ArrayObject Flags</title>
+ <variablelist>
+
+ <varlistentry xml:id="arrayobject.constants.std-prop-list">
+ <term><constant>ArrayObject::STD_PROP_LIST</constant></term>
+ <listitem>
+ <para>Properties of the object have their normal functionality when accessed as list
(var_dump, foreach, etc.).</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry xml:id="arrayobject.constants.array-as-props">
+ <term><constant>ArrayObject::ARRAY_AS_PROPS</constant></term>
+ <listitem>
+ <para>Entries can be accessed as properties (read and write).</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+ </section>
+
<!-- {{{ ArrayObject properties
<section xml:id="arrayobject.props">
&reftitle.properties;