Login   Register  
PHP Classes
elePHPant
Icontem

File: class.display.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2010-05-09 03:30
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);
                }
        }
        
    }
?>