Property | Type | Description | |
---|---|---|---|
$blog |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 |
public airshipLand ( ) |
protected getOffsetAndLimit ( mixed $page = null ) : array | ||
$page | mixed | |
return | array |
public listByAuthor ( string $slug, string $page = '' ) | ||
$slug | string | |
$page | string |
public listByCategory ( string $slug = '', string $page = '' ) | ||
$slug | string | |
$page | string |
public listBySeries ( string $slug = '', string $page = '' ) | ||
$slug | string | |
$page | string |