Location: PHPKode > projects > Jarida > jarida_1.0/classes/Comment.php
<?php
require_once("Entry.php");
                                                                                                                       
/*
                                                                                                                             
-------------------------------------------------------------------------
                                                                                                                             
Comment Class
      A class to be used to handle Comments.
                                                                                                                             
-------------------------------------------------------------------------
                                                                                                                             
Developer
      Name -- Haddad Said.
      Date -- 16-08-2005
      Version -- 1.0
                                                                                                                             
-------------------------------------------------------------------------
                                                                                                                             
Member Functions
     
      1.edit
      2.delete
      3.setTitle
      4.getTitle
      5.setBody
      6.getBody
      7.setDate
      8.getDate
      9.setName
      10.getName
      11.setWeb
      12.getWeb
      13.setIp
      14.getIP
     

-------------------------------------------------------------------------
                                                                                                                             
*/


class Comment extends Entry
{

  //Vars to hold attributes of the article
  var $body;
  var $name;
  var $web;
  var $title;
  var $date;
  var $ip;



  /*

-------------------------------------------------------------------------
Class Constructor
      
Parameters:
      &db
      id


Notes:
      

Example Usage:
     
-------------------------------------------------------------------------

  */

  function Comment(&$db, $id)
  {
  }



  /*

-------------------------------------------------------------------------
Function edit
      
Parameters:
     

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function edit()
  {
  }


  /*

-------------------------------------------------------------------------
Function delete
      
Parameters:


Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */
  /*
  function delete()
  {
  }
  */


  /*

-------------------------------------------------------------------------
Function setBody
      
Parameters:
      body

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function setBody($body)
  {
    $this->body = $body;
  }



  /*

-------------------------------------------------------------------------
Function getBody
      
Parameters:
      

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */


  function getBody()
  {
    return $this->body;
  }


  /*

-------------------------------------------------------------------------
Function setName
      
Parameters:
      name

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

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


  /*

-------------------------------------------------------------------------
Function getName
      
Parameters:
      

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

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



  /*

-------------------------------------------------------------------------
Function setWeb
      
Parameters:
      web

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function setWeb($web)
  {
    $this->web = $web;
  }


  /*

-------------------------------------------------------------------------
Function getWeb
      
Parameters:
      

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function getWeb()
  {
    return $this->web;
  }



  /*

-------------------------------------------------------------------------
Function setTitle
      
Parameters:
      title

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function setTitle($title)
  {
    $this->title = $title;
  }


  /*

-------------------------------------------------------------------------
Function getTitle
      
Parameters:
      

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function getTitle()
  {
    return $this->title;
  }




  /*

-------------------------------------------------------------------------
Function setDate
      
Parameters:
      date

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function setDate($date)
  {
    $this->date = $date;
  }



  /*

-------------------------------------------------------------------------
Function getDate
      
Parameters:
      

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */


  function getDate()
  {
    return $this->date;
  }




  /*

-------------------------------------------------------------------------
Function setIp
      
Parameters:
      date

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */

  function setIp($ip)
  {
    $this->ip = $ip;
  }



  /*

-------------------------------------------------------------------------
Function getIp
      
Parameters:
      

Notes:
      

Example Usage:

-------------------------------------------------------------------------

  */


  function getIp()
  {
    return $this->ip;
  }



}



?>
Return current item: Jarida