You are here

public function Progress::getProgressAchievementsData in Opigno Learning path 3.x

Check achievements data.

it can be reused, but leave as it is for backward compatibility.

See also

\Drupal\opigno_learning_path\Progress::getProgressRound

1 call to Progress::getProgressAchievementsData()
Progress::buildSummary in src/Progress.php

File

src/Progress.php, line 84

Class

Progress
Class JoinService.

Namespace

Drupal\opigno_learning_path

Code

public function getProgressAchievementsData($group_id, $account_id) {

  // Firstly check achievements data.
  $query = $this->database
    ->select('opigno_learning_path_achievements', 'a')
    ->fields('a')
    ->condition('a.gid', $group_id)
    ->condition('a.uid', $account_id);
  return $query
    ->execute()
    ->fetchAssoc();
}