You are here

public function PHPExcel_Writer_PDF_Core::setTempDir in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF/Core.php \PHPExcel_Writer_PDF_Core::setTempDir()

Set temporary storage directory

Parameters

string $pValue Temporary storage directory: @throws PHPExcel_Writer_Exception when directory does not exist @return PHPExcel_Writer_PDF

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF/Core.php, line 312

Class

PHPExcel_Writer_PDF_Core
PHPExcel_Writer_PDF_Core

Code

public function setTempDir($pValue = '') {
  if (is_dir($pValue)) {
    $this->_tempDir = $pValue;
  }
  else {
    throw new PHPExcel_Writer_Exception("Directory does not exist: {$pValue}");
  }
  return $this;
}