class FilesystemHelper

File system helper

Holds support functions for the filesystem, particularly the stream

Methods

static  mixed
remotefsize( string $url)

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

static  mixed
ftpChmod( string $url, integer $mode)

Quick FTP chmod

static  array
getWriteModes()

Modes that require a write operation

static  array
getSupported()

Stream and Filter Support Operations

static  array
getTransports()

Returns a list of transports

static  array
getFilters()

Returns a list of filters

static  array
getJStreams()

Returns a list of J! streams

static  boolean
isJoomlaStream( string $streamname)

Determine if a stream is a Joomla stream.

static  float|string
fileUploadMaxSize( bool $unit_output = true)

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

Details

static mixed remotefsize( string $url)

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

Parameters

string $url TODO Add text

Return Value

mixed

static mixed ftpChmod( string $url, integer $mode)

Quick FTP chmod

Parameters

string $url Link identifier
integer $mode The new permissions, given as an octal value.

Return Value

mixed

static array getWriteModes()

Modes that require a write operation

Return Value

array

static array getSupported()

Stream and Filter Support Operations

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

Return Value

array Streams

static array getTransports()

Returns a list of transports

Return Value

array

static array getFilters()

Returns a list of filters

Return Value

array

static array getJStreams()

Returns a list of J! streams

Return Value

array

static boolean isJoomlaStream( string $streamname)

Determine if a stream is a Joomla stream.

Parameters

string $streamname The name of a stream

Return Value

boolean True for a Joomla Stream

static float|string fileUploadMaxSize( bool $unit_output = true)

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

Call it with JFilesystemHelper::fileUploadMaxSize();

Parameters

bool $unit_output This parameter determines whether the return value should be a string with a unit

Return Value

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