Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:service:replyservice

This is an old revision of the document!


ReplyService

Layer: Service · Source: lib/service/ReplyService.php:22 (lines 22–231)


class ReplyService

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Class Service |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |
| ''@version'' | 1.0 |

Inheritance

No parent, interface or trait. This is a root type.

Constants (0)

None.

Properties (0)

None declared.

Methods (19)

^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''__construct()'' | (undocumented) | 37 |
| public | ''setReplyId()'' | (undocumented) | 44 |
| public | ''setPostId()'' | (undocumented) | 49 |
| public | ''setParentId()'' | (undocumented) | 54 |
| public | ''setAuthorName()'' | (undocumented) | 59 |
| public | ''setAuthorIP()'' | (undocumented) | 64 |
| public | ''setAuthorEmail()'' | (undocumented) | 69 |
| public | ''setReplyContent()'' | (undocumented) | 74 |
| public | ''setReplyStatus()'' | (undocumented) | 79 |
| public | ''setReplyDate()'' | (undocumented) | 84 |
| public | ''grabReplies()'' | Grab Replies by Parent Comment ID | 96 |
| public | ''grabReply()'' | Grab Single Reply | 107 |
| public | ''grabParentComment()'' | Get Parent Comment | 118 |
| public | ''addReply()'' | Add New Reply | 128 |
| public | ''modifyReply()'' | Modify/Update Reply | 161 |
| public | ''removeReply()'' | Remove Reply | 186 |
| public | ''replyStatementDropDown()'' | Reply Statement Dropdown | 204 |
| public | ''checkReplyExists()'' | Check Reply Exists | 215 |
| public | ''totalReplies()'' | Total Replies | 227 |

__construct()

public function __construct(ReplyDao $replyDao, FormValidator $validator, Sanitize $sanitize)

lines 37–42 (6)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$replyDao'' | [[scriptlog:lib:dao:replydao|''ReplyDao'']] | //required// | //none// |
| ''$validator'' | [[scriptlog:lib:core:formvalidator|''FormValidator'']] | //required// | //none// |
| ''$sanitize'' | [[scriptlog:lib:core:sanitize|''Sanitize'']] | //required// | //none// |

setReplyId()

public function setReplyId($reply_id)

lines 44–47 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$reply_id'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setPostId()

public function setPostId($post_id)

lines 49–52 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$post_id'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setParentId()

public function setParentId($parent_id)

lines 54–57 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$parent_id'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setAuthorName()

public function setAuthorName($author_name)

lines 59–62 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$author_name'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setAuthorIP()

public function setAuthorIP($author_ip)

lines 64–67 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$author_ip'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setAuthorEmail()

public function setAuthorEmail($author_email)

lines 69–72 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$author_email'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setReplyContent()

public function setReplyContent($content)

lines 74–77 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$content'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setReplyStatus()

public function setReplyStatus($status)

lines 79–82 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$status'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

setReplyDate()

public function setReplyDate($created_at)

lines 84–87 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$created_at'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared)

grabReplies()

public function grabReplies($parentId, $orderBy = 'ID')

lines 96–99 (4)

Grab Replies by Parent Comment ID

^ Parameter ^ Type ^ Default ^ Description ^
| ''$parentId'' | ''(untyped)'' | //required// | //none// |
| ''$orderBy'' | ''(untyped)'' | '''ID''' | //none// |

Returns: (none declared) — array|null

grabReply()

public function grabReply($id)

lines 107–110 (4)

Grab Single Reply

^ Parameter ^ Type ^ Default ^ Description ^
| ''$id'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — array|null

grabParentComment()

public function grabParentComment($parentId)

lines 118–121 (4)

Get Parent Comment

^ Parameter ^ Type ^ Default ^ Description ^
| ''$parentId'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — array|null

addReply()

public function addReply()

lines 128–154 (27)

Add New Reply

Takes no parameters.

Returns: (none declared) — int|bool

modifyReply()

public function modifyReply()

lines 161–179 (19)

Modify/Update Reply

Takes no parameters.

Returns: (none declared) — bool

removeReply()

public function removeReply()

lines 186–196 (11)

Remove Reply

Takes no parameters.

Returns: (none declared) — bool

replyStatementDropDown()

public function replyStatementDropDown($selected = "")

lines 204–207 (4)

Reply Statement Dropdown

^ Parameter ^ Type ^ Default ^ Description ^
| ''$selected'' | ''(untyped)'' | ''""'' | //none// |

Returns: (none declared) — string

checkReplyExists()

public function checkReplyExists($id)

lines 215–218 (4)

Check Reply Exists

^ Parameter ^ Type ^ Default ^ Description ^
| ''$id'' | ''(untyped)'' | //required// | //none// |

Returns: (none declared) — bool

totalReplies()

public function totalReplies($data = null, $parentId = null)

lines 227–230 (4)

Total Replies

^ Parameter ^ Type ^ Default ^ Description ^
| ''$data'' | ''(untyped)'' | ''null'' | //none// |
| ''$parentId'' | ''(untyped)'' | ''null'' | //none// |

Returns: (none declared) — int

Imports

^ Alias ^ Fully-qualified name ^
| ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] |
| ''FormValidator'' | [[scriptlog:lib:core:formvalidator|''Scriptlog\Core\FormValidator'']] |
| ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] |
| ''ReplyDao'' | [[scriptlog:lib:dao:replydao|''Scriptlog\Dao\ReplyDao'']] |

This page is generated from source by 'tools/gendoc'. Edits will be overwritten.

scriptlog/lib/service/replyservice.1790413760.txt.gz · Last modified: by admin