protected function OpignoTincanLiveMeeting::saveSendingStatement in Opigno TinCan API 3.x
Same name and namespace in other branches
- 8 modules/opigno_tincan_live_meeting/src/EventSubscriber/OpignoTincanLiveMeeting.php \Drupal\opigno_tincan_live_meeting\EventSubscriber\OpignoTincanLiveMeeting::saveSendingStatement()
Saves statement.
Parameters
\Drupal\opigno_moxtra\Entity\Meeting $meeting: Meeting.
Throws
\Exception
1 call to OpignoTincanLiveMeeting::saveSendingStatement()
- OpignoTincanLiveMeeting::createAndSendTincanStatementsForMeeting in modules/
opigno_tincan_live_meeting/ src/ EventSubscriber/ OpignoTincanLiveMeeting.php - Sends tincan statements for Live meeting.
File
- modules/
opigno_tincan_live_meeting/ src/ EventSubscriber/ OpignoTincanLiveMeeting.php, line 235
Class
- OpignoTincanLiveMeeting
- Class OpignoTincanLiveMeeting.
Namespace
Drupal\opigno_tincan_live_meeting\EventSubscriberCode
protected function saveSendingStatement(Meeting $meeting) {
/* @var $db_connection \Drupal\Core\Database\Connection */
$db_connection = \Drupal::service('database');
$user = $this->user;
$query = $db_connection
->insert('opigno_tincan_live_meeting')
->fields([
'uid' => $user
->id(),
'meeting_id' => $meeting
->id(),
]);
$query
->execute();
}