====== 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 (2) =======
^ Visibility ^ Type ^ Name ^ Default ^ Line ^
| ''private'' | ''(untyped)'' | ''$view'' | | 28 |
| ''private'' | ''(untyped)'' | ''$topicService'' | | 30 |
======= 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.//