FilesystemHelper

File system helper

Holds support functions for the filesystem, particularly the stream

since

1.7.0

package

Application

Methods

fileUploadMaxSize

Calculates the maximum upload file size and returns string with unit or the size in bytes

fileUploadMaxSize(bool unitOutput = true) : float|string
static

Call it with JFilesystemHelper::fileUploadMaxSize();

since

3.4

Arguments

unitOutput

boolThis parameter determines whether the return value should be a string with a unit

Response

float|stringThe maximum upload size of files with the appropriate unit or in bytes

ftpChmod

Quick FTP chmod

ftpChmod(string url, int mode) : mixed
static
link
since

1.7.0

Arguments

url

stringLink identifier

mode

intThe new permissions, given as an octal value.

Response

mixed

getFilters

Returns a list of filters

getFilters() : array
static
since

1.7.0

Response

array

getJStreams

Returns a list of J! streams

getJStreams() : array
static
since

1.7.0

Response

array

getSupported

Stream and Filter Support Operations

getSupported() : array
static

Returns the supported streams, in addition to direct file access Also includes Joomla! streams as well as PHP streams

since

1.7.0

Response

arrayStreams

getTransports

Returns a list of transports

getTransports() : array
static
since

1.7.0

Response

array

getWriteModes

Modes that require a write operation

getWriteModes() : array
static
since

1.7.0

Response

array

isJoomlaStream

Determine if a stream is a Joomla stream.

isJoomlaStream(string streamname) : bool
static
since

1.7.0

Arguments

streamname

stringThe name of a stream

Response

boolTrue for a Joomla Stream

parseSize

Returns the size in bytes without the unit for the comparison

parseSize(string size) : float
static
since

3.4

Arguments

size

stringThe size which is received from the PHP settings

Response

floatThe size in bytes without the unit

parseSizeUnit

Creates the rounded size of the size with the appropriate unit

parseSizeUnit(float maxSize) : string
static
since

3.4

Arguments

maxSize

floatThe maximum size which is allowed for the uploads

Response

stringString with the size and the appropriate unit

remotefsize

Remote file size function for streams that don't support it

remotefsize(string url) : mixed
static
link
since

1.7.0

Arguments

url

stringLink identifier

Response

mixed