Location: PHPKode > projects > Absolut Engine > absolut/documentation/discussions-coreclass.php.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="licence" content="GNU General Public Licence" />
<meta name="robots" content="all" />
<title>Documentation: class CDiscussions extends CArticles
</title>
<style type="text/css">@import "styles.css";</style>
</head>

<body><h1>class CDiscussions extends CArticles
</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()
</h2><h3>absolutengine
</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")
</h2><p class="text">Retrieve discussion/comments for the article<br />
function accepts two styles of parameters due to backward compatiblity<br />
NEW FORMAT:<br />
"commentnumber"=>int number of comments to be displayed<br />
"offset"=>int offset to show articles from<br />
"fromdate"=>string articles to be shown from date (date format in settings.php)<br />
"todate"=>string articles to be shown up to date (date format as in settings.php)<br />
"articleID"=>int ID of article for which discussion should to be displayed<br />
"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 />
array $settings list of parameters, see below:</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionComment"></a><h2>   GetDiscussionComment()
</h2><p class="text">Print comment text</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionDate"></a><h2>   GetDiscussionDate()
</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)
</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()
</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()
</h2><p class="text">Print time of comment entry</p><p><a href="#TOC-MAIN">^ Top</a></p><a name="GetDiscussionURL"></a><h2>   GetDiscussionURL()
</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)
</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)
</h2><p class="text">Test comment for spam</p><p class="param">string $author author of comment<br />
string $email email of comment<br />
string $url url of comment<br />
string $body text of comment<br />
string $permalink clean URL to article<br />
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)
</h2><p class="text">Test comment for spam</p><p class="param">string $author author of comment<br />
string $email email of comment<br />
string $url url of comment<br />
string $body text of comment<br />
string $permalink clean URL to article</p><p><a href="#TOC-MAIN">^ Top</a></p></body>
</html>
Return current item: Absolut Engine