CC-4961: Show linking

Refactored services
Removed ShowDaysService and ShowInstanceService
Combined all show actions into one ShowService
This commit is contained in:
denise 2013-03-21 10:05:11 -04:00
parent bae9f1202a
commit a7601d290f
10 changed files with 1308 additions and 1206 deletions

View file

@ -19,4 +19,12 @@ class CcSubjs extends BaseCcSubjs {
{
return $this->type === UTYPE_ADMIN || $this->type === UTYPE_PROGRAM_MANAGER;
}
public function isHostOfShow($showId)
{
return CcShowHostsQuery::create()
->filterByDbShow($showId)
->filterByDbHost($this->getDbId())
->count() > 0;
}
} // CcSubjs