PHP 클래스 RainLab\Blog\Components\Posts

상속: extends Cms\Classes\ComponentBase
파일 보기 프로젝트 열기: rainlab/blog-plugin

공개 프로퍼티들

프로퍼티 타입 설명
$category Model If the post list should be filtered by a category, the model to use.
$categoryPage string Reference to the page name for linking to categories.
$noPostsMessage string Message to display when there are no messages.
$pageParam string Parameter to use for the page number
$postPage string Reference to the page name for linking to posts.
$posts Collection A collection of posts to display
$sortOrder string If the post list should be ordered by another attribute.

공개 메소드들

메소드 설명
componentDetails ( )
defineProperties ( )
getCategoryPageOptions ( )
getPostPageOptions ( )
getSortOrderOptions ( )
onRun ( )

보호된 메소드들

메소드 설명
listPosts ( )
loadCategory ( )
prepareVars ( )

메소드 상세

componentDetails() 공개 메소드

public componentDetails ( )

defineProperties() 공개 메소드

public defineProperties ( )

getCategoryPageOptions() 공개 메소드

getPostPageOptions() 공개 메소드

public getPostPageOptions ( )

getSortOrderOptions() 공개 메소드

public getSortOrderOptions ( )

listPosts() 보호된 메소드

protected listPosts ( )

loadCategory() 보호된 메소드

protected loadCategory ( )

onRun() 공개 메소드

public onRun ( )

prepareVars() 보호된 메소드

protected prepareVars ( )

프로퍼티 상세

$category 공개적으로 프로퍼티

If the post list should be filtered by a category, the model to use.
public Model $category
리턴 Model

$categoryPage 공개적으로 프로퍼티

Reference to the page name for linking to categories.
public string $categoryPage
리턴 string

$noPostsMessage 공개적으로 프로퍼티

Message to display when there are no messages.
public string $noPostsMessage
리턴 string

$pageParam 공개적으로 프로퍼티

Parameter to use for the page number
public string $pageParam
리턴 string

$postPage 공개적으로 프로퍼티

Reference to the page name for linking to posts.
public string $postPage
리턴 string

$posts 공개적으로 프로퍼티

A collection of posts to display
public Collection $posts
리턴 Collection

$sortOrder 공개적으로 프로퍼티

If the post list should be ordered by another attribute.
public string $sortOrder
리턴 string