svn: /phpdoc/en/trunk/reference/mongodb/ architecture.xml mongodb/driver/exception/writeexception/getwriteresult.xml

From: Date: Thu, 17 Dec 2015 22:00:06 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongodb/ architecture.xml mongodb/driver/exception/writeexception/getwriteresult.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13904@lists.php.net to get a copy of this message
jmikola Thu, 17 Dec 2015 22:00:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=338288 Log: Fix method references in MongoDB driver docs Changed paths: U phpdoc/en/trunk/reference/mongodb/architecture.xml U phpdoc/en/trunk/reference/mongodb/mongodb/driver/exception/writeexception/getwriteresult.xml Modified: phpdoc/en/trunk/reference/mongodb/architecture.xml =================================================================== --- phpdoc/en/trunk/reference/mongodb/architecture.xml 2015-12-17 21:57:19 UTC (rev 338287) +++ phpdoc/en/trunk/reference/mongodb/architecture.xml 2015-12-17 22:00:06 UTC (rev 338288) @@ -231,9 +231,9 @@ <para> If an object is of a class that implements the <classname>MongoDB\BSON\Serializable</classname> interface, call - <methodname>bsonSerialize</methodname> and use the returned array or - <classname>stdClass</classname> to serialize as a BSON document or - array. The BSON type will be determined by the following: + <methodname>MongoDB\BSON\Serializable::bsonSerialize</methodname> and use + the returned array or <classname>stdClass</classname> to serialize as a + BSON document or array. The BSON type will be determined by the following: </para> <para> @@ -249,21 +249,24 @@ </para> </listitem> <listitem> - <para>If <methodname>bsonSerialize</methodname> returns a packed - array, serialize as a BSON array. + <para> + If <methodname>MongoDB\BSON\Serializable::bsonSerialize</methodname> + returns a packed array, serialize as a BSON array. </para> </listitem> <listitem> - <para>If <methodname>bsonSerialize</methodname> returns a non-packed - array or <classname>stdClass</classname>, serialize as a BSON - document. + <para> + If <methodname>MongoDB\BSON\Serializable::bsonSerialize</methodname> + returns a non-packed array or <classname>stdClass</classname>, + serialize as a BSON document. </para> </listitem> <listitem> - <para>If <methodname>bsonSerialize</methodname> did not return an - array or <classname>stdClass</classname>, throw an - <classname>MongoDB\Driver\Exception\UnexpectedValueException</classname> - exception. + <para> + If <methodname>MongoDB\BSON\Serializable::bsonSerialize</methodname> + did not return an array or <classname>stdClass</classname>, throw an + <classname>MongoDB\Driver\Exception\UnexpectedValueException</classname> + exception. </para> </listitem> </orderedlist> @@ -282,13 +285,15 @@ <para> The <property>__pclass</property> property is added to the array or - object returned by <methodname>bsonSerialize</methodname>, which means - it will overwrite any <property>__pclass</property> key/property in the - <methodname>bsonSerialize</methodname> return value. If you want to - avoid this behaviour and set your own <property>__pclass</property> - value, you must <emphasis>not</emphasis> implement - <classname>MongoDB\BSON\Persistable</classname> and should instead - implement <classname>MongoDB\BSON\Serializable</classname> directly. + object returned by + <methodname>MongoDB\BSON\Serializable::bsonSerialize</methodname>, which + means it will overwrite any <property>__pclass</property> key/property in + the <methodname>MongoDB\BSON\Serializable::bsonSerialize</methodname> + return value. If you want to avoid this behaviour and set your own + <property>__pclass</property> value, you must <emphasis>not</emphasis> + implement <classname>MongoDB\BSON\Persistable</classname> and should + instead implement <classname>MongoDB\BSON\Serializable</classname> + directly. </para> <section> @@ -461,8 +466,9 @@ <classname>MongoDB\BSON\Persistable</classname> interface, then the properties of the BSON document, including the <property>__pclass</property> property, are sent as an associative - array to the <methodname>bsonUnserialize</methodname> function to - initialise the object's properties. + array to the + <methodname>MongoDB\BSON\Unserializable::bsonUnserialize</methodname> + function to initialise the object's properties. </para> <para> If the named class does not exist or does not implement the @@ -531,8 +537,8 @@ The properties of the BSON document, <emphasis>including</emphasis> the <property>__pclass</property> property if it exists, will be sent as an associative array to the - <methodname>bsonUnserialize</methodname> function to initialise the - object's properties. + <methodname>MongoDB\BSON\Unserializable::bsonUnserialize</methodname> + function to initialise the object's properties. </para> </listitem> </varlistentry> @@ -603,10 +609,10 @@ </para> <para> - The <methodname>bsonUnserialize</methodname> method of YourClass, - OurClass, TheirClass iterate over the array and set the properties - without modifications. It <emphasis>also</emphasis> sets the - <literal>$unserialized</literal> property to <literal>true</literal>: + The <methodname>MongoDB\BSON\Unserializable::bsonUnserialize</methodname> + method of YourClass, OurClass, TheirClass iterate over the array and set + the properties without modifications. It <emphasis>also</emphasis> sets + the <literal>$unserialized</literal> property to <literal>true</literal>: <programlisting> function bsonUnserialize( array $map ) Modified: phpdoc/en/trunk/reference/mongodb/mongodb/driver/exception/writeexception/getwriteresult.xml =================================================================== --- phpdoc/en/trunk/reference/mongodb/mongodb/driver/exception/writeexception/getwriteresult.xml 2015-12-17 21:57:19 UTC (rev 338287) +++ phpdoc/en/trunk/reference/mongodb/mongodb/driver/exception/writeexception/getwriteresult.xml 2015-12-17 22:00:06 UTC (rev 338288) @@ -10,7 +10,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>final</modifier> <modifier>public</modifier> <type>MongoDB\Driver\WriteResult</type><methodname>MongoDB\Driver\WriteException::getWriteResult</methodname> + <modifier>final</modifier> <modifier>public</modifier> <type>MongoDB\Driver\WriteResult</type><methodname>MongoDB\Driver\Exception\WriteException::getWriteResult</methodname> <void /> </methodsynopsis> <para> @@ -40,7 +40,7 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title><function>MongoDB\Driver\WriteException::getWriteResult</function> example</title> + <title><function>MongoDB\Driver\Exception\WriteException::getWriteResult</function> example</title> <programlisting role="php"> <![CDATA[ <?php

« previous php.doc.cvs (#13904) next »