protected function OpignoTincanLiveMeeting::wasStatementSend in Opigno TinCan API 8
Same name and namespace in other branches
- 3.x modules/opigno_tincan_live_meeting/src/EventSubscriber/OpignoTincanLiveMeeting.php \Drupal\opigno_tincan_live_meeting\EventSubscriber\OpignoTincanLiveMeeting::wasStatementSend()
Returns sent statement flag.
Parameters
\Drupal\opigno_moxtra\Entity\Meeting $meeting: Meeting.
Return value
bool sent statement flag.
1 call to OpignoTincanLiveMeeting::wasStatementSend()
- OpignoTincanLiveMeeting::tincanLiveMeeting in modules/
opigno_tincan_live_meeting/ src/ EventSubscriber/ OpignoTincanLiveMeeting.php - Called whenever the tincanLiveMeeting event is dispatched.
File
- modules/
opigno_tincan_live_meeting/ src/ EventSubscriber/ OpignoTincanLiveMeeting.php, line 210
Class
- OpignoTincanLiveMeeting
- Class OpignoTincanLiveMeeting.
Namespace
Drupal\opigno_tincan_live_meeting\EventSubscriberCode
protected function wasStatementSend(Meeting $meeting) {
/* @var $db_connection \Drupal\Core\Database\Connection */
$db_connection = \Drupal::service('database');
$user = $this->user;
$query = $db_connection
->select('opigno_tincan_live_meeting', 'otl')
->fields('otl')
->condition('otl.uid', $user
->id())
->condition('otl.meeting_id', $meeting
->id());
$result = $query
->execute()
->fetchObject();
if ($result) {
return TRUE;
}
else {
return FALSE;
}
}