FilesystemHelper

File system helper

Holds support functions for the filesystem, particularly the stream

since

1.7.0

Methods

fileUploadMaxSize

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

fileUploadMaxSize(boolean $unit_output = true) : float|string
static

Call it with JFilesystemHelper::fileUploadMaxSize();

since

3.4

Arguments

$unit_output

booleanThis 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, integer $mode) : mixed
static
link

https://www.php.net/manual/en/function.ftp-chmod.php

since

1.7.0

Arguments

$url

stringLink identifier

$mode

integerThe 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) : boolean
static
since

1.7.0

Arguments

$streamname

stringThe name of a stream

Response

booleanTrue 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 $max_size) : string
static
since

3.4

Arguments

$max_size

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

https://www.php.net/manual/en/function.filesize.php

since

1.7.0

Arguments

$url

stringTODO Add text

Response

mixed