PHP Classes

File: class.display.php

Recommend this page to a friend!
  Classes of german gomez bajo   Simple comments   class.display.php   Download  
File: class.display.php
Role: Class source
Content type: text/plain
Description: here it is the class
Class: Simple comments
Store and show user comments in site pages
Author: By
Last change: no changes
Date: 14 years ago
Size: 439 bytes
 

Contents

Class file image Download
<?php
   
class showSomething {
        function
start () {
            include(
"form_template.php");
        }
        function
showForm ($show)
        {
                if (
$show == "yes")
                {
                   
display_form("yes");
                }
                else
                {
                    echo
"Unabled comments for this page";
                }
        }
        function
showComments($limit)
        {
                if (
$limit != 0)
                {
                   
display_comments($limit);
                }
                else
                {
                   
display_comments(0);
                }
        }
       
    }
?>