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: 17 years ago
Size: 1,788 bytes
 

Contents

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: <?php $name = $_POST['name']; if(emtpy($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 <?php $name = $_POST['name']; if(emtpy($name)) { $popUp = new winDialog('winDialog','hide', "The field name is empty !\n Please fill your name !"; } ?> The result will be a pop up window Objective ************* 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 http://www.opensource.org/licenses/artistic-license.php 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(4.4.1.1)-GTK * *@ Author Guto Ferreira (Onidesk ICS) * *@ Email guto.onidesk@gmail.com * *@ Web http://onidesk.sytes.net * *****************************************************/