PHP Class Airship\Cabin\Bridge\Landing\Proto\FileManager

Inheritance: extends Airship\Cabin\Bridge\Landing\LoggedInUsersOnly, use trait Airship\Engine\Bolt\Get
Afficher le fichier Open project: paragonie/airship Class Usage Examples

Protected Properties

Свойство Type Description
$attribution array
$files Airship\Cabin\Bridge\Blueprint\Files
$path_middle string
$root_dir string

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Method Details

airshipLand() public méthode

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

commonConfirmDeleteDir() protected méthode

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

commonConfirmDeleteFile() protected méthode

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

commonGetFileInfo() protected méthode

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

commonIndex() protected méthode

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

commonMoveDir() protected méthode

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

commonMoveFile() protected méthode

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

commonSelectCabin() public méthode

Process the landing page.
public commonSelectCabin ( )

createDir() protected méthode

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

determinePath() protected méthode

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

getPath() protected méthode

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
Résultat array

loadCommonData() protected méthode

Reduce code duplication
protected loadCommonData ( string $path, string $cabin ) : array
$path string
$cabin string
Résultat array (array $publicPath, int|null $root)

permCheck() protected méthode

Permissions check -- override this in base classes
protected permCheck ( ) : boolean
Résultat boolean

uploadFiles() protected méthode

Upload files
protected uploadFiles ( integer $directoryId = null, string $cabin = '' ) : array
$directoryId integer
$cabin string
Résultat array

Property Details

$attribution protected_oe property

protected array $attribution
Résultat array

$files protected_oe property

protected Files,Airship\Cabin\Bridge\Blueprint $files
Résultat Airship\Cabin\Bridge\Blueprint\Files

$path_middle protected_oe property

protected string $path_middle
Résultat string

$root_dir protected_oe property

protected string $root_dir
Résultat string