svn: /phpdoc/en/trunk/reference/json/ functions/json-encode.xml jsonserializable.xml
| From: | Peter Cowburn | Date: | Mon, 05 Mar 2012 10:45:19 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/json/ functions/json-encode.xml jsonserializable.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9832@lists.php.net to get a copy of this message | ||
salathe Mon, 05 Mar 2012 10:45:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323906
Log:
jsonserializable is an interface not a class
Changed paths:
U phpdoc/en/trunk/reference/json/functions/json-encode.xml
U phpdoc/en/trunk/reference/json/jsonserializable.xml
Modified: phpdoc/en/trunk/reference/json/functions/json-encode.xml
===================================================================
--- phpdoc/en/trunk/reference/json/functions/json-encode.xml 2012-03-05 08:02:28 UTC (rev 323905)
+++ phpdoc/en/trunk/reference/json/functions/json-encode.xml 2012-03-05 10:45:19 UTC (rev 323906)
@@ -269,6 +269,7 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><interfacename>JsonSerializable</interfacename></member>
<member><function>json_decode</function></member>
<member><function>json_last_error</function></member>
</simplelist>
Modified: phpdoc/en/trunk/reference/json/jsonserializable.xml
===================================================================
--- phpdoc/en/trunk/reference/json/jsonserializable.xml 2012-03-05 08:02:28 UTC (rev 323905)
+++ phpdoc/en/trunk/reference/json/jsonserializable.xml 2012-03-05 10:45:19 UTC (rev 323906)
@@ -3,7 +3,7 @@
<phpdoc:classref xml:id="class.jsonserializable" 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>The JsonSerializable class</title>
+ <title>The JsonSerializable interface</title>
<titleabbrev>JsonSerializable</titleabbrev>
<partintro>
@@ -12,13 +12,15 @@
<section xml:id="jsonserializable.intro">
&reftitle.intro;
<para>
-
+ Objects implementing <interfacename>JsonSerializable</interfacename>
+ can customize their JSON representation when encoded with
+ <function>json_encode</function>.
</para>
</section>
<!-- }}} -->
<section xml:id="jsonserializable.synopsis">
- &reftitle.classsynopsis;
+ &reftitle.interfacesynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>