| Next revision | Previous revision |
| scriptlog:lib:dao:replydao [2026/09/26 09:09] – admin admin | scriptlog:lib:dao:replydao [2026/09/26 09:34] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Dao class | | | ''@category'' | Dao class | |
| | ''@author'' | M.Noermoehammad | | | ''@author'' | M.Noermoehammad | |
| | ''@license'' | MIT | | | ''@license'' | MIT | |
| |
| ======= Inheritance ======= | ======= Inheritance ======= |
| |
| ^ Relation ^ Type ^ Meaning ^ | ^ Relation ^ Type ^ Meaning ^ |
| | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface | | | extends | [[scriptlog:lib:core:dao|''Dao'']] | parent class/interface | |
| |
| ======= Constants (0) ======= | ======= Constants (0) ======= |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (1) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$selected'' | | 20 | |
| |
| ======= Methods (11) ======= | ======= Methods (11) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 22 | | | public | ''__construct()'' | (undocumented) | 22 | |
| | public | ''createReply()'' | Create Reply | 33 | | | public | ''createReply()'' | Create Reply | 33 | |
| | public | ''findReplies()'' | Find Replies by Comment ID (parent) | 69 | | | public | ''findReplies()'' | Find Replies by Comment ID (parent) | 69 | |
| | public | ''findReply()'' | Find Reply by ID | 93 | | | public | ''findReply()'' | Find Reply by ID | 93 | |
| | public | ''findRepliesByPost()'' | Find Replies for a Post (all replies in thread) | 120 | | | public | ''findRepliesByPost()'' | Find Replies for a Post (all replies in thread) | 120 | |
| | public | ''updateReply()'' | Update Reply | 141 | | | public | ''updateReply()'' | Update Reply | 141 | |
| | public | ''deleteReply()'' | Delete Reply | 162 | | | public | ''deleteReply()'' | Delete Reply | 162 | |
| | public | ''checkReplyId()'' | Check Reply ID exists | 179 | | | public | ''checkReplyId()'' | Check Reply ID exists | 179 | |
| | public | ''getParentComment()'' | Get Parent Comment for Reply | 195 | | | public | ''getParentComment()'' | Get Parent Comment for Reply | 195 | |
| | public | ''totalReplyRecords()'' | Total Reply Records | 217 | | | public | ''totalReplyRecords()'' | Total Reply Records | 217 | |
| | public | ''dropDownReplyStatement()'' | Dropdown for Reply Status | 236 | | | public | ''dropDownReplyStatement()'' | Dropdown for Reply Status | 236 | |
| |
| |
| Create Reply | Create Reply |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$bind'' | ''(untyped)'' | //required// | //none// | | | ''$bind'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — int|bool | **Returns:** ''(none declared)'' — int|bool |
| Find Replies by Comment ID (parent) | Find Replies by Comment ID (parent) |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$commentId'' | ''(untyped)'' | //required// | //none// | | | ''$commentId'' | ''(untyped)'' | //required// | //none// | |
| | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | | | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Find Reply by ID | Find Reply by ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Find Replies for a Post (all replies in thread) | Find Replies for a Post (all replies in thread) |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$postId'' | ''(untyped)'' | //required// | //none// | | | ''$postId'' | ''(untyped)'' | //required// | //none// | |
| | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | | | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Update Reply | Update Reply |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| | ''$bind'' | ''(untyped)'' | //required// | //none// | | | ''$bind'' | ''(untyped)'' | //required// | //none// | |
| | ''$ID'' | ''(untyped)'' | //required// | //none// | | | ''$ID'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| Delete Reply | Delete Reply |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| Check Reply ID exists | Check Reply ID exists |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — bool | **Returns:** ''(none declared)'' — bool |
| Get Parent Comment for Reply | Get Parent Comment for Reply |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$parentId'' | ''(untyped)'' | //required// | //none// | | | ''$parentId'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Total Reply Records | Total Reply Records |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$data'' | ''(untyped)'' | ''null'' | //none// | | | ''$data'' | ''(untyped)'' | ''null'' | //none// | |
| | ''$parentId'' | ''(untyped)'' | ''null'' | //none// | | | ''$parentId'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — int | **Returns:** ''(none declared)'' — int |
| Dropdown for Reply Status | Dropdown for Reply Status |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$selected'' | ''(untyped)'' | '''''' | //none// | | | ''$selected'' | ''(untyped)'' | '''''' | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | | | ''Dao'' | [[scriptlog:lib:core:dao|''Scriptlog\Core\Dao'']] | |
| |
| |