Another question for everybody who knows.. Is there an inside function to convert a integer of byte to MB / GB / TB before display it ?
We have see :
public function convertSize($value)
$unit = array('Bytes', 'KB', 'MB', 'GB', 'TB');
return @round($value/pow(1024, ($i = floor(log($value, 1024)))), 2).' '.$unit[$i];
under ApsBase, but nothing that could help us.
We would like to use it for display the value, not set it (in the DB we prefer have the byte value..)
Maybe with a filter in the tform ?
If someone have an idea..
Thanks for your precious help.