- file::_changeBytes()를 FIleHandler::returnBytes()로 대체
This commit is contained in:
bnu 2015-01-30 17:36:14 +09:00
parent ae55711dc4
commit 14ffdbe5f0
6 changed files with 17 additions and 41 deletions

View file

@ -150,25 +150,6 @@ class file extends ModuleObject
function recompileCache()
{
}
/**
* Change value from human readable to byte unit
*
* @param string $size_str Size string
* @return int The byte value for input
*/
function _changeBytes($size_str)
{
$unit = strtoupper(substr($size_str, -1));
$size_str = (int)$size_str;
switch ($unit)
{
case 'G': $size_str *= 1024;
case 'M': $size_str *= 1024;
case 'K': $size_str *= 1024;
}
return $size_str;
}
}
/* End of file file.class.php */
/* Location: ./modules/file/file.class.php */