Absolut Engine PHP Cross Reference Web Portal Systems

Source: /docs/discussions-coreclass.php.html - 46 lines - 4444 bytes - Summary - Text - Print

   1  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   2      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   3  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   4  
   5  <head>
   6  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
   7  <meta name="licence" content="GNU General Public Licence" />
   8  <meta name="robots" content="all" />
   9  <title>Documentation: class CDiscussions extends CArticles
  10  </title>
  11  <style type="text/css">@import "styles.css";</style>
  12  </head>
  13  
  14  <body><h1>class CDiscussions extends CArticles
  15  </h1><a href="index.html">^ INDEX</a><br /><a name="TOC-MAIN"></a><h1>Table of contents</h1><a href="#CDiscussions">CDiscussions</a><br /><a href="#GetDiscussion">GetDiscussion</a><br /><a href="#GetDiscussionComment">GetDiscussionComment</a><br /><a href="#GetDiscussionDate">GetDiscussionDate</a><br /><a href="#GetDiscussionEmail">GetDiscussionEmail</a><br /><a href="#GetDiscussionName">GetDiscussionName</a><br /><a href="#GetDiscussionTime">GetDiscussionTime</a><br /><a href="#GetDiscussionURL">GetDiscussionURL</a><br /><a href="#IsDiscussionDisabled">IsDiscussionDisabled</a><br /><a href="#SubmitSpam">SubmitSpam</a><br /><a href="#TestSpam">TestSpam</a><br /><p class="text"></p><p><a href="#TOC-MAIN">^ Top</a></p><a name="CDiscussions"></a><h2>   CDiscussions()
  16  </h2><h3>absolutengine
  17  </h3><p class="text">Discussions class for handling all discussion/comment-related functions</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussion"></a><h2>   GetDiscussion($settings="all")
  18  </h2><p class="text">Retrieve discussion/comments for the article<br />
  19  function accepts two styles of parameters due to backward compatiblity<br />
  20  NEW FORMAT:<br />
  21  "commentnumber"=>int number of comments to be displayed<br />
  22  "offset"=>int offset to show articles from<br />
  23  "fromdate"=>string articles to be shown from date (date format in settings.php)<br />
  24  "todate"=>string articles to be shown up to date (date format as in settings.php)<br />
  25  "articleID"=>int ID of article for which discussion should to be displayed<br />
  26  "order"=>string use MySQL format ("priority DESC, adate DESC, atime DESC" etc.)</p><p class="param">int $settings number of comments to be displayed - OLD FORMAT - DO NOT USE!<br />
  27  array $settings list of parameters, see below:</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionComment"></a><h2>   GetDiscussionComment()
  28  </h2><p class="text">Print comment text</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionDate"></a><h2>   GetDiscussionDate()
  29  </h2><p class="text">Print date of comment entry</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionEmail"></a><h2>   GetDiscussionEmail($antispam=1)
  30  </h2><p class="text">Return email of an author of comment</p><p class="param">boolean $antispam TRUE by default - converts email address to prevent spam</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionName"></a><h2>   GetDiscussionName()
  31  </h2><p class="text">Print name of an author of comment</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionTime"></a><h2>   GetDiscussionTime()
  32  </h2><p class="text">Print time of comment entry</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionURL"></a><h2>   GetDiscussionURL()
  33  </h2><p class="text">Retrieve URL of an author/website</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="IsDiscussionDisabled"></a><h2>   IsDiscussionDisabled($articleID)
  34  </h2><p class="text">Find whether article discussion is disabled (discussion is enabled or disabled)</p><p class="param">int $articleID ID of article</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="SubmitSpam"></a><h2>   SubmitSpam($author,$email,$url,$body,$permalink,$IPaddress)
  35  </h2><p class="text">Test comment for spam</p><p class="param">string $author author of comment<br />
  36  string $email email of comment<br />
  37  string $url url of comment<br />
  38  string $body text of comment<br />
  39  string $permalink clean URL to article<br />
  40  string $IPaddress IP address of comment submitter</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="TestSpam"></a><h2>   TestSpam($author,$email,$url,$body,$permalink)
  41  </h2><p class="text">Test comment for spam</p><p class="param">string $author author of comment<br />
  42  string $email email of comment<br />
  43  string $url url of comment<br />
  44  string $body text of comment<br />
  45  string $permalink clean URL to article</p><p><a href="#TOC-MAIN">^ Top</a></p></body>
  46  </html>

title

Description

title

Description

title

Description

title

title

Body