This is an old revision of the document!
Table of Contents
FrontContentModel
Layer: Model · Source: lib/model/FrontContentModel.php:18 (lines 18–402)
final class FrontContentModel extends BaseModel
Docblock Metadata
^ Tag ^ Value ^ | ''@category'' | Model class | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 |
Inheritance
^ Relation ^ Type ^ Meaning ^ | extends | [[scriptlog:lib:core:basemodel|''BaseModel'']] | parent class/interface |
Constants (0)
None.
Properties (0)
None declared.
Methods (23)
^ Visibility ^ Method ^ Summary ^ Line ^ | public static | ''frontRandomHeadlines()'' | frontRandomHeadlinesPosts | 83 | | public static | ''frontLatestPosts()'' | frontLatestPosts | 99 | | public static | ''frontRandomPosts()'' | frontRandomPosts | 119 | | public static | ''frontPostById()'' | frontPostById() | 133 | | public static | ''frontPostsFeed()'' | frontPostsFeed() | 149 | | public static | ''frontRandomStickyPage()'' | frontRandomStickyPage() | 162 | | public static | ''frontPageBySlug()'' | frontPageBySlug() | 177 | | public static | ''frontPageById()'' | frontPageById | 191 | | public static | ''frontGalleries()'' | frontGalleries() | 205 | | public static | ''frontSidebarTopics()'' | frontSidebarTopics | 218 | | public static | ''frontTopicBySlug()'' | frontTopicBySlug() | 232 | | public static | ''frontTopicById()'' | frontTopicById | 246 | | public static | ''frontLinkTopic()'' | FrontLinkTopic | 260 | | public static | ''frontLinkTag()'' | frontLinkTag | 273 | | public static | ''frontPostsByArchive()'' | frontPostsByArchive | 287 | | public static | ''frontPostsByTopic()'' | frontPostsByTopic | 301 | | public static | ''frontBlogPosts()'' | frontBlogPosts | 319 | | public static | ''frontPostsByTag()'' | frontPostsByTag | 334 | | public static | ''frontSidebarArchives()'' | frontSidebarArchives | 349 | | public static | ''frontArchiveIndex()'' | frontArchiveIndex | 361 | | public static | ''frontNewCommentByPost()'' | frontNewCommentByPost | 374 | | public static | ''frontSanitizer()'' | frontSanitizer | 385 | | private static | ''frontPaginator()'' | frontPaginator | 398 |
frontRandomHeadlines()
public static function frontRandomHeadlines(PostModel $postModel)
lines 83–87 (5)
frontRandomHeadlinesPosts
^ Parameter ^ Type ^ Default ^ Description ^ | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontLatestPosts()
public static function frontLatestPosts($limit, PostModel $postModel, $position = null)
lines 99–109 (11)
frontLatestPosts
^ Parameter ^ Type ^ Default ^ Description ^ | ''$limit'' | ''(untyped)'' | //required// | //none// | | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// | | ''$position'' | ''(untyped)'' | ''null'' | //none// |
Returns: (none declared) — mixed
frontRandomPosts()
public static function frontRandomPosts($start, $end, PostModel $postModel)
lines 119–123 (5)
frontRandomPosts
^ Parameter ^ Type ^ Default ^ Description ^ | ''$start'' | ''(untyped)'' | //required// | //none// | | ''$end'' | ''(untyped)'' | //required// | //none// | | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPostById()
public static function frontPostById($postId, PostModel $postModel)
lines 133–137 (5)
frontPostById()
^ Parameter ^ Type ^ Default ^ Description ^ | ''$postId'' | ''(untyped)'' | //required// | //none// | | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPostsFeed()
public static function frontPostsFeed($limit, PostModel $postModel)
lines 149–153 (5)
frontPostsFeed()
retrieve all posts records and display it on rss page
^ Parameter ^ Type ^ Default ^ Description ^ | ''$limit'' | ''(untyped)'' | //required// | //none// | | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontRandomStickyPage()
public static function frontRandomStickyPage(PageModel $pageModel)
lines 162–167 (6)
frontRandomStickyPage()
^ Parameter ^ Type ^ Default ^ Description ^ | ''$pageModel'' | [[scriptlog:lib:model:pagemodel|''PageModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPageBySlug()
public static function frontPageBySlug($slug, PageModel $pageModel)
lines 177–181 (5)
frontPageBySlug()
^ Parameter ^ Type ^ Default ^ Description ^ | ''$slug'' | ''(untyped)'' | //required// | //none// | | ''$pageModel'' | [[scriptlog:lib:model:pagemodel|''PageModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPageById()
public static function frontPageById($id, PageModel $pageModel)
lines 191–195 (5)
frontPageById
^ Parameter ^ Type ^ Default ^ Description ^ | ''$id'' | ''(untyped)'' | //required// | //none// | | ''$pageModel'' | [[scriptlog:lib:model:pagemodel|''PageModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontGalleries()
public static function frontGalleries(GalleryModel $galleryModel, $start, $limit)
lines 205–209 (5)
frontGalleries()
^ Parameter ^ Type ^ Default ^ Description ^ | ''$galleryModel'' | [[scriptlog:lib:model:gallerymodel|''GalleryModel'']] | //required// | //none// | | ''$start'' | ''(untyped)'' | //required// | //none// | | ''$limit'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared) — mixed
frontSidebarTopics()
public static function frontSidebarTopics(TopicModel $topicModel)
lines 218–222 (5)
frontSidebarTopics
^ Parameter ^ Type ^ Default ^ Description ^ | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontTopicBySlug()
public static function frontTopicBySlug($slug, TopicModel $topicModel)
lines 232–236 (5)
frontTopicBySlug()
^ Parameter ^ Type ^ Default ^ Description ^ | ''$slug'' | ''(untyped)'' | //required// | //none// | | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontTopicById()
public static function frontTopicById($topicId, TopicModel $topicModel)
lines 246–250 (5)
frontTopicById
^ Parameter ^ Type ^ Default ^ Description ^ | ''$topicId'' | ''(untyped)'' | //required// | //none// | | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontLinkTopic()
public static function frontLinkTopic($postId, TopicModel $topicModel)
lines 260–264 (5)
FrontLinkTopic
^ Parameter ^ Type ^ Default ^ Description ^ | ''$postId'' | ''(untyped)'' | //required// | //none// | | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontLinkTag()
public static function frontLinkTag($postId, TagModel $tagModel)
lines 273–277 (5)
frontLinkTag
^ Parameter ^ Type ^ Default ^ Description ^ | ''$postId'' | ''(untyped)'' | //required// | //none// | | ''$tagModel'' | [[scriptlog:lib:model:tagmodel|''TagModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPostsByArchive()
public static function frontPostsByArchive(array $values, ArchivesModel $archivesModel)
lines 287–292 (6)
frontPostsByArchive
^ Parameter ^ Type ^ Default ^ Description ^ | ''$values'' | ''array'' | //required// | //none// | | ''$archivesModel'' | [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPostsByTopic()
public static function frontPostsByTopic($topicId, TopicModel $topicModel)
lines 301–310 (10)
frontPostsByTopic
^ Parameter ^ Type ^ Default ^ Description ^ | ''$topicId'' | ''(untyped)'' | //required// | //none// | | ''$topicModel'' | [[scriptlog:lib:model:topicmodel|''TopicModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontBlogPosts()
public static function frontBlogPosts(PostModel $postModel)
lines 319–324 (6)
frontBlogPosts
^ Parameter ^ Type ^ Default ^ Description ^ | ''$postModel'' | [[scriptlog:lib:model:postmodel|''PostModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontPostsByTag()
public static function frontPostsByTag($tag, TagModel $tagModel)
lines 334–339 (6)
frontPostsByTag
^ Parameter ^ Type ^ Default ^ Description ^ | ''$tag'' | ''(untyped)'' | //required// | //none// | | ''$tagModel'' | [[scriptlog:lib:model:tagmodel|''TagModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontSidebarArchives()
public static function frontSidebarArchives(ArchivesModel $archivesModel)
lines 349–353 (5)
frontSidebarArchives
^ Parameter ^ Type ^ Default ^ Description ^ | ''$archivesModel'' | [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontArchiveIndex()
public static function frontArchiveIndex(ArchivesModel $archivesModel)
lines 361–365 (5)
frontArchiveIndex
^ Parameter ^ Type ^ Default ^ Description ^ | ''$archivesModel'' | [[scriptlog:lib:model:archivesmodel|''ArchivesModel'']] | //required// | //none// |
Returns: (none declared) — mixed
frontNewCommentByPost()
public static function frontNewCommentByPost($bind, CommentModel $commentModel)
lines 374–378 (5)
frontNewCommentByPost
^ Parameter ^ Type ^ Default ^ Description ^ | ''$bind'' | ''(untyped)'' | //required// | //none// | | ''$commentModel'' | [[scriptlog:lib:model:commentmodel|''CommentModel'']] | //required// | //none// |
Returns: (none declared)
frontSanitizer()
public static function frontSanitizer()
lines 385–388 (4)
frontSanitizer
a
Takes no parameters.
Returns: (none declared) — object|string
frontPaginator()
private static function frontPaginator($perPage, $instance)
lines 398–401 (4)
frontPaginator
^ Parameter ^ Type ^ Default ^ Description ^ | ''$perPage'' | ''(untyped)'' | //required// | //none// | | ''$instance'' | ''(untyped)'' | //required// | //none// |
Returns: (none declared) — object|string
Imports
^ Alias ^ Fully-qualified name ^ | ''BaseModel'' | [[scriptlog:lib:core:basemodel|''Scriptlog\Core\BaseModel'']] |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.
