Login   Register  
PHP Classes
elePHPant
Icontem

File: exampleScript.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nilesh Dosooye  >  Convert Class To HTML Table  >  exampleScript.php  >  Download  
File: exampleScript.php
Role: Example script
Content type: text/plain
Description: example script
Class: Convert Class To HTML Table
Displays a class structure and data in HTML
Author: By
Last change:
Date: 2004-01-14 08:30
Size: 574 bytes
 

Contents

Class file image Download
<? include_once("convertClassToHtmlTable.class.php"); ?>
<? 
class simpleClass


        var 
$name ;
  
        function 
getName ()
        {
                return 
$this->name ;
        }


        function 
setName ($value)
        {
                
$this->name $value;
        }



      
$thisSimpleClass = new simpleClass();
      
$thisSimpleClass->setName("Nilesh");


     
$thisClassToHTMLConverter = new convertClassToHTMLTable();
     
$thisClassToHTML->setClassObject($thisSimpleClass);
     
$thisClassToHTML->generateHTML();

?>