PHP Класс Airship\Cabin\Hull\Landing\BlogPosts

Read-only access to blog posts.
Наследование: extends LandingGear
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$blog Airship\Cabin\Hull\Blueprint\Blog

Открытые методы

Метод Описание
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
index ( ) Blog post home
listAll ( ) List all of the blog posts
listByAuthor ( string $slug, string $page = '' ) List all of the blog posts for a given year
listByCategory ( string $slug = '', string $page = '' ) List all of the blog posts for a given year
listBySeries ( string $slug = '', string $page = '' ) List all of the blog posts for a given year
listByTag ( string $slug, string $page = '' ) List all of the blog posts for a given tag
listMonth ( string $year, string $month ) List all of the blog posts for a given year/month
listSeries ( ) List all of the blog posts for a given year
listYear ( string $year ) List all of the blog posts for a given year
readPost ( string $year, string $month, string $slug ) Read a blog post
shortURL ( string $uniqueID = '' ) Handle short URLs

Защищенные методы

Метод Описание
addComment ( array $post = [], integer $blogPostId ) : boolean Add a comment to a blog post
getOffsetAndLimit ( mixed $page = null ) : array Gets [offset, limit] based on Blog configuration

Описание методов

addComment() защищенный Метод

Add a comment to a blog post
protected addComment ( array $post = [], integer $blogPostId ) : boolean
$post array
$blogPostId integer
Результат boolean

airshipLand() публичный Метод

This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
public airshipLand ( )

getOffsetAndLimit() защищенный Метод

Gets [offset, limit] based on Blog configuration
protected getOffsetAndLimit ( mixed $page = null ) : array
$page mixed
Результат array

index() публичный Метод

Blog post home
public index ( )

listAll() публичный Метод

List all of the blog posts
public listAll ( )

listByAuthor() публичный Метод

List all of the blog posts for a given year
public listByAuthor ( string $slug, string $page = '' )
$slug string
$page string

listByCategory() публичный Метод

List all of the blog posts for a given year
public listByCategory ( string $slug = '', string $page = '' )
$slug string
$page string

listBySeries() публичный Метод

List all of the blog posts for a given year
public listBySeries ( string $slug = '', string $page = '' )
$slug string
$page string

listByTag() публичный Метод

List all of the blog posts for a given tag
public listByTag ( string $slug, string $page = '' )
$slug string
$page string

listMonth() публичный Метод

List all of the blog posts for a given year/month
public listMonth ( string $year, string $month )
$year string
$month string

listSeries() публичный Метод

List all of the blog posts for a given year
public listSeries ( )

listYear() публичный Метод

List all of the blog posts for a given year
public listYear ( string $year )
$year string

readPost() публичный Метод

Read a blog post
public readPost ( string $year, string $month, string $slug )
$year string
$month string
$slug string

shortURL() публичный Метод

Handle short URLs
public shortURL ( string $uniqueID = '' )
$uniqueID string

Описание свойств

$blog защищенное свойство

protected Blog,Airship\Cabin\Hull\Blueprint $blog
Результат Airship\Cabin\Hull\Blueprint\Blog