src/Repository.php
public function readScormScoesTrack($userid, $scormid, $scoid, $attempt) {
        $trackingValues = [];
        $scormTracking = $this->readStoreRecords('scorm_scoes_track', [
            'userid' => $userid,
            'scormid'=> $scormid,
            'scoid' => $scoid,
            'attempt' => $attempt
        ]);

        foreach ($scormTracking as $st) {
            if ($st->element == 'cmi.core.score.min') {
                $trackingValues['scoremin'] = $st->value;
            } else if ($st->element == 'cmi.core.score.max') {
                $trackingValues['scoremax'] = $st->value;
            } else if ($st->element == 'cmi.core.lesson_status') {
                $trackingValues['status'] = $st->value;
            }
        }

        return $trackingValues;
    }
public function readScormScoesTrack($userid, $scormid, $scoid, $attempt) {
        $trackingValues = [];
        $scormTracking = $this->readStoreRecords('scorm_scoes_track', [
            'userid' => $userid,
            'scormid'=> $scormid,
            'scoid' => $scoid,
            'attempt' => $attempt
        ]);

        foreach ($scormTracking as $st) {
            if ($st->element == 'cmi.core.score.min') {
                $trackingValues['scoremin'] = $st->value;
            } else if ($st->element == 'cmi.core.score.max') {
                $trackingValues['scoremax'] = $st->value;
            } else if ($st->element == 'cmi.core.lesson_status') {
                $trackingValues['status'] = $st->value;
            }
        }

        return $trackingValues;
    }
public function readScormScoesTrack ( $ userid , $ scormid , $ scoid , $ attempt ) { $ trackingValues = [ ] ; $ scormTracking = $ this -> readStoreRecords ( 'scorm_scoes_track' , [ 'userid' => $ userid , 'scormid' => $ scormid , 'scoid' => $ scoid , 'attempt' => $ attempt ] ) ; foreach ( $ scormTracking as $ st ) { if ( $ st -> element == 'cmi.core.score.min' ) { $ trackingValues [ 'scoremin' ] = $ st -> value ; } else if ( $ st -> element == 'cmi.core.score.max' ) { $ trackingValues [ 'scoremax' ] = $ st -> value ; } else if ( $ st -> element == 'cmi.core.lesson_status' ) { $ trackingValues [ 'status' ] = $ st -> value ; } } return $ trackingValues ; }
Reads Scorm tracking data
@return PhpObj
Reads Scorm tracking data