PHP Classes

File: how_to_use.txt

Recommend this page to a friend!
  Classes of Josť Augusto Ferreira Franco  >  PHP-Gtk winDialog  >  how_to_use.txt  >  Download  
File: how_to_use.txt
Role: Documentation
Content type: text/plain
Description: Documentation about the class
Class: PHP-Gtk winDialog
Generic class to handle with notice messages
Author: By
Last change: The full documentation about this class on pdf format
This document includes the purpose of the class,how to use and shows the screenshot example result
Date: 16 years ago
Size: 1,788 bytes


Class file image Download
Class winDialog
In all applications users need to receive messages according their requests and interactions with the program. On the client-side  when we to do some kind of search  print something, these windows will tell us if processes occurred with success or not. For example to evaluate if a field was empty, on the server-side we do something like this:
$name = $_POST['name'];
echo "The field name is empty !\n Please fill your name !";

On the client side the process is the same, but the message is not echoed on the browser but on the warning message. The code result will be something like this, if you was using the Class winDialog 

$name = $_POST['name'];
$popUp = new winDialog('winDialog','hide', "The field name is empty !\n Please fill your name !";

The result will be a pop up window

This class has been developed to be used on PHP-GTK applications. It can be used to show the messages status of the processes on the program as the example i show you  back.

This is just a simple demo that can used freely under Property Licence.
Read about it at 

If you are thinking on use this class all you need to do is maintain the next header near the code class

  *@ Package   Class winDialog                 *
  *@ License   Property License                 *
  *@ Language  php(               *
  *@ Author   Guto Ferreira (Onidesk ICS)  *
  *@ Email      *
  *@ Web          *

For more information send a message to info at phpclasses dot org.