PHP Class RainLab\Blog\Components\Posts

Inheritance: extends Cms\Classes\ComponentBase
Afficher le fichier Open project: rainlab/blog-plugin

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
componentDetails ( )
defineProperties ( )
getCategoryPageOptions ( )
getPostPageOptions ( )
getSortOrderOptions ( )
onRun ( )

Méthodes protégées

Méthode Description
listPosts ( )
loadCategory ( )
prepareVars ( )

Method Details

componentDetails() public méthode

public componentDetails ( )

defineProperties() public méthode

public defineProperties ( )

getCategoryPageOptions() public méthode

getPostPageOptions() public méthode

public getPostPageOptions ( )

getSortOrderOptions() public méthode

public getSortOrderOptions ( )

listPosts() protected méthode

protected listPosts ( )

loadCategory() protected méthode

protected loadCategory ( )

onRun() public méthode

public onRun ( )

prepareVars() protected méthode

protected prepareVars ( )

Property Details

$category public_oe property

If the post list should be filtered by a category, the model to use.
public Model $category
Résultat Model

$categoryPage public_oe property

Reference to the page name for linking to categories.
public string $categoryPage
Résultat string

$noPostsMessage public_oe property

Message to display when there are no messages.
public string $noPostsMessage
Résultat string

$pageParam public_oe property

Parameter to use for the page number
public string $pageParam
Résultat string

$postPage public_oe property

Reference to the page name for linking to posts.
public string $postPage
Résultat string

$posts public_oe property

A collection of posts to display
public Collection $posts
Résultat Collection

$sortOrder public_oe property

If the post list should be ordered by another attribute.
public string $sortOrder
Résultat string