Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/modules/discussions/coreclass.php
<?

class CDiscussions extends CArticles
{

   function CDiscussions()
   {
   $this->CArticles();
   }

   function GetDiscussionName()
   {
   $this->name=$this->access["name"];
   echo $this->name;
   }

   // Gets email, $antispam=1 by default, modifies email address to no spam format
   function GetDiscussionEmail($antispam=1)
   {
   $this->email=$this->access["email"];
   if ($this->email AND $antispam)
      {
      $this->email=str_replace('@',' at ',$this->email);
      $this->email=str_replace('.',' dot ',$this->email);
      $this->email.="-NO_SPAM_PLEASE";
      }
   return $this->email;
   }

   function GetDiscussionComment()
   {
   $this->comment=$this->access["comment"];
   $this->comment=nl2br(htmlspecialchars($this->comment));
   echo $this->comment;
   }

   function GetDiscussionURL()
   {
   $this->url=$this->access["url"];
   return $this->url;
   }

   function GetDiscussionDate()
   {
   $this->adate=$this->access["adate"];
   $this->adate=$this->DateConversion($this->adate,2);
   echo $this->adate;
   }

   function GetDiscussionTime()
   {
   $this->atime=$this->access["atime"];
   echo $this->atime;
   }

   function GetDiscussion($commentnumber="all")
   {
   if ($commentnumber=="all") $commentnumber=999999999;
   $this->DBQuery("SELECT * FROM ".$this->tablediscussions[0]." WHERE articleID='".$this->articleID."' ORDER BY adate DESC, atime DESC LIMIT ".$commentnumber);
   }

}

?>
Return current item: Absolut Engine