cvs: peardoc /en/package/gtk2 vardump.xml /en/package/gtk2/vardump intro.xml
| From: | Alexander Merz | Date: | Mon, 28 Aug 2006 07:49:40 +0000 |
| Subject: | cvs: peardoc /en/package/gtk2 vardump.xml /en/package/gtk2/vardump intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8380@lists.php.net to get a copy of this message | ||
alexmerz Mon Aug 28 07:49:40 2006 UTC
Added files:
/peardoc/en/package/gtk2/vardump intro.xml
Modified files:
/peardoc/en/package/gtk2 vardump.xml
Log:
moved text to intro section
http://cvs.php.net/viewvc.cgi/peardoc/en/package/gtk2/vardump.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/gtk2/vardump.xml
diff -u peardoc/en/package/gtk2/vardump.xml:1.2 peardoc/en/package/gtk2/vardump.xml:1.3
--- peardoc/en/package/gtk2/vardump.xml:1.2 Tue Aug 1 04:27:00 2006
+++ peardoc/en/package/gtk2/vardump.xml Mon Aug 28 07:49:39 2006
@@ -1,38 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<sect1 id="package.gtk2.vardump">
<title>Gtk2_VarDump</title>
<para>
- <classname>Gtk2_VarDump</classname> is a simple GUI to examine php
+ Provides a simple GUI to examine PHP
variables, for example complex arrays or objects.
- It displays the variable and all sub-variables/array keys/sub-objects
- in the left pane (a GtkTreeView), and the actual values in a list view
- on the right side.
</para>
- <para>
- The class is very easy to use: Just include the file,
- and call the static display method with the variable you want to have
- dumped.
- </para>
-
- <example>
- <title>Showing a variable with Gtk2_VarDump</title>
- <programlisting role="php"><![CDATA[<?php
-//include the file
-require_once 'Gtk2/VarDump.php';
-
-$myvar = array(
- 'hello', 2 => 'world',
- array(1, 2, 3, 'blubb')
-);
+ &package.gtk2.vardump.intro;
-//graphically dump the variable in an own window
-Gtk2_VarDump::display($myvar, 'variable title');
-?>]]></programlisting>
- </example>
</sect1>
<!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/peardoc/en/package/gtk2/vardump/intro.xml?view=markup&rev=1.1
Index: peardoc/en/package/gtk2/vardump/intro.xml
+++ peardoc/en/package/gtk2/vardump/intro.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.gtk2.vardump.intro">
<refnamediv>
<refname>Introduction</refname>
<refpurpose>About Gtk2_VarDump</refpurpose>
</refnamediv>
<refsect1>
<title>About Gtk2_VarDump</title>
<para>
<classname>Gtk2_VarDump</classname> is a simple GUI to examine PHP
variables, for example complex arrays or objects.
It displays the variable and all sub-variables/array keys/sub-objects
in the left pane (a GtkTreeView), and the actual values in a list view
on the right side.
</para>
<para>
The class is very easy to use: Just include the file,
and call the static display method with the variable you want to have
dumped.
</para>
<example>
<title>Showing a variable with Gtk2_VarDump</title>
<programlisting role="php"><![CDATA[<?php
//include the file
require_once 'Gtk2/VarDump.php';
$myvar = array(
'hello', 2 => 'world',
array(1, 2, 3, 'blubb')
);
//graphically dump the variable in an own window
Gtk2_VarDump::display($myvar, 'variable title');
?>]]></programlisting>
</example>
</refsect1>
</refentry>