protected function _createTrack($filter, $tracker)
    {
        $trackData = array('gr2t_comment' => sprintf(
                        $this->_('Track created by %s filter'),
                        $filter->getName()
                        ));

        $fields    = array($filter->getFieldId() => $this->getId());
        $trackId   = $filter->getTrackId();
        $respTrack = $tracker->createRespondentTrack(
                $this->getRespondentId(),
                $this->getOrganizationId(),
                $trackId,
                $this->currentUser->getUserId(),
                $trackData,
                $fields
                );

        return $respTrack;
    }
protected function _createTrack($filter, $tracker)
    {
        $trackData = array('gr2t_comment' => sprintf(
                        $this->_('Track created by %s filter'),
                        $filter->getName()
                        ));

        $fields    = array($filter->getFieldId() => $this->getId());
        $trackId   = $filter->getTrackId();
        $respTrack = $tracker->createRespondentTrack(
                $this->getRespondentId(),
                $this->getOrganizationId(),
                $trackId,
                $this->currentUser->getUserId(),
                $trackData,
                $fields
                );

        return $respTrack;
    }
protected function _createTrack ( $ filter , $ tracker ) { $ trackData = array ( 'gr2t_comment' => sprintf ( $ this -> _ ( 'Track created by %s filter' ) , $ filter -> getName ( ) ) ) ; $ fields = array ( $ filter -> getFieldId ( ) => $ this -> getId ( ) ) ; $ trackId = $ filter -> getTrackId ( ) ; $ respTrack = $ tracker -> createRespondentTrack ( $ this -> getRespondentId ( ) , $ this -> getOrganizationId ( ) , $ trackId , $ this -> currentUser -> getUserId ( ) , $ trackData , $ fields ) ; return $ respTrack ; }
Create a new track for this appointment and the given filter

@param \Gems\Agenda\AppointmentFilterInterface $filter
@param \Gems_Tracker $tracker
Create a new track for this appointment and the given filter