CC-2110 : Soundcloud file metadata

adding a users function which will prob be used for metadata... when I see what's needed.
This commit is contained in:
Naomi 2011-03-29 12:47:34 -04:00
parent 37a4d7bce4
commit 8c522352d7
1 changed files with 18 additions and 0 deletions

View File

@ -58,6 +58,24 @@ class Show {
$show->setDbBackgroundColor($backgroundColor);
}
public function getHosts()
{
global $CC_DBC;
$sql = "SELECT first_name, last_name
FROM cc_show_hosts LEFT JOIN cc_subjs ON cc_show_hosts.subjs_id = cc_subjs.id
WHERE show_id = {$this->_showId}";
$hosts = $CC_DBC->GetAll($sql);
$res = array();
foreach($hosts as $host) {
$res[] = $host['first_name']." ".$host['last_name'];
}
return $res;
}
public function cancelShow($day_timestamp)
{
global $CC_DBC;