Helper

File system helper

Holds support functions for the filesystem, particularly the stream

since

1.0

package

Joomla Framework

Methods

ftpChmod

Quick FTP chmod

ftpChmod( url,  mode) : int|bool
static
link
since

1.0

Arguments

url

stringLink identifier

mode

intThe new permissions, given as an octal value.

Response

int|bool

getFileUploadMaxSize

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

getFileUploadMaxSize() : 
static
since

3.1

Response

intThe maximum upload size of files with the appropriate in bytes

getFileUploadMaxSizeWithUnit

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

getFileUploadMaxSizeWithUnit() : 
static
since

3.1

Response

intThe maximum upload size of files with the appropriate in bytes

getFilters

Returns a list of filters

getFilters() : mixed||string|int
static
since

1.0

Response

array<string|int, mixed>

getJStreams

Returns a list of J! streams

getJStreams() : mixed||string|int
static
since

1.0

Response

array<string|int, mixed>

getSupported

Stream and Filter Support Operations

getSupported() : mixed||string|int
static

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

since

1.0

Response

array<string|int, mixed>Streams

getTransports

Returns a list of transports

getTransports() : mixed||string|int
static
since

1.0

Response

array<string|int, mixed>

getWriteModes

Modes that require a write operation

getWriteModes() : mixed||string|int
static
since

1.0

Response

array<string|int, mixed>

isJoomlaStream

Determine if a stream is a Joomla stream.

isJoomlaStream( streamname) : 
static
since

1.0

Arguments

streamname

stringThe name of a stream

Response

boolTrue for a Joomla Stream

parseBytesUnit

Creates the rounded byte count of the bytes with the appropriate unit

parseBytesUnit( bytes) : 
static
since

3.1

Arguments

bytes

floatThe bytes

Response

stringString with the bytes and the appropriate unit

parseSize

Returns the size in bytes without the unit for the comparison

parseSize( size) : 
static
since

3.1

Arguments

size

stringThe size which is received from the PHP settings

Response

floatThe size in bytes without the unit

remotefsize

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

remotefsize( url) : 
static
link
since

1.0

Arguments

url

stringTODO Add text

Response

mixed