src/Extensions/PdfExportExtension.php
public function getPdfFilename()
    {
        $baseName = sprintf('%s-%s', $this->owner->URLSegment, $this->owner->ID);

        $folderPath = $this->owner->config()->get('generated_pdf_path');
        if ($folderPath[0] !== '/') {
            $folderPath = File::join_paths(Director::publicFolder(), $folderPath);
        }

        return sprintf('%s/%s.pdf', $folderPath, $baseName);
    }
public function getPdfFilename()
    {
        $baseName = sprintf('%s-%s', $this->owner->URLSegment, $this->owner->ID);

        $folderPath = $this->owner->config()->get('generated_pdf_path');
        if ($folderPath[0] !== '/') {
            $folderPath = File::join_paths(Director::publicFolder(), $folderPath);
        }

        return sprintf('%s/%s.pdf', $folderPath, $baseName);
    }
public function getPdfFilename ( ) { $ baseName = sprintf ( '%s-%s' , $ this -> owner -> URLSegment , $ this -> owner -> ID ) ; $ folderPath = $ this -> owner -> config ( ) -> get ( 'generated_pdf_path' ) ; if ( $ folderPath [ 0 ] !== '/' ) { $ folderPath = File :: join_paths ( Director :: publicFolder ( ) , $ folderPath ) ; } return sprintf ( '%s/%s.pdf' , $ folderPath , $ baseName ) ; }
Return the full filename of the pdf file, including path & extension
Return the full filename of the pdf file including path & extension