system/modules/DocumentManagementSystem/classes/pojos/Document.php
public function getFileSize($strUnit, $blnFormatted = false)
	{
		$doubleFileSize = \Document::convertFileSize($this->intFileSize, self::FILE_SIZE_UNIT_BYTE, $strUnit);
		if ($doubleFileSize < 0)
		{
			throw new \Exception(sprintf('Invalid file size [%s] or unit [%s] for document.', $this->intFileSize, $strKey));
		}
		
		if ($blnFormatted)
		{
			return \Document::formatFileSize($doubleFileSize, $strUnit);
		}
		
		return $doubleFileSize;
	}
public function getFileSize($strUnit, $blnFormatted = false)
	{
		$doubleFileSize = \Document::convertFileSize($this->intFileSize, self::FILE_SIZE_UNIT_BYTE, $strUnit);
		if ($doubleFileSize < 0)
		{
			throw new \Exception(sprintf('Invalid file size [%s] or unit [%s] for document.', $this->intFileSize, $strKey));
		}
		
		if ($blnFormatted)
		{
			return \Document::formatFileSize($doubleFileSize, $strUnit);
		}
		
		return $doubleFileSize;
	}
public function getFileSize ( $ strUnit , $ blnFormatted = false ) { $ doubleFileSize = \ Document :: convertFileSize ( $ this -> intFileSize , self :: FILE_SIZE_UNIT_BYTE , $ strUnit ) ; if ( $ doubleFileSize < 0 ) { throw new \ Exception ( sprintf ( 'Invalid file size [%s] or unit [%s] for document.' , $ this -> intFileSize , $ strKey ) ) ; } if ( $ blnFormatted ) { return \ Document :: formatFileSize ( $ doubleFileSize , $ strUnit ) ; } return $ doubleFileSize ; }
Return the file size for the given unit.

@param	string	$strUnit	The file size unit.
@param	bool	$blnFormatted	True if the file size should be returned as formatted string (with unit).
@return	mixed	The file size for the given unit (as int or formatted as string).
Return the file size for the given unit .