CC-2110 : Soundcloud file metadata

added show genre column, this is used instead of soundcloud default genre if set.
This commit is contained in:
naomiaro 2011-04-02 17:09:37 -04:00
parent 7be60fbf84
commit b97e79773b
12 changed files with 174 additions and 38 deletions

View file

@ -155,6 +155,7 @@ class Show {
$show->setDbName($data['add_show_name']);
$show->setDbDescription($data['add_show_description']);
$show->setDbUrl($data['add_show_url']);
$show->setDbGenre($data['add_show_genre']);
$show->setDbColor($data['add_show_color']);
$show->setDbBackgroundColor($data['add_show_background_color']);
$show->save();
@ -616,6 +617,12 @@ class ShowInstance {
return $show->getDbName();
}
public function getGenre()
{
$show = CcShowQuery::create()->findPK($this->getShowId());
return $show->getDbGenre();
}
public function getShowStart()
{
$showInstance = CcShowInstancesQuery::create()->findPK($this->_instanceId);