cvs: peardoc /en/package gtk.xml /en/package/gtk gtk-vardump.xml
| From: | Christian Weiske | Date: | Fri, 10 Nov 2006 18:52:34 +0000 |
| Subject: | cvs: peardoc /en/package gtk.xml /en/package/gtk gtk-vardump.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8753@lists.php.net to get a copy of this message | ||
cweiske Fri Nov 10 18:52:34 2006 UTC
Added files:
/peardoc/en/package/gtk gtk-vardump.xml
Modified files:
/peardoc/en/package gtk.xml
Log:
Gtk_VarDump documentation
http://cvs.php.net/viewvc.cgi/peardoc/en/package/gtk.xml?r1=1.4&r2=1.5&diff_format=u
Index: peardoc/en/package/gtk.xml
diff -u peardoc/en/package/gtk.xml:1.4 peardoc/en/package/gtk.xml:1.5
--- peardoc/en/package/gtk.xml:1.4 Fri Feb 17 16:04:31 2006
+++ peardoc/en/package/gtk.xml Fri Nov 10 18:52:34 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<chapter id="package.gtk">
@@ -11,9 +11,10 @@
</para>
&blankpagehack;
-
+
&package.gtk.filedrop;
&package.gtk.gtk-scrollinglabel;
+ &package.gtk.gtk-vardump;
</chapter>
http://cvs.php.net/viewvc.cgi/peardoc/en/package/gtk/gtk-vardump.xml?view=markup&rev=1.1
Index: peardoc/en/package/gtk/gtk-vardump.xml
+++ peardoc/en/package/gtk/gtk-vardump.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<sect1 id="package.gtk.gtk-vardump">
<title>Gtk_VarDump</title>
<para>
Provides a simple GUI to examine PHP
variables, for example complex arrays or objects.
</para>
<para>
The GUI consists of two parts: a tree on the left side, displaying
the values/objects/arrays that have subkeys/subvalues, and a list
with scalar key-value pairs on the right side.
</para>
<para>
To use it, just include <filename>Gtk/VarDump.php</filename> and
call the constructor with the variable to be dumped.
</para>
<example>
<title>Inspecting a variable with
<classname>Gtk_VarDump</classname></title>
<programlisting role="php"><![CDATA[
<?php
//some test class to dump
class Test
{
var $color = 'blue';
var $foo = 'bar';
var $self = null;
var $server = null;
function Test()
{
$this->self =& $this;
$this->server =& $_SERVER;
}
function doNothing()
{
//we're doing nothing here
}
}
//include & display the variable
require_once 'Gtk/VarDump.php';
new Gtk_VarDump(new Test());
?>
]]></programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->