CC-1799 Put Airtime Storage into a Human Readable File Naming Convention

searching database by filename to retrieve file.
Checking if is supported audio file/temp audio file.
This commit is contained in:
Naomi 2011-05-13 18:03:34 -04:00 committed by Naomi Aro
parent 377f77dff4
commit c30eeaf5bd
3 changed files with 37 additions and 25 deletions

View file

@ -703,7 +703,7 @@ class StoredFile {
* @return StoredFile|Playlist|NULL
* Return NULL if the object doesnt exist in the DB.
*/
public static function Recall($p_id=null, $p_gunid=null, $p_md5sum=null)
public static function Recall($p_id=null, $p_gunid=null, $p_md5sum=null, $p_filepath=null)
{
global $CC_DBC;
global $CC_CONFIG;
@ -713,6 +713,8 @@ class StoredFile {
$cond = "gunid='$p_gunid'";
} elseif (!is_null($p_md5sum)) {
$cond = "md5='$p_md5sum'";
} elseif (!is_null($p_filepath)) {
$cond = "filepath='$p_filepath'";
} else {
return null;
}