system/modules/DocumentManagementSystem/dca/tl_dms_documents.php
public function deleteFile(\DataContainer $dc)
  {
    $filePath = TL_ROOT . '/' . $this->getFullFilePath($dc->activeRecord->data_file_name, $dc);
    if (file_exists($filePath))
    {
      unlink($filePath);
    }
  }
public function deleteFile(\DataContainer $dc)
  {
    $filePath = TL_ROOT . '/' . $this->getFullFilePath($dc->activeRecord->data_file_name, $dc);
    if (file_exists($filePath))
    {
      unlink($filePath);
    }
  }
public function deleteFile ( \ DataContainer $ dc ) { $ filePath = TL_ROOT . '/' . $ this -> getFullFilePath ( $ dc -> activeRecord -> data_file_name , $ dc ) ; if ( file_exists ( $ filePath ) ) { unlink ( $ filePath ) ; } }
Delete the file, if the document will be deleted.
@param DataContainer
Delete the file if the document will be deleted .