cvs: peardoc /en/package/gtk2/phpconfig intro.xml usage.xml
| From: | Anant Narayanan | Date: | Mon, 06 Nov 2006 17:00:51 +0000 |
| Subject: | cvs: peardoc /en/package/gtk2/phpconfig intro.xml usage.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8730@lists.php.net to get a copy of this message | ||
anant Mon Nov 6 17:00:51 2006 UTC
Added files:
/peardoc/en/package/gtk2/phpconfig intro.xml usage.xml
Log:
Introduction and Usage for Gtk2_PHPConfig
http://cvs.php.net/viewvc.cgi/peardoc/en/package/gtk2/phpconfig/intro.xml?view=markup&rev=1.1
Index: peardoc/en/package/gtk2/phpconfig/intro.xml
+++ peardoc/en/package/gtk2/phpconfig/intro.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.gtk2.phpconfig.intro">
<refnamediv>
<refname>Introduction</refname>
<refpurpose>About Gtk2_PHPConfig</refpurpose>
</refnamediv>
<refsect1 id="package.gtk2.phpconfig.intro.desc">
<title>Description</title>
<para>
This package will be useful for PHP-GTK 2 based applications which
require the user to make changes to php.ini. The class can parse any
existing ini file, or create new ones. Parsing of existing files is
currently a little inefficient, suggestions for improvement are welcome.
New files and files previously generated by Gtk2_PHPConfig are parsed at
a good speed though.
</para>
<para>
The interface displays all available configuration sections on the left pane,
and their corresponding options in the top right pane. The bottom right pane
displays the description of the option selected and the facility to change
the value of that option.
</para>
</refsect1>
</refentry>
<!-- 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
-->
http://cvs.php.net/viewvc.cgi/peardoc/en/package/gtk2/phpconfig/usage.xml?view=markup&rev=1.1
Index: peardoc/en/package/gtk2/phpconfig/usage.xml
+++ peardoc/en/package/gtk2/phpconfig/usage.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<refentry id="package.gtk2.phpconfig.usage">
<refnamediv>
<refname>Usage</refname>
<refpurpose>Using Gtk2_PHPConfig</refpurpose>
</refnamediv>
<refsect1>
<example>
<title>Simple Configuration GUI</title>
<programlisting role="php">
<![CDATA[
<?php
require_once("Gtk2/PHPConfig.php");
switch ($argc) {
case 1:
$test = new Gtk2_PHPConfig(NULL);
Gtk::main();
break;
case 2:
if (file_exists($argv[1])) {
echo "\nThe INI File is being parsed... Please be patient...\n";
$test = new Gtk2_PHPConfig($argv[1]);
Gtk::main();
break;
} else {
echo "\nThe file does not exist!\n";
}
default:
echo "\nUsage: gtk2_phpconfig [INI File]\n";
echo "Where [INI File] is an optional argument, and the name of the
file you want to edit.";
echo "\nIf no arguments are passed, a new INI file is created\n\n";
exit();
}
?>
]]>
</programlisting>
<para>
This example is actually the gtk2_phpconfig executable found in
<literal>/usr/bin</literal> (for *nix systems) after installation of
the <classname>Gtk2_PHPConfig</classname> package.
</para>
<para>
The example script accepts a single optional argument, i.e. the location
of the ini file to edit. If not provided, a new file will be created.
</para>
<para>
<classname>Gtk2_PHPConfig</classname> extends
<classname>GtkWindow</classname> and can be treated as an application
by itself. Hence, the methods used internally are of no significance to
the end user. However, you may refer to the API documentation if you
are interested in customization or just understanding how the package
works.
</para>
</example>
</refsect1>
</refentry>
<!-- 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
-->