Joomla CMS  3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
Référence de la classe FilesystemHelper

Fonctions membres publiques statiques

static remotefsize ($url)
 
static ftpChmod ($url, $mode)
 
static getWriteModes ()
 
static getSupported ()
 
static getTransports ()
 
static getFilters ()
 
static getJStreams ()
 
static isJoomlaStream ($streamname)
 
static fileUploadMaxSize ($unitOutput=true)
 

Fonctions membres privées statiques

static parseSize ($size)
 
static parseSizeUnit ($maxSize)
 

Description détaillée

File system helper

Holds support functions for the filesystem, particularly the stream

Depuis
1.7.0

Documentation des fonctions membres

◆ fileUploadMaxSize()

static fileUploadMaxSize (   $unitOutput = true)
static

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

Call it with JFilesystemHelper::fileUploadMaxSize();

Paramètres
bool$unitOutputThis parameter determines whether the return value should be a string with a unit
Renvoie
float|string The maximum upload size of files with the appropriate unit or in bytes
Depuis
3.4

◆ ftpChmod()

static ftpChmod (   $url,
  $mode 
)
static

Quick FTP chmod

Paramètres
string$urlLink identifier
integer$modeThe new permissions, given as an octal value.
Renvoie
mixed

1.7.0

Références $mode, $path, $url, et $user.

Référencé par Stream\chmod().

◆ getFilters()

static getFilters ( )
static

Returns a list of filters

Renvoie
array
Depuis
1.7.0

◆ getJStreams()

static getJStreams ( )
static

Returns a list of J! streams

Renvoie
array
Depuis
1.7.0

Références $file, et $files.

◆ getSupported()

static getSupported ( )
static

Stream and Filter Support Operations

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

Renvoie
array Streams
Depuis
1.7.0

◆ getTransports()

static getTransports ( )
static

Returns a list of transports

Renvoie
array
Depuis
1.7.0

◆ getWriteModes()

static getWriteModes ( )
static

Modes that require a write operation

Renvoie
array
Depuis
1.7.0

Référencé par Stream\_getFilename().

◆ isJoomlaStream()

static isJoomlaStream (   $streamname)
static

Determine if a stream is a Joomla stream.

Paramètres
string$streamnameThe name of a stream
Renvoie
boolean True for a Joomla Stream
Depuis
1.7.0

Référencé par Stream\open().

◆ parseSize()

static parseSize (   $size)
staticprivate

Returns the size in bytes without the unit for the comparison

Paramètres
string$sizeThe size which is received from the PHP settings
Renvoie
float The size in bytes without the unit
Depuis
3.4

Références $return.

◆ parseSizeUnit()

static parseSizeUnit (   $maxSize)
staticprivate

Creates the rounded size of the size with the appropriate unit

Paramètres
float$maxSizeThe maximum size which is allowed for the uploads
Renvoie
string String with the size and the appropriate unit
Depuis
3.4

Références $base, et $maxSize.

◆ remotefsize()

static remotefsize (   $url)
static

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

Paramètres
string$urlTODO Add text
Renvoie
mixed

1.7.0

Références $path, $url, et $user.

Référencé par Stream\filesize().


La documentation de cette classe a été générée à partir du fichier suivant :