PHP Classes

File: exampleScript.php

Recommend this page to a friend!
  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: 20 years ago
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();

?>