public function handleTrackCompletion(&$values, $userId)
    {
        // Process any events
        $trackEngine = $this->getTrackEngine();

        if ($event = $trackEngine->getTrackCompletionEvent()) {
            $event->processTrackCompletion($this, $values, $userId);
        }
    }
public function handleTrackCompletion(&$values, $userId)
    {
        // Process any events
        $trackEngine = $this->getTrackEngine();

        if ($event = $trackEngine->getTrackCompletionEvent()) {
            $event->processTrackCompletion($this, $values, $userId);
        }
    }
public function handleTrackCompletion ( & $ values , $ userId ) { // Process any events $ trackEngine = $ this -> getTrackEngine ( ) ; if ( $ event = $ trackEngine -> getTrackCompletionEvent ( ) ) { $ event -> processTrackCompletion ( $ this , $ values , $ userId ) ; } }
Find out if there are track completion events and delegate to the event if needed

@param array $values The values changed before entering this event
@param int $userId
Find out if there are track completion events and delegate to the event if needed