Method | Description | |
---|---|---|
__construct ( Doctrine\Bundle\DoctrineBundle\Registry $doctrine, Symfony\Component\DependencyInjection\ContainerInterface $container, |
||
format_bytes ( string | integer $number, boolean $base2conversion = true ) : string | Filter for converting bytes to a human-readable format, as Unix command "ls -h" does. | |
getBytesFromHumanReadable ( string $size_str ) : integer | Returns the effective size from a human-readable byte format. | |
getFreeDiskSpace ( ) : float | Returns the available disk space for the configured data_dir. | |
getSystemInformation ( ) : |
Returns a list of system information records. | |
getSystemStatus ( ) | Returns the database schema status. | |
getTotalDiskSpace ( ) | ||
getUsedDiskSpace ( ) : integer | Returns the used disk space occupied by attachments etc. |
Method | Description | |
---|---|---|
getSchemaStatus ( ) : string | Checks if the schema is up-to-date. If yes, it returns "complete", if not, it returns "incomplete". | |
is_valid_value ( $number ) : boolean |
public __construct ( Doctrine\Bundle\DoctrineBundle\Registry $doctrine, Symfony\Component\DependencyInjection\ContainerInterface $container, |
||
$doctrine | Doctrine\Bundle\DoctrineBundle\Registry | |
$container | Symfony\Component\DependencyInjection\ContainerInterface | |
$versionService | ||
$cronLoggerService |
public format_bytes ( string | integer $number, boolean $base2conversion = true ) : string | ||
$number | string | integer | A string or integer number value to format. |
$base2conversion | boolean | Defines if the conversion has to be strictly performed as binary values or by using a decimal conversion such as 1 KByte = 1000 Bytes. |
return | string | The number converted to human readable representation. |
public getBytesFromHumanReadable ( string $size_str ) : integer | ||
$size_str | string | The byte |
return | integer | The bytes |
public getFreeDiskSpace ( ) : float | ||
return | float |
protected getSchemaStatus ( ) : string | ||
return | string | Either "complete" or "incomplete" |
public getSystemInformation ( ) : |
||
return | An array of SystemInformationRecords |
public getSystemStatus ( ) |
public getUsedDiskSpace ( ) : integer | ||
return | integer |
protected is_valid_value ( $number ) : boolean | ||
$number | ||
return | boolean |