Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:model:topicmodel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:model:topicmodel [2026/09/26 09:09] – admin adminscriptlog:lib:model:topicmodel [2026/09/26 09:34] (current) – admin admin
Line 10: Line 10:
 ======= 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) =======
Line 25: Line 25:
 //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 |
  
  
Line 68: Line 69:
 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
Line 85: Line 86:
 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
Line 102: Line 103:
 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
Line 122: Line 123:
 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
Line 131: Line 132:
 ======= 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'']] |
  
  
scriptlog/lib/model/topicmodel.1790413761.txt.gz · Last modified: by admin