history records for a show have times validated within show range.
This commit is contained in:
parent
5a8957273f
commit
15e27f8166
6 changed files with 89 additions and 46 deletions
|
@ -1,11 +1,9 @@
|
|||
<?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
|
||||
|
@ -27,4 +25,15 @@ class CcSubjs extends BaseCcSubjs {
|
|||
->filterByDbHost($this->getDbId())
|
||||
->count() > 0;
|
||||
}
|
||||
|
||||
public function isHostOfShowInstance($instanceId)
|
||||
{
|
||||
$showInstance = CcShowInstancesQuery::create()
|
||||
->findPk($instanceId);
|
||||
|
||||
return CcShowHostsQuery::create()
|
||||
->filterByDbShow($showInstance->getDbShowId())
|
||||
->filterByDbHost($this->getDbId())
|
||||
->count() > 0;
|
||||
}
|
||||
} // CcSubjs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue