Refactor for consistency

pull/17/head
Frode Petterson 2016-01-12 10:31:36 +01:00
parent 2bd972168e
commit 0125afb440
3 changed files with 5 additions and 5 deletions

View File

@ -124,7 +124,7 @@ class DefaultStorage implements \H5P\FileStorage {
* *
* @param string $filename * @param string $filename
*/ */
public function removeExport($filename) { public function deleteExport($filename) {
// TODO // TODO
} }

View File

@ -90,5 +90,5 @@ interface FileStorage {
* *
* @param string $filename * @param string $filename
*/ */
public function removeExport($filename); public function deleteExport($filename);
} }

View File

@ -1406,7 +1406,7 @@ class H5PStorage {
*/ */
public function deletePackage($content) { public function deletePackage($content) {
$this->h5pC->fs->deleteContent($content['id']); $this->h5pC->fs->deleteContent($content['id']);
$this->h5pC->fs->removeExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p'); $this->h5pC->fs->deleteExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p');
$this->h5pF->deleteContentData($content['id']); $this->h5pF->deleteContentData($content['id']);
} }
@ -1588,7 +1588,7 @@ Class H5PExport {
* @param array $content object * @param array $content object
*/ */
public function deleteExport($content) { public function deleteExport($content) {
$this->h5pC->fs->removeExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p'); $this->h5pC->fs->deleteExport(($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p');
} }
/** /**
@ -1778,7 +1778,7 @@ class H5PCore {
$content['slug'] = $this->generateContentSlug($content); $content['slug'] = $this->generateContentSlug($content);
// Remove old export file // Remove old export file
$this->fs->removeExport($content['id'] . '.h5p'); $this->fs->deleteExport($content['id'] . '.h5p');
} }
if ($this->exportEnabled) { if ($this->exportEnabled) {