FilesystemHelper
File system helper
Holds support functions for the filesystem, particularly the stream
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper instead. |
package |
Joomla CMS |
Methods
fileUploadMaxSize
Calculates the maximum upload file size and returns string with unit or the size in bytes
fileUploadMaxSize( unitOutput = true) : float|string
Call it with JFilesystemHelper::fileUploadMaxSize();
since |
3.4 |
---|
Arguments
- unitOutput
bool
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( url, mode) :
link | |
---|---|
since |
1.7.0 |
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::ftpChmod() instead. |
Arguments
- url
string
Link identifier- mode
int
The new permissions, given as an octal value.
Response
mixed
getFilters
Returns a list of filters
getFilters() : mixed||string|int
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::getFilters() instead. |
Response
array<string|int, mixed>
getJStreams
Returns a list of J! streams
getJStreams() : mixed||string|int
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::getJStreams() instead. |
Response
array<string|int, mixed>
getSupported
Stream and Filter Support Operations
getSupported() : mixed||string|int
Returns the supported streams, in addition to direct file access Also includes Joomla! streams as well as PHP streams
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::getSupported() instead. |
Response
array<string|int, mixed>
Streams
getTransports
Returns a list of transports
getTransports() : mixed||string|int
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::getTransports() instead. |
Response
array<string|int, mixed>
getWriteModes
Modes that require a write operation
getWriteModes() : mixed||string|int
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::getWriteModes() instead. |
Response
array<string|int, mixed>
isJoomlaStream
Determine if a stream is a Joomla stream.
isJoomlaStream( streamname) :
since |
1.7.0 |
---|---|
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::isJoomlaStream() instead. |
Arguments
- streamname
string
The name of a stream
Response
bool
True for a Joomla Stream
parseSize
Returns the size in bytes without the unit for the comparison
parseSize( size) :
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( maxSize) :
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( url) :
link | |
---|---|
since |
1.7.0 |
deprecated |
4.4 will be removed in 6.0 Use Joomla\Filesystem\Helper::remotefsize() instead. |
Arguments
- url
string
Link identifier
Response
mixed