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 $unitOutput = true) : float|string
Call it with JFilesystemHelper::fileUploadMaxSize();
since |
3.4 |
---|
Arguments
- $unitOutput
boolean
This parameter determines whether the return value should be a string with a unit
Response
float|string
The maximum upload size of files with the appropriate unit or in bytes
ftpChmod
Quick FTP chmod
ftpChmod(string $url, integer $mode) : mixed
link | |
---|---|
since |
1.7.0 |
Arguments
- $url
string
Link identifier- $mode
integer
The new permissions, given as an octal value.
Response
mixed
getFilters
Returns a list of filters
getFilters() : array
since |
1.7.0 |
---|
Response
array
getJStreams
Returns a list of J! streams
getJStreams() : array
since |
1.7.0 |
---|
Response
array
getSupported
Stream and Filter Support Operations
getSupported() : array
Returns the supported streams, in addition to direct file access Also includes Joomla! streams as well as PHP streams
since |
1.7.0 |
---|
Response
array
Streams
getTransports
Returns a list of transports
getTransports() : array
since |
1.7.0 |
---|
Response
array
getWriteModes
Modes that require a write operation
getWriteModes() : array
since |
1.7.0 |
---|
Response
array
isJoomlaStream
Determine if a stream is a Joomla stream.
isJoomlaStream(string $streamname) : boolean
since |
1.7.0 |
---|
Arguments
- $streamname
string
The name of a stream
Response
boolean
True for a Joomla Stream
parseSize
Returns the size in bytes without the unit for the comparison
parseSize(string $size) : float
since |
3.4 |
---|
Arguments
- $size
string
The size which is received from the PHP settings
Response
float
The size in bytes without the unit
parseSizeUnit
Creates the rounded size of the size with the appropriate unit
parseSizeUnit(float $maxSize) : string
since |
3.4 |
---|
Arguments
- $maxSize
float
The maximum size which is allowed for the uploads
Response
string
String with the size and the appropriate unit
remotefsize
Remote file size function for streams that don't support it
remotefsize(string $url) : mixed
link | |
---|---|
since |
1.7.0 |
Arguments
- $url
string
TODO Add text
Response
mixed