PHP 클래스 Airship\Cabin\Hull\Blueprint\CustomPages

Custom web pages
상속: extends BlueprintGear
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cabin string

공개 메소드들

메소드 설명
getDirectoryId ( string $dir, integer $parent, string $cabin = '' ) : integer Get the directory ID for a given path
getLatestVersion ( integer $pageId ) : array Get the latest version of a custom page
getPage ( string $file, integer $directoryId, string $cabin = '' ) : array Get information about a custom page.
getPageById ( integer $pageId ) : array Get information about a custom page.
getParentDir ( array $dirs = [], string $cabin = '' ) : integer Get the parent directory
getParentDirFromStr ( string $dir, string $cabin = '' ) : integer Get the parent directory
getPathFromDirectoryId ( integer $directoryId, string $cabin = '', array $idsEncountered = [] ) : array Get all of the parent directories' URL components
serveRedirect ( string $uri ) : boolean If a redirect exists at this path, serve it.
setCabin ( string $cabin ) : self Set the cabin for this gear

메소드 상세

getDirectoryId() 공개 메소드

Get the directory ID for a given path
public getDirectoryId ( string $dir, integer $parent, string $cabin = '' ) : integer
$dir string
$parent integer
$cabin string
리턴 integer

getLatestVersion() 공개 메소드

Get the latest version of a custom page
public getLatestVersion ( integer $pageId ) : array
$pageId integer
리턴 array

getPage() 공개 메소드

Get information about a custom page.
public getPage ( string $file, integer $directoryId, string $cabin = '' ) : array
$file string
$directoryId integer
$cabin string
리턴 array

getPageById() 공개 메소드

Get information about a custom page.
public getPageById ( integer $pageId ) : array
$pageId integer
리턴 array

getParentDir() 공개 메소드

Get the parent directory
public getParentDir ( array $dirs = [], string $cabin = '' ) : integer
$dirs array
$cabin string
리턴 integer

getParentDirFromStr() 공개 메소드

Get the parent directory
public getParentDirFromStr ( string $dir, string $cabin = '' ) : integer
$dir string
$cabin string
리턴 integer

getPathFromDirectoryId() 공개 메소드

Get all of the parent directories' URL components
public getPathFromDirectoryId ( integer $directoryId, string $cabin = '', array $idsEncountered = [] ) : array
$directoryId integer
$cabin string
$idsEncountered array Prevent infinite loops
리턴 array

serveRedirect() 공개 메소드

If a redirect exists at this path, serve it.
public serveRedirect ( string $uri ) : boolean
$uri string
리턴 boolean

setCabin() 공개 메소드

Set the cabin for this gear
public setCabin ( string $cabin ) : self
$cabin string
리턴 self

프로퍼티 상세

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

protected string $cabin
리턴 string