コード例 #1
0
ファイル: Sejda.php プロジェクト: m1r1k/php-sejda-console
 /**
  * @return string
  *   The filename of the temporary PDF file.
  */
 public function getPdfFilename()
 {
     if ($this->_tmpPdfFile === NULL) {
         $this->_tmpPdfFile = new File('', '.pdf', self::TMP_PREFIX, $this->tmpDir);
     }
     return $this->_tmpPdfFile->getFileName();
 }
コード例 #2
0
ファイル: FileTest.php プロジェクト: mikehaertl/php-tmpfile
 public function testCanCastToFileName()
 {
     $content = 'test content';
     $tmp = new File($content);
     $fileName = $tmp->getFileName();
     $this->assertEquals($fileName, (string) $tmp);
 }