====== ReplyDao ======
**Layer:** ''DAO'' · **Source:** ''lib/dao/ReplyDao.php:18'' (lines 18–252)
----
class ReplyDao extends Dao
======= Docblock Metadata =======
^ Tag ^ Value ^
| ''@category'' | Dao class |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |
======= Inheritance =======
^ Relation ^ Type ^ Meaning ^
| extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface |
======= Constants (0) =======
//None.//
======= Properties (1) =======
^ Visibility ^ Type ^ Name ^ Default ^ Line ^
| ''private'' | ''(untyped)'' | ''$selected'' | | 20 |
======= Methods (11) =======
^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''__construct()'' | (undocumented) | 22 |
| public | ''createReply()'' | Create Reply | 33 |
| public | ''findReplies()'' | Find Replies by Comment ID (parent) | 69 |
| public | ''findReply()'' | Find Reply by ID | 93 |
| public | ''findRepliesByPost()'' | Find Replies for a Post (all replies in thread) | 120 |
| public | ''updateReply()'' | Update Reply | 141 |
| public | ''deleteReply()'' | Delete Reply | 162 |
| public | ''checkReplyId()'' | Check Reply ID exists | 179 |
| public | ''getParentComment()'' | Get Parent Comment for Reply | 195 |
| public | ''totalReplyRecords()'' | Total Reply Records | 217 |
| public | ''dropDownReplyStatement()'' | Dropdown for Reply Status | 236 |
======== __construct() ========
public function __construct()
//lines 22–25 (4)//
//Takes no parameters.//
======== createReply() ========
public function createReply($bind)
//lines 33–60 (28)//
Create Reply
^ Parameter ^ Type ^ Default ^ Description ^
| ''$bind'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — int|bool
======== findReplies() ========
public function findReplies($commentId, $orderBy = 'ID')
//lines 69–84 (16)//
Find Replies by Comment ID (parent)
^ Parameter ^ Type ^ Default ^ Description ^
| ''$commentId'' | ''(untyped)'' | //required// | //none// |
| ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// |
**Returns:** ''(none declared)'' — array|null
======== findReply() ========
public function findReply($id, $sanitize)
//lines 93–111 (19)//
Find Reply by ID
^ Parameter ^ Type ^ Default ^ Description ^
| ''$id'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — array|null
======== findRepliesByPost() ========
public function findRepliesByPost($postId, $orderBy = 'ID')
//lines 120–132 (13)//
Find Replies for a Post (all replies in thread)
^ Parameter ^ Type ^ Default ^ Description ^
| ''$postId'' | ''(untyped)'' | //required// | //none// |
| ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// |
**Returns:** ''(none declared)'' — array|null
======== updateReply() ========
public function updateReply($sanitize, $bind, $ID)
//lines 141–154 (14)//
Update Reply
^ Parameter ^ Type ^ Default ^ Description ^
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
| ''$bind'' | ''(untyped)'' | //required// | //none// |
| ''$ID'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)''
======== deleteReply() ========
public function deleteReply($id, $sanitize)
//lines 162–170 (9)//
Delete Reply
^ Parameter ^ Type ^ Default ^ Description ^
| ''$id'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)''
======== checkReplyId() ========
public function checkReplyId($id, $sanitize)
//lines 179–186 (8)//
Check Reply ID exists
^ Parameter ^ Type ^ Default ^ Description ^
| ''$id'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — bool
======== getParentComment() ========
public function getParentComment($parentId, $sanitize)
//lines 195–208 (14)//
Get Parent Comment for Reply
^ Parameter ^ Type ^ Default ^ Description ^
| ''$parentId'' | ''(untyped)'' | //required// | //none// |
| ''$sanitize'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — array|null
======== totalReplyRecords() ========
public function totalReplyRecords($data = null, $parentId = null)
//lines 217–228 (12)//
Total Reply Records
^ Parameter ^ Type ^ Default ^ Description ^
| ''$data'' | ''(untyped)'' | ''null'' | //none// |
| ''$parentId'' | ''(untyped)'' | ''null'' | //none// |
**Returns:** ''(none declared)'' — int
======== dropDownReplyStatement() ========
public function dropDownReplyStatement($selected = '')
//lines 236–251 (16)//
Dropdown for Reply Status
^ Parameter ^ Type ^ Default ^ Description ^
| ''$selected'' | ''(untyped)'' | '''''' | //none// |
**Returns:** ''(none declared)'' — string
======= Imports =======
^ Alias ^ Fully-qualified name ^
| ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] |
----
//This page is generated from source by 'tools/gendoc'. Edits will be overwritten.//