protected function _deleteFileFromDb(array $oldData)
 {
     parent::_deleteFileFromDb($oldData);
     $dw = $this->_getDataWriter();
     $dw->setExistingData($oldData);
     try {
         $this->assertNoDwErrors($dw, 'delete', $this->getDataType());
     } catch (XenForo_Exception $e) {
         return 0;
     } catch (Exception $e) {
         throw $e;
     }
     $dw->delete();
 }
 protected function _deleteFileFromDb(array $oldData)
 {
     parent::_deleteFileFromDb($oldData);
     $dw = XenForo_DataWriter::create('XenForo_DataWriter_Phrase');
     $dw->setOption(XenForo_DataWriter_Phrase::OPTION_DATA_FROM_FILE, true);
     $dw->setExistingData($oldData['id']);
     try {
         $this->assertNoDwErrors($dw, 'delete', $this->getDataType());
     } catch (XenForo_Exception $e) {
         return 0;
     } catch (Exception $e) {
         throw $e;
     }
     $dw->delete();
 }
 public static function setOriginalFiles($originalFiles)
 {
     self::$_originalFiles = $originalFiles;
 }