protected function _isTrackInFilter(\Gems_Tracker_RespondentTrack $track)
    {
        $result    = false;
        $trackInfo = array(
            'code'        => $track->getCode(),
            'trackid'     => $track->getTrackId(),
            'resptrackid' => $track->getRespondentTrackId(),
            'respid'      => $track->getRespondentId(),
        );

        if (empty($this->trackFilter)) {
            $result = true;
        } else {
            // Now read the filter and split by track code or track id
            foreach($this->trackFilter as $filter) {
                $remaining = array_diff_assoc($filter, $trackInfo);
                if (empty($remaining)) {
                    $result = true;
                    break;
                }
            }
        }

        // Only if track has a success code
        if ($result && $track->getReceptionCode()->isSuccess()) {
            return true;
        }

        return false;
    }
protected function _isTrackInFilter(\Gems_Tracker_RespondentTrack $track)
    {
        $result    = false;
        $trackInfo = array(
            'code'        => $track->getCode(),
            'trackid'     => $track->getTrackId(),
            'resptrackid' => $track->getRespondentTrackId(),
            'respid'      => $track->getRespondentId(),
        );

        if (empty($this->trackFilter)) {
            $result = true;
        } else {
            // Now read the filter and split by track code or track id
            foreach($this->trackFilter as $filter) {
                $remaining = array_diff_assoc($filter, $trackInfo);
                if (empty($remaining)) {
                    $result = true;
                    break;
                }
            }
        }

        // Only if track has a success code
        if ($result && $track->getReceptionCode()->isSuccess()) {
            return true;
        }

        return false;
    }
protected function _isTrackInFilter ( \ Gems_Tracker_RespondentTrack $ track ) { $ result = false ; $ trackInfo = array ( 'code' => $ track -> getCode ( ) , 'trackid' => $ track -> getTrackId ( ) , 'resptrackid' => $ track -> getRespondentTrackId ( ) , 'respid' => $ track -> getRespondentId ( ) , ) ; if ( empty ( $ this -> trackFilter ) ) { $ result = true ; } else { // Now read the filter and split by track code or track id foreach ( $ this -> trackFilter as $ filter ) { $ remaining = array_diff_assoc ( $ filter , $ trackInfo ) ; if ( empty ( $ remaining ) ) { $ result = true ; break ; } } } // Only if track has a success code if ( $ result && $ track -> getReceptionCode ( ) -> isSuccess ( ) ) { return true ; } return false ; }
Determines if this particular track should be included
in the report

@param  \Gems_Tracker_RespondentTrack $track
@return boolean This dummy implementation always returns true
Determines if this particular track should be included in the report