protected function cleanupName($filename)
    {
        $filename = str_replace(array('/', '\\', ':', ' '), '_', $filename);
        // Remove dot if it starts with one
        $filename = trim($filename, '.');

        return \MUtil_File::cleanupName($filename);
    }
protected function cleanupName($filename)
    {
        $filename = str_replace(array('/', '\\', ':', ' '), '_', $filename);
        // Remove dot if it starts with one
        $filename = trim($filename, '.');

        return \MUtil_File::cleanupName($filename);
    }
protected function cleanupName ( $ filename ) { $ filename = str_replace ( array ( '/' , '\\' , ':' , ' ' ) , '_' , $ filename ) ; // Remove dot if it starts with one $ filename = trim ( $ filename , '.' ) ; return \ MUtil_File :: cleanupName ( $ filename ) ; }
Clean a proposed filename up so it can be used correctly as a filename
@param  string $filename Proposed filename
@return string           filtered filename
Clean a proposed filename up so it can be used correctly as a filename