emptyMdata.xml and emptyPlaylist.xml added,
used in stored file creation
This commit is contained in:
parent
91ef563dd6
commit
6ea52e06e6
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.33 $
|
Version : $Revision: 1.34 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -35,7 +35,7 @@ require_once "BasicStor.php";
|
||||||
* LiveSupport file storage module
|
* LiveSupport file storage module
|
||||||
*
|
*
|
||||||
* @author $Author: tomas $
|
* @author $Author: tomas $
|
||||||
* @version $Revision: 1.33 $
|
* @version $Revision: 1.34 $
|
||||||
* @see BasicStor
|
* @see BasicStor
|
||||||
*/
|
*/
|
||||||
class GreenBox extends BasicStor{
|
class GreenBox extends BasicStor{
|
||||||
|
@ -99,6 +99,7 @@ class GreenBox extends BasicStor{
|
||||||
{
|
{
|
||||||
if(($res = $this->_authorize('write', $parid, $sessid)) !== TRUE)
|
if(($res = $this->_authorize('write', $parid, $sessid)) !== TRUE)
|
||||||
return $res;
|
return $res;
|
||||||
|
if(!file_exists($mdataFileLP)){ $mdataFileLP = '../emptyMdata.xml'; }
|
||||||
$oid = $this->bsPutFile(
|
$oid = $this->bsPutFile(
|
||||||
$parid, $fileName, '', $mdataFileLP, $gunid, 'webstream'
|
$parid, $fileName, '', $mdataFileLP, $gunid, 'webstream'
|
||||||
);
|
);
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.30 $
|
Version : $Revision: 1.31 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/LocStor.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/LocStor.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -527,15 +527,7 @@ class LocStor extends BasicStor{
|
||||||
$oid = $this->addObj($tmpFname , 'File', $parid);
|
$oid = $this->addObj($tmpFname , 'File', $parid);
|
||||||
if(PEAR::isError($oid)) return $oid;
|
if(PEAR::isError($oid)) return $oid;
|
||||||
$ac =& StoredFile::insert($this, $oid, '', '',
|
$ac =& StoredFile::insert($this, $oid, '', '',
|
||||||
'<?xml version="1.0" encoding="UTF-8"?>'.
|
'../emptyPlaylist.xml', 'file', $playlistId, 'playlist'
|
||||||
'<playlist>'.
|
|
||||||
' <metadata'.
|
|
||||||
' xmlns:dc="http://purl.org/dc/elements/1.1/"'.
|
|
||||||
' xmlns:dcterms="http://purl.org/dc/terms/"'.
|
|
||||||
' xmlns:ls="http://mdlf.org/livesupport/elements/1.0/"'.
|
|
||||||
'/>'.
|
|
||||||
'</playlist>',
|
|
||||||
'string', $playlistId, 'playlist'
|
|
||||||
);
|
);
|
||||||
if(PEAR::isError($ac)){
|
if(PEAR::isError($ac)){
|
||||||
$res = $this->removeObj($oid);
|
$res = $this->removeObj($oid);
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<audioClip>
|
||||||
|
<metadata
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||||
|
xmlns:xml="http://www.w3.org/XML/1998/namespace"
|
||||||
|
xmlns:ls="http://mdlf.org/livesupport/elements/1.0/"
|
||||||
|
>
|
||||||
|
</metadata>
|
||||||
|
</audioClip>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<playlist>
|
||||||
|
<metadata
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||||
|
xmlns:ls="http://mdlf.org/livesupport/elements/1.0/"
|
||||||
|
/>
|
||||||
|
</playlist>
|
Loading…
Reference in New Issue