Rename store -> save

namespaces
Svein-Tore Griff With 2013-02-17 14:05:02 +01:00
parent 1d24e3bcf1
commit a2f1798173
1 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ interface h5pFramework { // TODO: I suspect this is a "skeleton" or more commonl
* @param object $libraryData * @param object $libraryData
* Object holding the information that is to be stored * Object holding the information that is to be stored
*/ */
public function storeLibraryData(&$libraryData); public function saveLibraryData(&$libraryData);
/** /**
* Stores contentData * Stores contentData
@ -102,7 +102,7 @@ interface h5pFramework { // TODO: I suspect this is a "skeleton" or more commonl
* @param int $contentMainId * @param int $contentMainId
* Any contentMainId defined by the framework, for instance to support revisioning * Any contentMainId defined by the framework, for instance to support revisioning
*/ */
public function storeContentData($contentId, $contentJson, $mainJsonData, $contentMainId = NULL); public function saveContentData($contentId, $contentJson, $mainJsonData, $contentMainId = NULL);
/** /**
* Copies content data * Copies content data
@ -669,7 +669,7 @@ class h5pSaver {
// We already have the same or a newer version of this library // We already have the same or a newer version of this library
continue; continue;
} }
$this->h5pF->storeLibraryData($library, $new); $this->h5pF->saveLibraryData($library, $new);
$current_path = $this->h5pF->getUploadedH5pFolderPath() . DIRECTORY_SEPARATOR . $key; $current_path = $this->h5pF->getUploadedH5pFolderPath() . DIRECTORY_SEPARATOR . $key;
$destination_path = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . $library['libraryId']; $destination_path = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . $library['libraryId'];
@ -681,7 +681,7 @@ class h5pSaver {
rename($current_path, $destination_path); rename($current_path, $destination_path);
$contentJson = file_get_contents($destination_path . DIRECTORY_SEPARATOR . 'content.json'); $contentJson = file_get_contents($destination_path . DIRECTORY_SEPARATOR . 'content.json');
$this->h5pF->storeContentData($contentId, $contentJson, $this->h5pC->mainJsonData, $contentMainId); $this->h5pF->saveContentData($contentId, $contentJson, $this->h5pC->mainJsonData, $contentMainId);
$librariesInUse = array(); $librariesInUse = array();
$this->getLibraryUsage($librariesInUse, $this->h5pC->mainJsonData); $this->getLibraryUsage($librariesInUse, $this->h5pC->mainJsonData);