ThumbBase::fileExistsAndReadable PHP Method

fileExistsAndReadable() protected method

Checks to see if $this->fileName exists and is readable
protected fileExistsAndReadable ( )
    protected function fileExistsAndReadable()
    {
        if ($this->isDataStream === true) {
            return;
        }
        if (stristr($this->fileName, 'http://') !== false) {
            $this->remoteImage = true;
            return;
        }
        if (!file_exists($this->fileName)) {
            $this->triggerError('Image file not found: ' . $this->fileName);
        } elseif (!is_readable($this->fileName)) {
            $this->triggerError('Image file not readable: ' . $this->fileName);
        }
    }