PHP Класс RainLab\Blog\Components\Posts

Наследование: extends Cms\Classes\ComponentBase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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