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

상속: extends LoggedInUsersOnly, use trait Get
파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$pg Airship\Cabin\Bridge\Blueprint\CustomPages

공개 메소드들

메소드 설명
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
deleteDir ( string $cabin = '' ) Delete a directory in the custom page system
deletePage ( string $cabin = '' )
editPage ( string $cabin = '' ) We're going to edit a directory
forCabin ( string $cabin = '' ) List all of the subdirectories and custom pages in a given directory
index ( ) Serve the index page
newDir ( string $cabin = '' ) We're going to create a directory
newPage ( string $cabin = '' ) Create a new page
pageHistory ( string $cabin = '' ) We're going to view a page's history
pageHistoryDiff ( string $cabin, string $leftUnique, string $rightUnique ) We're going to view a page's history
pageHistoryView ( string $cabin, string $uniqueId ) We're going to view a page's history
renameDir ( string $cabin ) We're going to move/rename a directory
renamePage ( string $cabin ) We're going to create a directory

보호된 메소드들

메소드 설명
detectCollisions ( string $uri, string $cabin ) : boolean Find probable collisions between patterns and cabin names, as well as hard-coded paths in the current cabin. It does NOT look for collisions in custom pages, nor in page collisions in foreign Cabins (outside of the Cabin itself).
determinePath ( string &$cabin ) : string Business logic.
processDeleteDir ( integer $targetID, array $post = [], string $oldCabin = '', array $cabins = [] ) : boolean
processDeletePage ( integer $pageId, array $post = [], string $cabin = '', string $dir = '' ) : boolean Confirm deletion
processEditPage ( integer $pageId, array $post = [], string $cabin = '', string $dir = '' ) : boolean Create a new page in the current directory
processMoveDir ( array $dirInfo, array $post = [], string $oldCabin = '', array $cabins = [] ) : boolean Move/rename a directory.
processMovePage ( array $page, array $post, string $cabin, string $dir ) : boolean Move a page
processNewDir ( string $cabin, string $parent, array $post = [] ) : boolean
processNewPage ( string $cabin, string $path, array $post = [] ) : boolean Create a new page in the current directory
setTemplateExtraData ( string $cabin ) Set the cabin links

메소드 상세

airshipLand() 공개 메소드

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

deleteDir() 공개 메소드

Delete a directory in the custom page system
public deleteDir ( string $cabin = '' )
$cabin string

deletePage() 공개 메소드

public deletePage ( string $cabin = '' )
$cabin string

detectCollisions() 보호된 메소드

Find probable collisions between patterns and cabin names, as well as hard-coded paths in the current cabin. It does NOT look for collisions in custom pages, nor in page collisions in foreign Cabins (outside of the Cabin itself).
protected detectCollisions ( string $uri, string $cabin ) : boolean
$uri string
$cabin string
리턴 boolean

determinePath() 보호된 메소드

Business logic.
protected determinePath ( string &$cabin ) : string
$cabin string
리턴 string

editPage() 공개 메소드

We're going to edit a directory
public editPage ( string $cabin = '' )
$cabin string

forCabin() 공개 메소드

List all of the subdirectories and custom pages in a given directory
public forCabin ( string $cabin = '' )
$cabin string

index() 공개 메소드

Serve the index page
public index ( )

newDir() 공개 메소드

We're going to create a directory
public newDir ( string $cabin = '' )
$cabin string

newPage() 공개 메소드

Create a new page
public newPage ( string $cabin = '' )
$cabin string

pageHistory() 공개 메소드

We're going to view a page's history
public pageHistory ( string $cabin = '' )
$cabin string

pageHistoryDiff() 공개 메소드

We're going to view a page's history
public pageHistoryDiff ( string $cabin, string $leftUnique, string $rightUnique )
$cabin string
$leftUnique string
$rightUnique string

pageHistoryView() 공개 메소드

We're going to view a page's history
public pageHistoryView ( string $cabin, string $uniqueId )
$cabin string
$uniqueId string

processDeleteDir() 보호된 메소드

protected processDeleteDir ( integer $targetID, array $post = [], string $oldCabin = '', array $cabins = [] ) : boolean
$targetID integer
$post array
$oldCabin string
$cabins array
리턴 boolean

processDeletePage() 보호된 메소드

Confirm deletion
protected processDeletePage ( integer $pageId, array $post = [], string $cabin = '', string $dir = '' ) : boolean
$pageId integer
$post array
$cabin string
$dir string
리턴 boolean

processEditPage() 보호된 메소드

Create a new page in the current directory
protected processEditPage ( integer $pageId, array $post = [], string $cabin = '', string $dir = '' ) : boolean
$pageId integer
$post array
$cabin string
$dir string
리턴 boolean

processMoveDir() 보호된 메소드

Move/rename a directory.
protected processMoveDir ( array $dirInfo, array $post = [], string $oldCabin = '', array $cabins = [] ) : boolean
$dirInfo array
$post array
$oldCabin string
$cabins array
리턴 boolean

processMovePage() 보호된 메소드

Move a page
protected processMovePage ( array $page, array $post, string $cabin, string $dir ) : boolean
$page array
$post array
$cabin string
$dir string
리턴 boolean

processNewDir() 보호된 메소드

protected processNewDir ( string $cabin, string $parent, array $post = [] ) : boolean
$cabin string
$parent string
$post array
리턴 boolean

processNewPage() 보호된 메소드

Create a new page in the current directory
protected processNewPage ( string $cabin, string $path, array $post = [] ) : boolean
$cabin string
$path string
$post array
리턴 boolean

renameDir() 공개 메소드

We're going to move/rename a directory
public renameDir ( string $cabin )
$cabin string

renamePage() 공개 메소드

We're going to create a directory
public renamePage ( string $cabin )
$cabin string

setTemplateExtraData() 보호된 메소드

Set the cabin links
protected setTemplateExtraData ( string $cabin )
$cabin string

프로퍼티 상세

$pg 보호되어 있는 프로퍼티

protected CustomPages,Airship\Cabin\Bridge\Blueprint $pg
리턴 Airship\Cabin\Bridge\Blueprint\CustomPages