<?PHP
class BSGetDirFileSize
{
function BSGetDirFileSize()
{
}
function getSize($_fileid, $_type)
{
if ($_type==SFILE)
return getFileSize($_fileid);
}
function getFileSize($_fileid)
{
$daogf = new DAOGetFileDirAttr();
$filedir = $daogf->getFileById($_fileid);
if ($filedir != null)
{
$tobj = $filedir->getobj();
return round($tobj->getfilesize()/1000/1000, 2);
}
else
return -1;
}
function getDirSize($_request, $_response)
{
return $_response;
}
}
?>