scriptlog:lib:controller:replycontroller
Table of Contents
ReplyController
Layer: Controller · Source: lib/controller/ReplyController.php:26 (lines 26–329)
class ReplyController extends BaseApp
Docblock Metadata
| Tag | Value |
|---|---|
@category | Class ReplyController extends BaseApp |
@author | M.Noermoehammad |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
Inheritance
| Relation | Type | Meaning |
|---|---|---|
| extends | ''BaseApp'' | parent class/interface |
Constants (0)
None.
Properties (2)
| Visibility | Type | Name | Default | Line |
|---|---|---|---|---|
private | (untyped) | $view | 28 | |
private | (untyped) | $replyService | 29 |
Methods (6)
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | __construct() | (undocumented) | 31 |
| public | listItems() | List Replies for a Parent Comment | 42 |
| public | insert() | Insert New Reply | 88 |
| public | update() | Update Reply | 182 |
| public | remove() | Remove Reply | 278 |
| protected | setView() | (undocumented) | 325 |
__construct()
public function __construct(ReplyService $replyService)
lines 31–34 (4)
| Parameter | Type | Default | Description |
|---|---|---|---|
$replyService | ''ReplyService'' | required | none |
listItems()
public function listItems($parentId = null)
lines 42–81 (40)
List Replies for a Parent Comment
| Parameter | Type | Default | Description |
|---|---|---|---|
$parentId | (untyped) | null | none |
Returns: (none declared) — string
insert()
public function insert()
lines 88–174 (87)
Insert New Reply
Takes no parameters.
Returns: (none declared) — string
update()
public function update($id)
lines 182–271 (90)
Update Reply
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared) — string
remove()
public function remove($id)
lines 278–323 (46)
Remove Reply
| Parameter | Type | Default | Description |
|---|---|---|---|
$id | (untyped) | required | none |
Returns: (none declared)
setView()
protected function setView($viewName)
lines 325–328 (4)
| Parameter | Type | Default | Description |
|---|---|---|---|
$viewName | (untyped) | required | none |
Returns: (none declared)
Imports
| Alias | Fully-qualified name |
|---|---|
ActionConst | ''Scriptlog\Core\ActionConst'' |
AppException | ''Scriptlog\Core\AppException'' |
BaseApp | ''Scriptlog\Core\BaseApp'' |
LogError | ''Scriptlog\Core\LogError'' |
Sanitize | ''Scriptlog\Core\Sanitize'' |
View | ''Scriptlog\Core\View'' |
ReplyService | ''Scriptlog\Service\ReplyService'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
scriptlog/lib/controller/replycontroller.txt · Last modified: by admin
