Thumb::isThere PHP Метод

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

Checks if the thumbnail already exists and is newer than the original file
public isThere ( ) : boolean
Результат boolean
    public function isThere()
    {
        if ($this->options['overwrite'] === true) {
            return false;
        }
        // if the thumb already exists and the source hasn't been updated
        // we don't need to generate a new thumbnail
        if (file_exists($this->destination->root) && f::modified($this->destination->root) >= $this->source->modified()) {
            return true;
        }
        return false;
    }