class local extends base

Properties

protected language $language from  base
protected IniGetWrapper $php_ini from  base
protected upload $upload from  base
protected factory $factory
protected request_interface $request

Methods

check_upload_size(filespec $file)

Check if upload exceeds maximum file size

from  base
set_upload(upload $upload)

Set upload instance Needs to be executed before every upload.

from  base
__construct(factory $factory, language $language, IniGetWrapper $php_ini, request_interface $request)

Construct a form upload type

filespec|bool
upload()

Handle upload for upload types. Arguments passed to this method will be handled by the upload type classes themselves.

local_upload(string $source_file, array|bool $filedata = false)

Move file from another location to phpBB

array
get_upload_ary(string $source_file, array|bool $filedata)

Retrieve upload array

Details

in base at line 34
filespec check_upload_size(filespec $file)

Check if upload exceeds maximum file size

Parameters

filespec $file

Filespec object

Return Value

filespec

Returns same filespec instance

in base at line 59
type_interface set_upload(upload $upload)

Set upload instance Needs to be executed before every upload.

Parameters

upload $upload

Upload instance

Return Value

type_interface

Returns itself

at line 38
__construct(factory $factory, language $language, IniGetWrapper $php_ini, request_interface $request)

Construct a form upload type

Parameters

factory $factory

Files factory

language $language

Language class

IniGetWrapper $php_ini

ini_get() wrapper

request_interface $request

Request object

at line 49
filespec|bool upload()

Handle upload for upload types. Arguments passed to this method will be handled by the upload type classes themselves.

Return Value

filespec|bool

Filespec instance if upload is successful or false if not

at line 63
protected filespec local_upload(string $source_file, array|bool $filedata = false)

Move file from another location to phpBB

Parameters

string $source_file

Filename of source file

array|bool $filedata

Array with filedata or false

Return Value

filespec

Object "filespec" is returned, all further operations can be done with this object

at line 106
protected array get_upload_ary(string $source_file, array|bool $filedata)

Retrieve upload array

Parameters

string $source_file

Source file name

array|bool $filedata

File data array

Return Value

array

Upload array