emptyMdata.xml and emptyPlaylist.xml added,

used in stored file creation
This commit is contained in:
tomas 2005-02-14 22:39:11 +00:00
parent 91ef563dd6
commit 6ea52e06e6
4 changed files with 23 additions and 12 deletions

View File

@ -23,7 +23,7 @@
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 $
------------------------------------------------------------------------------*/
@ -35,7 +35,7 @@ require_once "BasicStor.php";
* LiveSupport file storage module
*
* @author $Author: tomas $
* @version $Revision: 1.33 $
* @version $Revision: 1.34 $
* @see BasicStor
*/
class GreenBox extends BasicStor{
@ -99,6 +99,7 @@ class GreenBox extends BasicStor{
{
if(($res = $this->_authorize('write', $parid, $sessid)) !== TRUE)
return $res;
if(!file_exists($mdataFileLP)){ $mdataFileLP = '../emptyMdata.xml'; }
$oid = $this->bsPutFile(
$parid, $fileName, '', $mdataFileLP, $gunid, 'webstream'
);

View File

@ -23,7 +23,7 @@
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 $
------------------------------------------------------------------------------*/
@ -527,15 +527,7 @@ class LocStor extends BasicStor{
$oid = $this->addObj($tmpFname , 'File', $parid);
if(PEAR::isError($oid)) return $oid;
$ac =& StoredFile::insert($this, $oid, '', '',
'<?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>',
'string', $playlistId, 'playlist'
'../emptyPlaylist.xml', 'file', $playlistId, 'playlist'
);
if(PEAR::isError($ac)){
$res = $this->removeObj($oid);

View File

@ -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>

View File

@ -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>