Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:controller:topiccontroller

This is an old revision of the document!


TopicController

Layer: Controller · Source: lib/controller/TopicController.php:26 (lines 26–311)


class TopicController extends BaseApp

Docblock Metadata

^ Tag ^ Value ^
| ''@category'' | Class TopicController 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()'' | (undocumented) | 32 |
| public | ''listItems()'' | listItems | 44 |
| public | ''insert()'' | insert | 91 |
| public | ''update()'' | update | 160 |
| public | ''remove()'' | remove | 252 |
| protected | ''setView()'' | setView | 307 |

__construct()

public function __construct(TopicService $topicService)

lines 32–35 (4)

^ Parameter ^ Type ^ Default ^ Description ^
| ''$topicService'' | [[scriptlog:lib:service:topicservice|''TopicService'']] | //required// | //none// |

listItems()

public function listItems()

lines 44–81 (38)

listItems

Takes no parameters.

Returns: (none declared)

insert()

public function insert()

lines 91–152 (62)

Takes no parameters.

Returns: (none declared) — void

update()

public function update($id)

lines 160–243 (84)

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

Returns: (none declared)

remove()

public function remove($id)

lines 252–299 (48)

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

Returns: (none declared)

setView()

protected function setView($viewName)

lines 307–310 (4)

setView

^ 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'']] |
| ''TopicService'' | [[scriptlog:lib:service:topicservice|''Scriptlog\Service\TopicService'']] |

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

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