public function checkTokensFromStart(\Gems_Tracker_RespondentTrack $respTrack, $userId)
    {
        $token = $respTrack->getFirstToken();
        if ($token instanceof \Gems_Tracker_Token) {
            return $this->checkTokensFrom($respTrack, $respTrack->getFirstToken(), $userId);
        } else {
            return 0;
        }
    }
public function checkTokensFromStart(\Gems_Tracker_RespondentTrack $respTrack, $userId)
    {
        $token = $respTrack->getFirstToken();
        if ($token instanceof \Gems_Tracker_Token) {
            return $this->checkTokensFrom($respTrack, $respTrack->getFirstToken(), $userId);
        } else {
            return 0;
        }
    }
public function checkTokensFromStart ( \ Gems_Tracker_RespondentTrack $ respTrack , $ userId ) { $ token = $ respTrack -> getFirstToken ( ) ; if ( $ token instanceof \ Gems_Tracker_Token ) { return $ this -> checkTokensFrom ( $ respTrack , $ respTrack -> getFirstToken ( ) , $ userId ) ; } else { return 0 ; } }
Check the valid from and until dates in the track

@param \Gems_Tracker_RespondentTrack $respTrack The respondent track to check
@param int $userId Id of the user who takes the action (for logging)
@return int The number of tokens changed by this code
Check the valid from and until dates in the track