Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getPostMaxSize () | |
getUploadMaxSize () | |
getMaxFileSizeInMb ($precision=0, $mode=\PHP_ROUND_HALF_DOWN) | |
getFileSizeInMb ($fileSize, $precision=0, $mode=\PHP_ROUND_HALF_DOWN) | |
getMaxFileSize () | |
convertSizeToInteger ($size) | |
Protected Member Functions | |
_iniGet ($param) | |
Static Protected Attributes | |
static | $_maxFileSize = -1 |
|
protected |
Gets the value of a configuration option
string $param The configuration option name string
Definition at line 124 of file Size.php.
convertSizeToInteger | ( | $size | ) |
Converts a ini setting to a integer value
string | $size |
getFileSizeInMb | ( | $fileSize, | |
$precision = 0 , |
|||
$mode = \PHP_ROUND_HALF_DOWN |
|||
) |
Get file size in megabytes
int | $fileSize | |
int | $precision | |
int | $mode |
Definition at line 73 of file Size.php.
getMaxFileSize | ( | ) |
getMaxFileSizeInMb | ( | $precision = 0 , |
|
$mode = \PHP_ROUND_HALF_DOWN |
|||
) |
Get max file size in megabytes
int | $precision | |
int | $mode |
Definition at line 60 of file Size.php.