PHP Класс Flow\Request

Наследование: implements flow\RequestInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$file array File
$params array Request parameters

Открытые методы

Метод Описание
__construct ( array | null $params = null, array | null $file = null ) Constructor
getCurrentChunkNumber ( ) : integer | null Get current uploaded chunk number, starts with 1
getCurrentChunkSize ( ) : integer | null Get current uploaded chunk size
getDefaultChunkSize ( ) : integer | null Get default chunk size
getFile ( ) : array | null Return $_FILES request
getFileName ( ) : string | null Get uploaded file name
getIdentifier ( ) : string | null Get file unique identifier
getParam ( string $name ) : string | integer | null Get parameter value
getRelativePath ( ) : string | null Get file relative path
getTotalChunks ( ) : integer | null Get total chunks number
getTotalSize ( ) : integer | null Get total file size in bytes
isFustyFlowRequest ( ) : boolean Checks if request is formed by fusty flow

Описание методов

__construct() публичный Метод

Constructor
public __construct ( array | null $params = null, array | null $file = null )
$params array | null
$file array | null

getCurrentChunkNumber() публичный Метод

Get current uploaded chunk number, starts with 1
public getCurrentChunkNumber ( ) : integer | null
Результат integer | null

getCurrentChunkSize() публичный Метод

Get current uploaded chunk size
public getCurrentChunkSize ( ) : integer | null
Результат integer | null

getDefaultChunkSize() публичный Метод

Get default chunk size
public getDefaultChunkSize ( ) : integer | null
Результат integer | null

getFile() публичный Метод

Return $_FILES request
public getFile ( ) : array | null
Результат array | null

getFileName() публичный Метод

Get uploaded file name
public getFileName ( ) : string | null
Результат string | null

getIdentifier() публичный Метод

Get file unique identifier
public getIdentifier ( ) : string | null
Результат string | null

getParam() публичный Метод

Get parameter value
public getParam ( string $name ) : string | integer | null
$name string
Результат string | integer | null

getRelativePath() публичный Метод

Get file relative path
public getRelativePath ( ) : string | null
Результат string | null

getTotalChunks() публичный Метод

Get total chunks number
public getTotalChunks ( ) : integer | null
Результат integer | null

getTotalSize() публичный Метод

Get total file size in bytes
public getTotalSize ( ) : integer | null
Результат integer | null

isFustyFlowRequest() публичный Метод

Checks if request is formed by fusty flow
public isFustyFlowRequest ( ) : boolean
Результат boolean

Описание свойств

$file защищенное свойство

File
protected array $file
Результат array

$params защищенное свойство

Request parameters
protected array $params
Результат array