Minor documentation details

pull/38/head
thomasmars 2017-03-14 14:21:36 +01:00
parent 1b19f2701d
commit 754346992b
3 changed files with 18 additions and 4 deletions

View File

@ -364,6 +364,8 @@ class H5PDefaultStorage implements \H5PFileStorage {
* *
* @param string $source path to source directory * @param string $source path to source directory
* @param string $target path of target directory. Defaults to editor path * @param string $target path of target directory. Defaults to editor path
*
* @return object Object containing h5p json and content json data
*/ */
public function moveContentDirectory($source, $target = NULL) { public function moveContentDirectory($source, $target = NULL) {
if ($source === NULL) { if ($source === NULL) {

View File

@ -139,7 +139,7 @@ interface H5PFileStorage {
* The files must be marked as temporary until the content form is saved. * The files must be marked as temporary until the content form is saved.
* *
* @param \H5peditorFile $file * @param \H5peditorFile $file
* @param int $contentid * @param int $contentId
*/ */
public function saveFile($file, $contentId); public function saveFile($file, $contentId);
@ -148,11 +148,22 @@ interface H5PFileStorage {
* Used when copy pasting content in H5P. * Used when copy pasting content in H5P.
* *
* @param string $file path + name * @param string $file path + name
* @param string|int $fromid Content ID or 'editor' string * @param string|int $fromId Content ID or 'editor' string
* @param int $toid Target Content ID * @param int $toId Target Content ID
*/ */
public function cloneContentFile($file, $fromId, $toId); public function cloneContentFile($file, $fromId, $toId);
/**
* Copy a content from one directory to another. Defaults to cloning
* content from the current temporary upload folder to the editor path.
*
* @param string $source path to source directory
* @param string $target path of target directory. Defaults to editor path
*
* @return object Object containing h5p json and content json data
*/
public function moveContentDirectory($source, $target = NULL);
/** /**
* Checks to see if content has the given file. * Checks to see if content has the given file.
* Used when saving content. * Used when saving content.

View File

@ -2795,8 +2795,9 @@ class H5PCore {
// Set uuid // Set uuid
if (!$postData) { if (!$postData) {
$siteKey = $this->h5pF->getOption('site_key', '');
$postData = array( $postData = array(
'uuid' => $this->h5pF->getOption('site_uuid', '') 'uuid' => $siteKey ? $siteKey : $this->h5pF->getOption('site_uuid', '')
); );
} }