You are here

protected function OpignoTincanLiveMeeting::saveSendingStatement in Opigno TinCan API 8

Same name and namespace in other branches
  1. 3.x 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\EventSubscriber

Code

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();
}