Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:controller:commentcontroller

This is an old revision of the document!


CommentController

Layer: Controller · Source: lib/controller/CommentController.php:28 (lines 28–255)


class CommentController extends BaseApp

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Class CommentController extends BaseApp |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |
| ''@version'' | 1.0 |
| ''@since'' | Since Release 1.0 |

Inheritance

^ Relation ^ Type ^ Meaning ^
| extends | [[scriptlog:lib:core:baseapp|''BaseApp'']] | parent class/interface |

Constants (0)

None.

Properties (0)

None declared.

Methods (6)

^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''__construct()'' | __constructor | 52 |
| public | ''listItems()'' | abstract method list items | 61 |
| public | ''insert()'' | abstract method insert | 106 |
| public | ''update()'' | Abstract method update | 115 |
| public | ''remove()'' | Abstract method remove | 205 |
| protected | ''setView()'' | (undocumented) | 251 |

__construct()

public function __construct(CommentService $commentService)

lines 52–55 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$commentService'' | [[scriptlog:lib:service:commentservice|''CommentService'']] | //required// | //none// |

listItems()

public function listItems()

lines 61–100 (40)

Documentation inherited from ''Scriptlog\Core\BaseApp''.

abstract method list items

Takes no parameters.

Returns: (none declared)

insert()

public function insert()

lines 106–109 (4)

Documentation inherited from ''Scriptlog\Core\BaseApp''.

abstract method insert

Takes no parameters.

Returns: (none declared)

update()

public function update($id)

lines 115–199 (85)

Documentation inherited from ''Scriptlog\Core\BaseApp''.

Abstract method update

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

Returns: (none declared)

remove()

public function remove($id)

lines 205–249 (45)

Documentation inherited from ''Scriptlog\Core\BaseApp''.

Abstract method remove

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

Returns: (none declared)

setView()

protected function setView($viewName)

lines 251–254 (4)

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

Returns: (none declared)

Imports

^ Alias ^ Fully-qualified name ^
| ''ActionConst'' | [[scriptlog:lib:core:actionconst|''Scriptlog\Core\ActionConst'']] |
| ''AppException'' | [[scriptlog:lib:core:appexception|''Scriptlog\Core\AppException'']] |
| ''BaseApp'' | [[scriptlog:lib:core:baseapp|''Scriptlog\Core\BaseApp'']] |
| ''LogError'' | [[scriptlog:lib:core:logerror|''Scriptlog\Core\LogError'']] |
| ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] |
| ''View'' | [[scriptlog:lib:core:view|''Scriptlog\Core\View'']] |
| ''CommentService'' | [[scriptlog:lib:service:commentservice|''Scriptlog\Service\CommentService'']] |

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

scriptlog/lib/controller/commentcontroller.1790413759.txt.gz · Last modified: by admin