| Next revision | Previous revision |
| scriptlog:lib:model:topicmodel [2026/09/26 09:09] – admin admin | scriptlog:lib:model:topicmodel [2026/09/26 09:34] (current) – admin admin |
|---|
| ======= Docblock Metadata ======= | ======= Docblock Metadata ======= |
| |
| ^ Tag ^ Value ^ | ^ Tag ^ Value ^ |
| | ''@category'' | Model class | | | ''@category'' | Model class | |
| | ''@author'' | M.Noermoehammad | | | ''@author'' | M.Noermoehammad | |
| | ''@license'' | MIT | | | ''@license'' | MIT | |
| | ''@version'' | 1.0 | | | ''@version'' | 1.0 | |
| |
| ======= Inheritance ======= | ======= Inheritance ======= |
| |
| ^ Relation ^ Type ^ Meaning ^ | ^ Relation ^ Type ^ Meaning ^ |
| | extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface | | | extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface | |
| |
| ======= Constants (0) ======= | ======= Constants (0) ======= |
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (1) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$linkPosts'' | | 29 | |
| |
| ======= Methods (5) ======= | ======= Methods (5) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''getActiveTopicsOnSidebar()'' | getActiveTopicsOnSidebar | 39 | | | public | ''getActiveTopicsOnSidebar()'' | getActiveTopicsOnSidebar | 39 | |
| | public | ''getTopicBySlug()'' | getTopicBySlug | 68 | | | public | ''getTopicBySlug()'' | getTopicBySlug | 68 | |
| | public | ''getTopicById()'' | getTopicById | 90 | | | public | ''getTopicById()'' | getTopicById | 90 | |
| | public | ''getLinkTopic()'' | getLinkTopic | 112 | | | public | ''getLinkTopic()'' | getLinkTopic | 112 | |
| | public | ''getPostsPublishedByTopic()'' | getAllPublishedPostsByTopic | 151 | | | public | ''getPostsPublishedByTopic()'' | getAllPublishedPostsByTopic | 151 | |
| |
| |
| retrieves topic record by it slug record | retrieves topic record by it slug record |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$slug'' | ''(untyped)'' | //required// | //none// | | | ''$slug'' | ''(untyped)'' | //required// | //none// | |
| | ''$fetchMode'' | ''(untyped)'' | ''null'' | //none// | | | ''$fetchMode'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — mixed | **Returns:** ''(none declared)'' — mixed |
| getTopicById | getTopicById |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''(untyped)'' | //required// | //none// | | | ''$id'' | ''(untyped)'' | //required// | //none// | |
| | ''$fetchMode'' | ''(untyped)'' | ''null'' | //none// | | | ''$fetchMode'' | ''(untyped)'' | ''null'' | //none// | |
| |
| **Returns:** ''(none declared)'' — mixed | **Returns:** ''(none declared)'' — mixed |
| getLinkTopic | getLinkTopic |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$postId'' | ''(untyped)'' | //required// | //none// | | | ''$postId'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| requested and display it on category section | requested and display it on category section |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$topicId'' | ''(untyped)'' | //required// | //none// | | | ''$topicId'' | ''(untyped)'' | //required// | //none// | |
| | ''$sanitize'' | ''(untyped)'' | //required// | //none// | | | ''$sanitize'' | ''(untyped)'' | //required// | //none// | |
| | ''$perPage'' | [[scriptlog:lib:core:paginator|''Paginator'']] | //required// | //none// | | | ''$perPage'' | [[scriptlog:lib:core:paginator|''Paginator'']] | //required// | //none// | |
| |
| **Returns:** ''(none declared)'' — array | **Returns:** ''(none declared)'' — array |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] | | | ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] | |
| | ''Paginator'' | [[scriptlog:lib:core:paginator|''Scriptlog\Core\Paginator'']] | | | ''Paginator'' | [[scriptlog:lib:core:paginator|''Scriptlog\Core\Paginator'']] | |
| | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | | | ''Sanitize'' | [[scriptlog:lib:core:sanitize|''Scriptlog\Core\Sanitize'']] | |
| |
| |