Minor documentation details
parent
1b19f2701d
commit
754346992b
|
@ -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) {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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', '')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue