public function OpignoScorm::scormLoadById in Opigno SCORM 8
Same name and namespace in other branches
- 3.x src/OpignoScorm.php \Drupal\opigno_scorm\OpignoScorm::scormLoadById()
Load a SCORM package information.
Parameters
int $scorm_id: Scorm ID.
Return value
object|false SCORM package information.
File
- src/
OpignoScorm.php, line 269
Class
- OpignoScorm
- Class OpignoScorm.
Namespace
Drupal\opigno_scormCode
public function scormLoadById($scorm_id) {
$connection = $this->database;
return $connection
->select('opigno_scorm_packages', 'o')
->fields('o', [])
->condition('id', $scorm_id)
->execute()
->fetchObject();
}