Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 12 |
| MeetingQuery | |
0.00% |
0 / 1 |
|
0.00% |
0 / 4 |
20.00 | |
0.00% |
0 / 12 |
| isHost | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 3 |
|||
| isGuest | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 3 |
|||
| isHostOrGuest | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 3 |
|||
| isHostOrGuestFilter | |
0.00% |
0 / 1 |
2.00 | |
0.00% |
0 / 3 |
|||
| <?php | |
| namespace common\models; | |
| /** | |
| * This is the query model class for table "{{%meeting}}". | |
| */ | |
| class MeetingQuery extends \yii\db\ActiveQuery | |
| { | |
| public function isHost($participant_id) | |
| { | |
| return $this->andWhere(['host_participant_id' => $participant_id]); | |
| } | |
| public function isGuest($participant_id) | |
| { | |
| return $this->andWhere(['guest_participant_id' => $participant_id]); | |
| } | |
| public function isHostOrGuest($participant_id) | |
| { | |
| return $this->andWhere(['or', ['host_participant_id' => $participant_id], ['guest_participant_id' => $participant_id]]); | |
| } | |
| public function isHostOrGuestFilter($participant_id) | |
| { | |
| return $this->andWhere(['or', ['host_participant_id' => $participant_id], ['and', ['guest_participant_id' => $participant_id], ['is_confirmed_host' => 1]]]); | |
| } | |
| } |