/**
  * Delete from DB and from the disk
  *
  * @param void
  * @return boolean
  */
 function delete()
 {
     if ($this->getTypeString() == 'sprd') {
         try {
             $bookId = $this->getFileContent();
             ob_start();
             include_once ROOT . "/" . PUBLIC_FOLDER . "/assets/javascript/gelSheet/php/config/settings.php";
             include_once ROOT . "/" . PUBLIC_FOLDER . "/assets/javascript/gelSheet/php/util/db_functions.php";
             //include_once ROOT . "/" . PUBLIC_FOLDER . "/assets/javascript/gelSheet/php/util/lang/languages.php";
             include_once ROOT . "/" . PUBLIC_FOLDER . "/assets/javascript/gelSheet/php/controller/BookController.class.php";
             $bc = new BookController();
             $bc->deleteBook($bookId);
             ob_end_clean();
         } catch (Error $e) {
         }
     }
     try {
         FileRepository::deleteFile($this->getRepositoryId());
     } catch (Exception $ex) {
         Logger::log($ex->getMessage());
     }
     $this->deleteThumb(false);
     return parent::delete();
 }
 /**
  * Delete from DB and from the disk
  *
  * @param void
  * @return boolean
  */
 function delete()
 {
     FileRepository::deleteFile($this->getRepositoryId());
     $this->deleteThumb(false);
     return parent::delete();
 }