Pressbooks\Modules\Export\Prince\Pdf::validate PHP 메소드

validate() 공개 메소드

Check the sanity of $this->outputPath
public validate ( ) : boolean
리턴 boolean
    function validate()
    {
        // Is this a PDF?
        if (!$this->isPdf($this->outputPath)) {
            $this->logError(file_get_contents($this->logfile));
            return false;
        }
        return true;
    }