PHP 클래스 Airship\Cabin\Bridge\Landing\Blog

상속: extends LoggedInUsersOnly, use trait Airship\Engine\Bolt\Orderable
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

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