AttachmentManager::isTmpFile PHP Метод

isTmpFile() публичный Метод

Check if the given file is a tmp file.
public isTmpFile ( string $file ) : boolean
$file string file name
Результат boolean true if it is a tmp file, false otherwise
    function isTmpFile($file)
    {
        $len = strlen($this->config['tmp_prefix']);
        if (substr($file, 0, $len) == $this->config['tmp_prefix']) {
            return true;
        } else {
            return false;
        }
    }