PHP 클래스 Airship\Cabin\Hull\Landing\BlogPosts

Read-only access to blog posts.
상속: extends LandingGear
파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$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