| Next revision | Previous revision |
| scriptlog:lib:service:replyservice [2026/09/26 09:09] – admin admin | scriptlog:lib:service:replyservice [2026/09/26 09:34] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Class Service | | | ''@category'' | Class Service | |
| | ''@author'' | M.Noermoehammad | | | ''@author'' | M.Noermoehammad | |
| | ''@license'' | MIT | | | ''@license'' | MIT | |
| | ''@version'' | 1.0 | | | ''@version'' | 1.0 | |
| |
| ======= Inheritance ======= | ======= Inheritance ======= |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (12) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$reply_id'' | | 24 | |
| | | ''private'' | ''(untyped)'' | ''$post_id'' | | 25 | |
| | | ''private'' | ''(untyped)'' | ''$parent_id'' | | 26 | |
| | | ''private'' | ''(untyped)'' | ''$author_name'' | | 27 | |
| | | ''private'' | ''(untyped)'' | ''$author_ip'' | | 28 | |
| | | ''private'' | ''(untyped)'' | ''$author_email'' | | 29 | |
| | | ''private'' | ''(untyped)'' | ''$content'' | | 30 | |
| | | ''private'' | ''(untyped)'' | ''$status'' | | 31 | |
| | | ''private'' | ''(untyped)'' | ''$created_at'' | | 32 | |
| | | ''private'' | ''(untyped)'' | ''$replyDao'' | | 33 | |
| | | ''private'' | ''(untyped)'' | ''$validator'' | | 34 | |
| | | ''private'' | ''(untyped)'' | ''$sanitizer'' | | 35 | |
| |
| ======= Methods (19) ======= | ======= Methods (19) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 37 | | | public | ''__construct()'' | (undocumented) | 37 | |
| | public | ''setReplyId()'' | (undocumented) | 44 | | | public | ''setReplyId()'' | (undocumented) | 44 | |
| | public | ''setPostId()'' | (undocumented) | 49 | | | public | ''setPostId()'' | (undocumented) | 49 | |
| | public | ''setParentId()'' | (undocumented) | 54 | | | public | ''setParentId()'' | (undocumented) | 54 | |
| | public | ''setAuthorName()'' | (undocumented) | 59 | | | public | ''setAuthorName()'' | (undocumented) | 59 | |
| | public | ''setAuthorIP()'' | (undocumented) | 64 | | | public | ''setAuthorIP()'' | (undocumented) | 64 | |
| | public | ''setAuthorEmail()'' | (undocumented) | 69 | | | public | ''setAuthorEmail()'' | (undocumented) | 69 | |
| | public | ''setReplyContent()'' | (undocumented) | 74 | | | public | ''setReplyContent()'' | (undocumented) | 74 | |
| | public | ''setReplyStatus()'' | (undocumented) | 79 | | | public | ''setReplyStatus()'' | (undocumented) | 79 | |
| | public | ''setReplyDate()'' | (undocumented) | 84 | | | public | ''setReplyDate()'' | (undocumented) | 84 | |
| | public | ''grabReplies()'' | Grab Replies by Parent Comment ID | 96 | | | public | ''grabReplies()'' | Grab Replies by Parent Comment ID | 96 | |
| | public | ''grabReply()'' | Grab Single Reply | 107 | | | public | ''grabReply()'' | Grab Single Reply | 107 | |
| | public | ''grabParentComment()'' | Get Parent Comment | 118 | | | public | ''grabParentComment()'' | Get Parent Comment | 118 | |
| | public | ''addReply()'' | Add New Reply | 128 | | | public | ''addReply()'' | Add New Reply | 128 | |
| | public | ''modifyReply()'' | Modify/Update Reply | 161 | | | public | ''modifyReply()'' | Modify/Update Reply | 161 | |
| | public | ''removeReply()'' | Remove Reply | 186 | | | public | ''removeReply()'' | Remove Reply | 186 | |
| | public | ''replyStatementDropDown()'' | Reply Statement Dropdown | 204 | | | public | ''replyStatementDropDown()'' | Reply Statement Dropdown | 204 | |
| | public | ''checkReplyExists()'' | Check Reply Exists | 215 | | | public | ''checkReplyExists()'' | Check Reply Exists | 215 | |
| | public | ''totalReplies()'' | Total Replies | 227 | | | public | ''totalReplies()'' | Total Replies | 227 | |
| |
| |
| //lines 37–42 (6)// | //lines 37–42 (6)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$replyDao'' | [[scriptlog:lib:dao:replydao|''ReplyDao'']] | //required// | //none// | | | ''$replyDao'' | [[scriptlog:lib:dao:replydao|''ReplyDao'']] | //required// | //none// | |
| | ''$validator'' | [[scriptlog:lib:core:formvalidator|''FormValidator'']] | //required// | //none// | | | ''$validator'' | [[scriptlog:lib:core:formvalidator|''FormValidator'']] | //required// | //none// | |
| | ''$sanitize'' | [[scriptlog:lib:core:sanitize|''Sanitize'']] | //required// | //none// | | | ''$sanitize'' | [[scriptlog:lib:core:sanitize|''Sanitize'']] | //required// | //none// | |
| |
| |
| //lines 44–47 (4)// | //lines 44–47 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$reply_id'' | ''(untyped)'' | //required// | //none// | | | ''$reply_id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 49–52 (4)// | //lines 49–52 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$post_id'' | ''(untyped)'' | //required// | //none// | | | ''$post_id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 54–57 (4)// | //lines 54–57 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$parent_id'' | ''(untyped)'' | //required// | //none// | | | ''$parent_id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 59–62 (4)// | //lines 59–62 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$author_name'' | ''(untyped)'' | //required// | //none// | | | ''$author_name'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 64–67 (4)// | //lines 64–67 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$author_ip'' | ''(untyped)'' | //required// | //none// | | | ''$author_ip'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 69–72 (4)// | //lines 69–72 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$author_email'' | ''(untyped)'' | //required// | //none// | | | ''$author_email'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 74–77 (4)// | //lines 74–77 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$content'' | ''(untyped)'' | //required// | //none// | | | ''$content'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 79–82 (4)// | //lines 79–82 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$status'' | ''(untyped)'' | //required// | //none// | | | ''$status'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| //lines 84–87 (4)// | //lines 84–87 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$created_at'' | ''(untyped)'' | //required// | //none// | | | ''$created_at'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' | **Returns:** ''(none declared)'' |
| Grab Replies by Parent Comment ID | Grab Replies by Parent Comment ID |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$parentId'' | ''(untyped)'' | //required// | //none// | | | ''$parentId'' | ''(untyped)'' | //required// | //none// | |
| | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | | | ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Grab Single Reply | Grab Single Reply |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Get Parent Comment | Get Parent Comment |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$parentId'' | ''(untyped)'' | //required// | //none// | | | ''$parentId'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array|null | **Returns:** ''(none declared)'' — array|null |
| Reply Statement Dropdown | Reply Statement Dropdown |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$selected'' | ''(untyped)'' | ''""'' | //none// | | | ''$selected'' | ''(untyped)'' | ''""'' | //none// | |
| |
| **Returns:** ''(none declared)'' — string | **Returns:** ''(none declared)'' — string |
| Check Reply Exists | Check Reply Exists |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — bool | **Returns:** ''(none declared)'' — bool |
| Total Replies | Total Replies |
| |
| ^ 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 |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] | | | ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] | |
| | ''FormValidator'' | [[scriptlog:lib:core:formvalidator|''Scriptlog\Core\FormValidator'']] | | | ''FormValidator'' | [[scriptlog:lib:core:formvalidator|''Scriptlog\Core\FormValidator'']] | |
| | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | | | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | |
| | ''ReplyDao'' | [[scriptlog:lib:dao:replydao|''Scriptlog\Dao\ReplyDao'']] | | | ''ReplyDao'' | [[scriptlog:lib:dao:replydao|''Scriptlog\Dao\ReplyDao'']] | |
| |
| |