PHP Class Airship\Cabin\Bridge\Landing\Blog

Inheritance: extends LoggedInUsersOnly, use trait Airship\Engine\Bolt\Orderable
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$author Airship\Cabin\Bridge\Blueprint\Author
$blog Airship\Cabin\Bridge\Blueprint\Blog

Méthodes publiques

Méthode Description
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
deleteCategory ( string $id = '' ) Delete a category
deletePost ( string $id ) Delete a blog post
deleteSeries ( string $id = '' ) Delete a series.
editCategory ( string $id = '' ) Edit a category
editPost ( string $id ) Edit a blog post
editSeries ( string $seriesId )
editTag ( string $id = '' ) Edit a tag
index ( ) Blog management landing page
listCategories ( ) List the categories
listComments ( string $page = null )
listPosts ( string $page = null ) List the blog posts
listSeries ( mixed $page = null )
listTags ( mixed $page = null ) List tags
newCategory ( ) Create a new category
newPost ( ) Create a new blog post
newSeries ( ) Create a new blog series
postHistory ( string $postID = '' ) View the history for a blog post.
postHistoryDiff ( string $postID = '', string $leftUnique = '', string $rightUnique = '' ) Compare two versions of a blog post.
postHistoryView ( string $postID = '', string $uniqueID = '' ) View a version of a blog post.
viewComment ( string $commentId = '' ) View a comment

Méthodes protégées

Méthode Description
flattenOld ( array $oldItems ) : array Convert a 2D array into a flat, ordered array of type_id
getOffsetAndLimit ( string $page = null, integer $per_page ) : int[] Gets [offset, limit] based on configuration
processDeleteCategory ( integer $categoryId, array $post = [] ) : boolean Delete a blog post category
processDeletePost ( array $post, array $authorsAllowed = [], array $oldPost = [] ) : boolean Delete a blog post
processEditPost ( array $post, array $authorsAllowed = [], array $oldPost = [] ) : boolean Update a blog post
processEditSeries ( array $post, integer $seriesId, array $oldItems = [] ) : boolean Update the existing series
processEditTag ( integer $tagId, array $post ) : boolean
processNewPost ( array $post, array $authorsAllowed = [] ) : boolean Create a new blog post
processNewSeries ( array $post = [], array $authorsAllowed = [] ) : boolean Create a new series

Method Details

airshipLand() public méthode

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

deleteCategory() public méthode

Delete a category
public deleteCategory ( string $id = '' )
$id string

deletePost() public méthode

Delete a blog post
public deletePost ( string $id )
$id string

deleteSeries() public méthode

Delete a series.
public deleteSeries ( string $id = '' )
$id string

editCategory() public méthode

Edit a category
public editCategory ( string $id = '' )
$id string

editPost() public méthode

Edit a blog post
public editPost ( string $id )
$id string

editSeries() public méthode

public editSeries ( string $seriesId )
$seriesId string

editTag() public méthode

Edit a tag
public editTag ( string $id = '' )
$id string

flattenOld() protected méthode

Convert a 2D array into a flat, ordered array of type_id
protected flattenOld ( array $oldItems ) : array
$oldItems array
Résultat array

getOffsetAndLimit() protected méthode

Gets [offset, limit] based on configuration
protected getOffsetAndLimit ( string $page = null, integer $per_page ) : int[]
$page string
$per_page integer
Résultat int[]

index() public méthode

Blog management landing page
public index ( )

listCategories() public méthode

List the categories
public listCategories ( )

listComments() public méthode

public listComments ( string $page = null )
$page string

listPosts() public méthode

List the blog posts
public listPosts ( string $page = null )
$page string

listSeries() public méthode

public listSeries ( mixed $page = null )
$page mixed

listTags() public méthode

List tags
public listTags ( mixed $page = null )
$page mixed

newCategory() public méthode

Create a new category
public newCategory ( )

newPost() public méthode

Create a new blog post
public newPost ( )

newSeries() public méthode

Create a new blog series
public newSeries ( )

postHistory() public méthode

View the history for a blog post.
public postHistory ( string $postID = '' )
$postID string

postHistoryDiff() public méthode

Compare two versions of a blog post.
public postHistoryDiff ( string $postID = '', string $leftUnique = '', string $rightUnique = '' )
$postID string
$leftUnique string
$rightUnique string

postHistoryView() public méthode

View a version of a blog post.
public postHistoryView ( string $postID = '', string $uniqueID = '' )
$postID string
$uniqueID string

processDeleteCategory() protected méthode

Delete a blog post category
protected processDeleteCategory ( integer $categoryId, array $post = [] ) : boolean
$categoryId integer
$post array
Résultat boolean

processDeletePost() protected méthode

Delete a blog post
protected processDeletePost ( array $post, array $authorsAllowed = [], array $oldPost = [] ) : boolean
$post array
$authorsAllowed array
$oldPost array
Résultat boolean

processEditPost() protected méthode

Update a blog post
protected processEditPost ( array $post, array $authorsAllowed = [], array $oldPost = [] ) : boolean
$post array
$authorsAllowed array
$oldPost array
Résultat boolean

processEditSeries() protected méthode

Update the existing series
protected processEditSeries ( array $post, integer $seriesId, array $oldItems = [] ) : boolean
$post array
$seriesId integer
$oldItems array
Résultat boolean

processEditTag() protected méthode

protected processEditTag ( integer $tagId, array $post ) : boolean
$tagId integer
$post array
Résultat boolean

processNewPost() protected méthode

Create a new blog post
protected processNewPost ( array $post, array $authorsAllowed = [] ) : boolean
$post array
$authorsAllowed array
Résultat boolean

processNewSeries() protected méthode

Create a new series
protected processNewSeries ( array $post = [], array $authorsAllowed = [] ) : boolean
$post array
$authorsAllowed array
Résultat boolean

viewComment() public méthode

View a comment
public viewComment ( string $commentId = '' )
$commentId string

Property Details

$author protected_oe property

protected Author,Airship\Cabin\Bridge\Blueprint $author
Résultat Airship\Cabin\Bridge\Blueprint\Author

$blog protected_oe property

protected Blog,Airship\Cabin\Bridge\Blueprint $blog
Résultat Airship\Cabin\Bridge\Blueprint\Blog