示例#1
0
 /**
  * @return Gpf_File_DownloadDriver
  */
 protected function getFileDriver()
 {
     try {
         $this->check();
         $this->file->load();
         return $this->file->createDriver();
     } catch (Gpf_DbEngine_NoRow $e) {
         throw new Exception($this->_("File does not exist"));
     } catch (Exception $e) {
         throw new Exception($e->getMessage());
     }
 }