48 if ( !empty( $sOutputKey ) ) {
49 $this->_sOutputKey = $sOutputKey;
70 if ( !empty( $sOutputFileName ) ) {
71 $this->_sOutputFileName = $sOutputFileName;
92 $this->_oUtils->toFileCache( $this->_sOutputKey, $sBody . $sResult );
102 $sCurrentKey = ( empty($sOutputKey) ) ? $this->_sOutputKey : $sOutputKey;
104 return $this->_oUtils->fromFileCache( $sCurrentKey );
114 $sCurrentKey = ( empty($sOutputKey) ) ? $this->_sOutputKey : $sOutputKey;
117 $iFileSize = filesize( $this->_oUtils->getCacheFilePath( $sCurrentKey ) );
119 $this->_oUtils->setHeader(
"Pragma: public" );
120 $this->_oUtils->setHeader(
"Expires: 0" );
121 $this->_oUtils->setHeader(
"Cache-Control: must-revalidate, post-check=0, pre-check=0, private" );
122 $this->_oUtils->setHeader(
'Content-Disposition: attachment;filename=' . $this->_sOutputFileName );
123 $this->_oUtils->setHeader(
"Content-Type: application/octet-stream" );
125 $this->_oUtils->setHeader(
"Content-Length: " . $iFileSize );
127 echo $this->_oUtils->fromFileCache( $sCurrentKey );