protected function getTrackTitle()
    {
        $respondent  = $this->getRespondent();
        $respTrack   = $this->getRespondentTrack();
        if ($respTrack) {
            $trackEngine = $respTrack->getTrackEngine();

            if ($this->currentUser->areAllFieldsMaskedWhole('grs_first_name', 'grs_surname_prefix', 'grs_last_name')) {
                // Set params
                return sprintf(
                        $this->_('%s track for respondent nr %s'),
                        $trackEngine->getTrackName(),
                        $respondent->getPatientNumber()
                        );
            }

            // Set params
            return sprintf(
                    $this->_('%s track for respondent nr %s: %s'),
                    $trackEngine->getTrackName(),
                    $respondent->getPatientNumber(),
                    $respondent->getName()
                    );
        }
    }
protected function getTrackTitle()
    {
        $respondent  = $this->getRespondent();
        $respTrack   = $this->getRespondentTrack();
        if ($respTrack) {
            $trackEngine = $respTrack->getTrackEngine();

            if ($this->currentUser->areAllFieldsMaskedWhole('grs_first_name', 'grs_surname_prefix', 'grs_last_name')) {
                // Set params
                return sprintf(
                        $this->_('%s track for respondent nr %s'),
                        $trackEngine->getTrackName(),
                        $respondent->getPatientNumber()
                        );
            }

            // Set params
            return sprintf(
                    $this->_('%s track for respondent nr %s: %s'),
                    $trackEngine->getTrackName(),
                    $respondent->getPatientNumber(),
                    $respondent->getName()
                    );
        }
    }
protected function getTrackTitle ( ) { $ respondent = $ this -> getRespondent ( ) ; $ respTrack = $ this -> getRespondentTrack ( ) ; if ( $ respTrack ) { $ trackEngine = $ respTrack -> getTrackEngine ( ) ; if ( $ this -> currentUser -> areAllFieldsMaskedWhole ( 'grs_first_name' , 'grs_surname_prefix' , 'grs_last_name' ) ) { // Set params return sprintf ( $ this -> _ ( '%s track for respondent nr %s' ) , $ trackEngine -> getTrackName ( ) , $ respondent -> getPatientNumber ( ) ) ; } // Set params return sprintf ( $ this -> _ ( '%s track for respondent nr %s: %s' ) , $ trackEngine -> getTrackName ( ) , $ respondent -> getPatientNumber ( ) , $ respondent -> getName ( ) ) ; } }
Get the title describing the track

@return string
Get the title describing the track