Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:service:replyservice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:service:replyservice [2026/09/26 09:09] – admin adminscriptlog:lib:service:replyservice [2026/09/26 09:34] (current) – admin admin
Line 10: Line 10:
 ======= 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 =======
Line 24: Line 24:
 //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 |
  
  
Line 60: Line 72:
 //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// |
  
  
Line 74: Line 86:
 //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)''
Line 88: Line 100:
 //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)''
Line 102: Line 114:
 //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)''
Line 116: Line 128:
 //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)''
Line 130: Line 142:
 //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)''
Line 144: Line 156:
 //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)''
Line 158: Line 170:
 //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)''
Line 172: Line 184:
 //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)''
Line 186: Line 198:
 //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)''
Line 202: Line 214:
 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
Line 219: Line 231:
 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
Line 235: Line 247:
 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
Line 296: Line 308:
 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
Line 312: Line 324:
 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
Line 328: Line 340:
 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
Line 336: Line 348:
 ======= 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'']] |
  
  
scriptlog/lib/service/replyservice.1790413760.txt.gz · Last modified: by admin