Back to Joomla project (class list)

Class FilesystemHelper - list of methods

File system helper
Holds support functions for the filesystem, particularly the stream
Package: Joomla\CMS\Filesystem
Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Filesystem/FilesystemHelper.php
Project: Joomla

Method Summary

public static mixed
(mixed $url)

Remote file size function for streams that don't support it
Parameters
  • string $url Link identifier
Returns
  • mixed
Since
  • 1.7.0
-
  • https://www.php.net/manual/en/function.filesize.php
Show source code of this method: remotefsize Source Code

public static mixed
(mixed $url, mixed $mode)

Quick FTP chmod
Parameters
  • string $url Link identifier
  • int $mode The new permissions, given as an octal value.
Returns
  • mixed
Since
  • 1.7.0
-
  • https://www.php.net/manual/en/function.ftp-chmod.php
Show source code of this method: ftpChmod Source Code

public static array
()

Modes that require a write operation
Returns
  • array
Since
  • 1.7.0
Show source code of this method: getWriteModes Source Code

public static array
()

Stream and Filter Support Operations
Returns
  • array Streams
Since
  • 1.7.0
Show source code of this method: getSupported Source Code

public static array
()

Returns a list of transports
Returns
  • array
Since
  • 1.7.0
Show source code of this method: getTransports Source Code

public static array
()

Returns a list of filters
Returns
  • array
Since
  • 1.7.0
Show source code of this method: getFilters Source Code

public static array
()

Returns a list of J! streams
Returns
  • array
Since
  • 1.7.0
Show source code of this method: getJStreams Source Code

public static bool
(mixed $streamname)

Determine if a stream is a Joomla stream.
Parameters
  • string $streamname The name of a stream
Returns
  • bool True for a Joomla Stream
Since
  • 1.7.0
Show source code of this method: isJoomlaStream Source Code

public static float|string
(mixed $unitOutput = true)

Calculates the maximum upload file size and returns string with unit or the size in bytes
Parameters
  • bool $unitOutput This parameter determines whether the return value should be a string with a unit
Returns
  • float|string The maximum upload size of files with the appropriate unit or in bytes
Since
  • 3.4
Show source code of this method: fileUploadMaxSize Source Code

private static float
(mixed $size)

Returns the size in bytes without the unit for the comparison
Parameters
  • string $size The size which is received from the PHP settings
Returns
  • float The size in bytes without the unit
Since
  • 3.4
Show source code of this method: parseSize Source Code

private static string
(mixed $maxSize)

Creates the rounded size of the size with the appropriate unit
Parameters
  • float $maxSize The maximum size which is allowed for the uploads
Returns
  • string String with the size and the appropriate unit
Since
  • 3.4
Show source code of this method: parseSizeUnit Source Code

Tags Summary

Since
1.7.0
OSZAR »