sintonia/airtime_mvc/application/models/airtime/CcSubjs.php
Naomi Aro c8b73850b9 Revert "Merge branch 'ryerson-history'"
This reverts commit a554c6f72c, reversing
changes made to 2a0c9769aa.
2013-09-23 11:00:43 +02:00

30 lines
723 B
PHP

<?php
/**
* Skeleton subclass for representing a row from the 'cc_subjs' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcSubjs extends BaseCcSubjs {
public function isAdminOrPM()
{
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