PHP Класс Airship\Cabin\Bridge\Landing\Proto\FileManager

Наследование: extends Airship\Cabin\Bridge\Landing\LoggedInUsersOnly, use trait Airship\Engine\Bolt\Get
Показать файл Открыть проект Примеры использования класса

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

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