PHP 클래스 Airship\Cabin\Bridge\Landing\Proto\FileManager

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

보호된 프로퍼티들

프로퍼티 타입 설명
$attribution array
$files Airship\Cabin\Bridge\Blueprint\Files
$path_middle string
$root_dir string

공개 메소드들

메소드 설명
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
commonSelectCabin ( ) Process the landing page.

보호된 메소드들

메소드 설명
commonConfirmDeleteDir ( string $path, string $cabin ) Confirm directory deletion
commonConfirmDeleteFile ( string $file, string $path, string $cabin ) Confirm file deletion
commonGetFileInfo ( string $file, string $path, string $cabin ) Get information about a file
commonIndex ( string $path, string $cabin ) Process the landing page.
commonMoveDir ( string $path, string $cabin ) Move/Rename a directory
commonMoveFile ( string $file, string $path, string $cabin ) Move/rename a file
createDir ( integer $directoryId = null, string $cabin = '', array $post = [] ) : array Create a new directory for file uploads
determinePath ( string &$cabin ) : string Don't break on bad Apache/nginx configuration (which is common)
getPath ( string $path ) : array Given a string (and a predetermined current root directory), get a sequence of folder names to determine the current path
loadCommonData ( string $path, string $cabin ) : array Reduce code duplication
permCheck ( ) : boolean Permissions check -- override this in base classes
uploadFiles ( integer $directoryId = null, string $cabin = '' ) : array Upload files

메소드 상세

airshipLand() 공개 메소드

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

commonConfirmDeleteDir() 보호된 메소드

Confirm directory deletion
protected commonConfirmDeleteDir ( string $path, string $cabin )
$path string
$cabin string

commonConfirmDeleteFile() 보호된 메소드

Confirm file deletion
protected commonConfirmDeleteFile ( string $file, string $path, string $cabin )
$file string
$path string
$cabin string

commonGetFileInfo() 보호된 메소드

Get information about a file
protected commonGetFileInfo ( string $file, string $path, string $cabin )
$file string
$path string
$cabin string

commonIndex() 보호된 메소드

Process the landing page.
protected commonIndex ( string $path, string $cabin )
$path string
$cabin string

commonMoveDir() 보호된 메소드

Move/Rename a directory
protected commonMoveDir ( string $path, string $cabin )
$path string
$cabin string

commonMoveFile() 보호된 메소드

Move/rename a file
protected commonMoveFile ( string $file, string $path, string $cabin )
$file string
$path string
$cabin string

commonSelectCabin() 공개 메소드

Process the landing page.
public commonSelectCabin ( )

createDir() 보호된 메소드

Create a new directory for file uploads
protected createDir ( integer $directoryId = null, string $cabin = '', array $post = [] ) : array
$directoryId integer
$cabin string
$post array
리턴 array

determinePath() 보호된 메소드

Don't break on bad Apache/nginx configuration (which is common)
protected determinePath ( string &$cabin ) : string
$cabin string
리턴 string

getPath() 보호된 메소드

Given a string (and a predetermined current root directory), get a sequence of folder names to determine the current path
protected getPath ( string $path ) : array
$path string
리턴 array

loadCommonData() 보호된 메소드

Reduce code duplication
protected loadCommonData ( string $path, string $cabin ) : array
$path string
$cabin string
리턴 array (array $publicPath, int|null $root)

permCheck() 보호된 메소드

Permissions check -- override this in base classes
protected permCheck ( ) : boolean
리턴 boolean

uploadFiles() 보호된 메소드

Upload files
protected uploadFiles ( integer $directoryId = null, string $cabin = '' ) : array
$directoryId integer
$cabin string
리턴 array

프로퍼티 상세

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

protected array $attribution
리턴 array

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

protected Files,Airship\Cabin\Bridge\Blueprint $files
리턴 Airship\Cabin\Bridge\Blueprint\Files

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

protected string $path_middle
리턴 string

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

protected string $root_dir
리턴 string