PHP Класс Airship\Cabin\Bridge\Landing\Blog

Наследование: extends LoggedInUsersOnly, use trait Airship\Engine\Bolt\Orderable
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
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

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

Метод Описание
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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public editSeries ( string $seriesId )
$seriesId string

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

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

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

Convert a 2D array into a flat, ordered array of type_id
protected flattenOld ( array $oldItems ) : array
$oldItems array
Результат array

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

Gets [offset, limit] based on configuration
protected getOffsetAndLimit ( string $page = null, integer $per_page ) : int[]
$page string
$per_page integer
Результат int[]

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

Blog management landing page
public index ( )

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

List the categories
public listCategories ( )

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

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

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

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

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

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

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

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

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

Create a new category
public newCategory ( )

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

Create a new blog post
public newPost ( )

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

Create a new blog series
public newSeries ( )

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

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

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

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

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

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

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

Delete a blog post category
protected processDeleteCategory ( integer $categoryId, array $post = [] ) : boolean
$categoryId integer
$post array
Результат boolean

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

Delete a blog post
protected processDeletePost ( array $post, array $authorsAllowed = [], array $oldPost = [] ) : boolean
$post array
$authorsAllowed array
$oldPost array
Результат boolean

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

Update a blog post
protected processEditPost ( array $post, array $authorsAllowed = [], array $oldPost = [] ) : boolean
$post array
$authorsAllowed array
$oldPost array
Результат boolean

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

Update the existing series
protected processEditSeries ( array $post, integer $seriesId, array $oldItems = [] ) : boolean
$post array
$seriesId integer
$oldItems array
Результат boolean

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

protected processEditTag ( integer $tagId, array $post ) : boolean
$tagId integer
$post array
Результат boolean

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

Create a new blog post
protected processNewPost ( array $post, array $authorsAllowed = [] ) : boolean
$post array
$authorsAllowed array
Результат boolean

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

Create a new series
protected processNewSeries ( array $post = [], array $authorsAllowed = [] ) : boolean
$post array
$authorsAllowed array
Результат boolean

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

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

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

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

protected Author,Airship\Cabin\Bridge\Blueprint $author
Результат Airship\Cabin\Bridge\Blueprint\Author

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

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