Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:model:frontcontentmodel

Differences

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

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:model:frontcontentmodel [2026/09/26 09:09] – admin adminscriptlog:lib:model:frontcontentmodel [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 (7) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private static'' | ''static'' | ''$postModel'' |  | 26 | 
 +| ''private static'' | ''static'' | ''$topicModel'' |  | 34 | 
 +| ''private static'' | ''static'' | ''$tagModel'' |  | 42 | 
 +| ''private static'' | ''static'' | ''$archivesModel'' |  | 50 | 
 +| ''private static'' | ''static'' | ''$pageModel'' |  | 58 | 
 +| ''private static'' | ''static'' | ''$galleryModel'' |  | 66 | 
 +| ''private static'' | ''static'' | ''$commentModel'' |  | 74 |
  
 ======= Methods (23) ======= ======= Methods (23) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public static | ''frontRandomHeadlines()'' | frontRandomHeadlinesPosts | 83 | +| public static | ''frontRandomHeadlines()'' | frontRandomHeadlinesPosts | 83 | 
-  | public static | ''frontLatestPosts()'' | frontLatestPosts | 99 | +| public static | ''frontLatestPosts()'' | frontLatestPosts | 99 | 
-  | public static | ''frontRandomPosts()'' | frontRandomPosts | 119 | +| public static | ''frontRandomPosts()'' | frontRandomPosts | 119 | 
-  | public static | ''frontPostById()'' | frontPostById() | 133 | +| public static | ''frontPostById()'' | frontPostById() | 133 | 
-  | public static | ''frontPostsFeed()'' | frontPostsFeed() | 149 | +| public static | ''frontPostsFeed()'' | frontPostsFeed() | 149 | 
-  | public static | ''frontRandomStickyPage()'' | frontRandomStickyPage() | 162 | +| public static | ''frontRandomStickyPage()'' | frontRandomStickyPage() | 162 | 
-  | public static | ''frontPageBySlug()'' | frontPageBySlug() | 177 | +| public static | ''frontPageBySlug()'' | frontPageBySlug() | 177 | 
-  | public static | ''frontPageById()'' | frontPageById | 191 | +| public static | ''frontPageById()'' | frontPageById | 191 | 
-  | public static | ''frontGalleries()'' | frontGalleries() | 205 | +| public static | ''frontGalleries()'' | frontGalleries() | 205 | 
-  | public static | ''frontSidebarTopics()'' | frontSidebarTopics | 218 | +| public static | ''frontSidebarTopics()'' | frontSidebarTopics | 218 | 
-  | public static | ''frontTopicBySlug()'' | frontTopicBySlug() | 232 | +| public static | ''frontTopicBySlug()'' | frontTopicBySlug() | 232 | 
-  | public static | ''frontTopicById()'' | frontTopicById | 246 | +| public static | ''frontTopicById()'' | frontTopicById | 246 | 
-  | public static | ''frontLinkTopic()'' | FrontLinkTopic | 260 | +| public static | ''frontLinkTopic()'' | FrontLinkTopic | 260 | 
-  | public static | ''frontLinkTag()'' | frontLinkTag | 273 | +| public static | ''frontLinkTag()'' | frontLinkTag | 273 | 
-  | public static | ''frontPostsByArchive()'' | frontPostsByArchive | 287 | +| public static | ''frontPostsByArchive()'' | frontPostsByArchive | 287 | 
-  | public static | ''frontPostsByTopic()'' | frontPostsByTopic | 301 | +| public static | ''frontPostsByTopic()'' | frontPostsByTopic | 301 | 
-  | public static | ''frontBlogPosts()'' | frontBlogPosts | 319 | +| public static | ''frontBlogPosts()'' | frontBlogPosts | 319 | 
-  | public static | ''frontPostsByTag()'' | frontPostsByTag | 334 | +| public static | ''frontPostsByTag()'' | frontPostsByTag | 334 | 
-  | public static | ''frontSidebarArchives()'' | frontSidebarArchives | 349 | +| public static | ''frontSidebarArchives()'' | frontSidebarArchives | 349 | 
-  | public static | ''frontArchiveIndex()'' | frontArchiveIndex | 361 | +| public static | ''frontArchiveIndex()'' | frontArchiveIndex | 361 | 
-  | public static | ''frontNewCommentByPost()'' | frontNewCommentByPost | 374 | +| public static | ''frontNewCommentByPost()'' | frontNewCommentByPost | 374 | 
-  | public static | ''frontSanitizer()'' | frontSanitizer | 385 | +| public static | ''frontSanitizer()'' | frontSanitizer | 385 | 
-  | private static | ''frontPaginator()'' | frontPaginator | 398 |+| private static | ''frontPaginator()'' | frontPaginator | 398 |
  
  
Line 67: Line 74:
 frontRandomHeadlinesPosts frontRandomHeadlinesPosts
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |+|  ''$postModel'' |  [[scriptlog:lib:model:postmodel|''PostModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 83: Line 90:
 frontLatestPosts frontLatestPosts
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$limit'' | ''(untyped)'' | //required// | //none// | +|  ''$limit'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// | +|  ''$postModel'' |  [[scriptlog:lib:model:postmodel|''PostModel'']] |  //required// |  //none// | 
-  | ''$position'' | ''(untyped)'' | ''null'' | //none// |+|  ''$position'' |  ''(untyped)'' |  ''null'' |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 101: Line 108:
 frontRandomPosts frontRandomPosts
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$start'' | ''(untyped)'' | //required// | //none// | +|  ''$start'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$end'' | ''(untyped)'' | //required// | //none// | +|  ''$end'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |+|  ''$postModel'' |  [[scriptlog:lib:model:postmodel|''PostModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 119: Line 126:
 frontPostById() frontPostById()
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postId'' | ''(untyped)'' | //required// | //none// | +|  ''$postId'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |+|  ''$postModel'' |  [[scriptlog:lib:model:postmodel|''PostModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 139: Line 146:
 and display it on rss page and display it on rss page
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$limit'' | ''(untyped)'' | //required// | //none// | +|  ''$limit'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |+|  ''$postModel'' |  [[scriptlog:lib:model:postmodel|''PostModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 156: Line 163:
 frontRandomStickyPage() frontRandomStickyPage()
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$pageModel'' | [[scriptlog:lib:model:pagemodel|''PageModel'']] | //required// | //none// |+|  ''$pageModel'' |  [[scriptlog:lib:model:pagemodel|''PageModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 172: Line 179:
 frontPageBySlug() frontPageBySlug()
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$slug'' | ''(untyped)'' | //required// | //none// | +|  ''$slug'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$pageModel'' | [[scriptlog:lib:model:pagemodel|''PageModel'']] | //required// | //none// |+|  ''$pageModel'' |  [[scriptlog:lib:model:pagemodel|''PageModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 189: Line 196:
 frontPageById frontPageById
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$id'' | ''(untyped)'' | //required// | //none// | +|  ''$id'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$pageModel'' | [[scriptlog:lib:model:pagemodel|''PageModel'']] | //required// | //none// |+|  ''$pageModel'' |  [[scriptlog:lib:model:pagemodel|''PageModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 206: Line 213:
 frontGalleries() frontGalleries()
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$galleryModel'' | [[scriptlog:lib:model:gallerymodel|''GalleryModel'']] | //required// | //none// | +|  ''$galleryModel'' |  [[scriptlog:lib:model:gallerymodel|''GalleryModel'']] |  //required// |  //none// | 
-  | ''$start'' | ''(untyped)'' | //required// | //none// | +|  ''$start'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$limit'' | ''(untyped)'' | //required// | //none// |+|  ''$limit'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 224: Line 231:
 frontSidebarTopics frontSidebarTopics
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |+|  ''$topicModel'' |  [[scriptlog:lib:model:topicmodel|''TopicModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 240: Line 247:
 frontTopicBySlug() frontTopicBySlug()
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$slug'' | ''(untyped)'' | //required// | //none// | +|  ''$slug'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |+|  ''$topicModel'' |  [[scriptlog:lib:model:topicmodel|''TopicModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 257: Line 264:
 frontTopicById frontTopicById
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$topicId'' | ''(untyped)'' | //required// | //none// | +|  ''$topicId'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |+|  ''$topicModel'' |  [[scriptlog:lib:model:topicmodel|''TopicModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 274: Line 281:
 FrontLinkTopic FrontLinkTopic
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postId'' | ''(untyped)'' | //required// | //none// | +|  ''$postId'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |+|  ''$topicModel'' |  [[scriptlog:lib:model:topicmodel|''TopicModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 291: Line 298:
 frontLinkTag frontLinkTag
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postId'' | ''(untyped)'' | //required// | //none// | +|  ''$postId'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$tagModel'' | [[scriptlog:lib:model:tagmodel|''TagModel'']] | //required// | //none// |+|  ''$tagModel'' |  [[scriptlog:lib:model:tagmodel|''TagModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 308: Line 315:
 frontPostsByArchive frontPostsByArchive
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$values'' | ''array'' | //required// | //none// | +|  ''$values'' |  ''array'' |  //required// |  //none// | 
-  | ''$archivesModel'' | [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] | //required// | //none// |+|  ''$archivesModel'' |  [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 325: Line 332:
 frontPostsByTopic frontPostsByTopic
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$topicId'' | ''(untyped)'' | //required// | //none// | +|  ''$topicId'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |+|  ''$topicModel'' |  [[scriptlog:lib:model:topicmodel|''TopicModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 342: Line 349:
 frontBlogPosts frontBlogPosts
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |+|  ''$postModel'' |  [[scriptlog:lib:model:postmodel|''PostModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 358: Line 365:
 frontPostsByTag frontPostsByTag
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$tag'' | ''(untyped)'' | //required// | //none// | +|  ''$tag'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$tagModel'' | [[scriptlog:lib:model:tagmodel|''TagModel'']] | //required// | //none// |+|  ''$tagModel'' |  [[scriptlog:lib:model:tagmodel|''TagModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 375: Line 382:
 frontSidebarArchives frontSidebarArchives
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$archivesModel'' | [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] | //required// | //none// |+|  ''$archivesModel'' |  [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 391: Line 398:
 frontArchiveIndex frontArchiveIndex
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$archivesModel'' | [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] | //required// | //none// |+|  ''$archivesModel'' |  [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — mixed **Returns:** ''(none declared)'' — mixed
Line 407: Line 414:
 frontNewCommentByPost frontNewCommentByPost
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$bind'' | ''(untyped)'' | //required// | //none// | +|  ''$bind'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$commentModel'' | [[scriptlog:lib:model:commentmodel|''CommentModel'']] | //required// | //none// |+|  ''$commentModel'' |  [[scriptlog:lib:model:commentmodel|''CommentModel'']] |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' **Returns:** ''(none declared)''
Line 441: Line 448:
 frontPaginator frontPaginator
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$perPage'' | ''(untyped)'' | //required// | //none// | +|  ''$perPage'' |  ''(untyped)'' |  //required// |  //none// | 
-  | ''$instance'' | ''(untyped)'' | //required// | //none// |+|  ''$instance'' |  ''(untyped)'' |  //required// |  //none// |
  
 **Returns:** ''(none declared)'' — object|string **Returns:** ''(none declared)'' — object|string
Line 449: Line 456:
 ======= 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'']] |
  
  
scriptlog/lib/model/frontcontentmodel.1790413761.txt.gz · Last modified: by admin