From 72d89845004dfd3d82e596db69ef396054d0867e Mon Sep 17 00:00:00 2001 From: tomas Date: Sun, 12 Sep 2004 22:21:26 +0000 Subject: [PATCH] Forgotten doxygen comments added. --- .../modules/storageServer/var/LocStor.php | 106 +++++++++++++++--- 1 file changed, 93 insertions(+), 13 deletions(-) diff --git a/livesupport/modules/storageServer/var/LocStor.php b/livesupport/modules/storageServer/var/LocStor.php index 4c7301917..41415ee04 100644 --- a/livesupport/modules/storageServer/var/LocStor.php +++ b/livesupport/modules/storageServer/var/LocStor.php @@ -1,19 +1,49 @@ exists(); } + /* + * Store or replace existing audio clip + * + * @param sessid string + * @param gunid string + * @param mediaFileLP string, local path to media file + * @param mdataFileLP string, local path to metadata XML file + * @return string gunid or PEAR::error + */ function storeAudioClip($sessid, $gunid, $mediaFileLP, $mdataFileLP) { // test if specified gunid exists: @@ -64,13 +103,18 @@ class LocStor extends GreenBox{ &$this, $oid, '', $mediaFileLP, $mdataFileLP ); if(PEAR::isError($ac)) return $ac; -// $this->debugLog("parid=$parid, gunid={$ac->gunid}, -// mediaFileLP=$mediaFileLP"); $res = $this->renameFile($oid, $ac->gunid, $sessid); if(PEAR::isError($res)) return $res; } return $ac->gunid; } + /* + * Delete existing audio clip + * + * @param sessid string + * @param gunid string + * @return boolean or PEAR::error + */ function deleteAudioClip($sessid, $gunid) { $ac =& StoredFile::recall(&$this, '', $gunid); @@ -81,6 +125,14 @@ class LocStor extends GreenBox{ if(PEAR::isError($res)) return $res; return TRUE; } + /* + * Update existing audio clip metadata + * + * @param sessid string + * @param gunid string + * @param mdataFileLP string, local path to metadata XML file + * @return boolean or PEAR::error + */ function updateAudioClipMetadata($sessid, $gunid, $mdataFileLP) { $ac =& StoredFile::recall(&$this, '', $gunid); @@ -89,6 +141,13 @@ class LocStor extends GreenBox{ return $res; return $ac->replaceMetaData($mdataFileLP); } + /* + * Make access to audio clip + * + * @param sessid string + * @param gunid string + * @return string - access symlink path or PEAR::error + */ function accessRawAudioData($sessid, $gunid) { $ac =& StoredFile::recall(&$this, '', $gunid); @@ -97,6 +156,13 @@ class LocStor extends GreenBox{ return $res; return $ac->accessRawMediaData($sessid); } + /* + * Release access to audio clip + * + * @param sessid string + * @param tmpLink string + * @return boolean or PEAR::error + */ function releaseRawAudioData($sessid, $tmpLink) { $ac =& StoredFile::recallFromLink(&$this, $tmpLink, $sessid); @@ -105,11 +171,25 @@ class LocStor extends GreenBox{ return $res; return $ac->releaseRawMediaData($sessid); } + /* + * Search in metadata database + * + * @param sessid string + * @param criteria string + * @return array or PEAR::error + */ function searchMetadata($sessid, $criteria) { $res = $this->localSearch($criteria, $sessid); return $res; } + /* + * Return metadata as XML + * + * @param sessid string + * @param gunid string + * @return string or PEAR::error + */ function getAudioClip($sessid, $gunid) { $ac =& StoredFile::recall(&$this, '', $gunid);