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

Наследование: extends LoggedInUsersOnly, use trait Get
Показать файл Открыть проект

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

Свойство Тип Описание
$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