This interface lists all API-level methods in the Tracker class.
This interface only exists to prevent the \Gems_Loader_TargetLoaderAbstract functions of being accessible when working with a tracker. Do not create a second implementation is this interface but always create a subclass of the \Gems_Tracker class.
The tracker is the central access point doing anything with tracks or tokens.
Tracker contains a number of getXxx functions to create Token, Survey, RespondentTrack, [Survey]SourceInterface and TrackEngine objects.
Tracker also offers \MUtil_Model_ModelAbstract children for RespondentTracks, Surveys, Tokens and Tracks.
Other object classes accessible through gems_Tracker are TokenLibrary (defines how tokens are created and checked), TokenSelect (\Gems_Tracker_Token_TokenSelect extension) and TokenValidator.
Other functions are general utility functions, e.g. checkTrackRounds(), createToken(), processCompletedTokens() and recalculateTokens().
| package | Gems |
|---|---|
| subpackage | Tracker |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.4 |
checkTrackRounds(string $batchId, integer $userId= null, string $cond= null) : \Gems_Task_TaskRunnerBatch
Does recalculate changed tracks
stringA unique identifier for the current batch
integerId of the user who takes the action (for logging)
stringOptional where statement for selecting tracks
\Gems_Task_TaskRunnerBatchA batch to process the changescreateRespondentTrack(integer $respondentId, integer $organizationId, integer $trackId, integer $userId, mixed $respTrackData= null, array $trackFieldsData= array()) : \Gems_Tracker_RespondentTrack
integerThe real patientId (grs_id_user), not the patientnr (gr2o_patient_nr)
integer
integer
integerId of the user who takes the action (for logging)
mixedOptional array containing field values or the start date.
array
\Gems_Tracker_RespondentTrackThe newly created trackcreateTrackClass(string $className, mixed $param1= null, mixed $param2= null) : object
string
mixed
mixed
objectfilterChangesOnly(array $oldValues, array $newValues) : array
array
array
arrayfilterToken(string $tokenId) : string
string
stringReformatted tokengetAllCodeFields() : array
arrayid => codegetAppointment(mixed $appointmentData) : \Gems_Agenda_Appointment
mixedAppointment id or array containing appintment data
\Gems_Agenda_AppointmentgetAskTokenForm(mixed $args_array = null) : \Gems_Tracker_Form_AskTokenForm
mixed\MUtil_Ra::args array for Form initiation.
\Gems_Tracker_Form_AskTokenFormgetRespondentTrack(mixed $respTrackData) : \Gems_Tracker_RespondentTrack
mixedTrack id or array containing trackdata
\Gems_Tracker_RespondentTrackgetRespondentTrackModel() : \Gems_Tracker_Model_RespondentTrackModel
\Gems_Tracker_Model_RespondentTrackModelgetRespondentTracks(integer $respondentId, integer $organizationId, mixed $order = array('gr2t_start_date')) : array
Specify the optional $order to sort other than on start date
integer
integer
mixedThe column(s) and direction to order by
arrayof \Gems_Tracker_RespondentTrackgetSource(mixed $sourceData) : \Gems_Tracker_Source_SourceInterface
Should only be called by \Gems_Tracker, \Gems_Tracker_Survey or \Gems_Tracker_Token (or should this one use \Gems_Tracker_Survey instead?)
mixedGems source id or array containing gems source data
\Gems_Tracker_Source_SourceInterfacegetSourceClasses() : array
arrayOf classname => descriptiongetSourceDatabaseClasses() : array
arrayOf classname => descriptiongetSurvey(mixed $surveyData) : \Gems_Tracker_Survey
mixedGems survey id or array containing gems survey data
\Gems_Tracker_SurveygetSurveyBySourceId(mixed $sourceSurveyId, integer $sourceId) : \Gems_Tracker_Survey
mixedThe source survey id
integerThe gems source id of the source
\Gems_Tracker_SurveygetSurveyModel(\Gems_Tracker_Survey $survey, \Gems_Tracker_Source_SourceInterface $source) : \Gems_Tracker_SurveyModel
\Gems_Tracker_Survey
\Gems_Tracker_Source_SourceInterface
\Gems_Tracker_SurveyModelgetToken(mixed $tokenData) : \Gems_Tracker_Token
mixedToken id or array containing tokendata
\Gems_Tracker_TokengetTokenFilter() : \Gems_Tracker_Token_TokenFilter
\Gems_Tracker_Token_TokenFiltergetTokenLibrary() : \Gems_Tracker_Token_TokenLibrary
\Gems_Tracker_Token_TokenLibrarygetTokenModel(string $modelClass = 'StandardTokenModel') : \Gems_Tracker_Model_StandardTokenModel
stringOptional class to use instead of StandardTokenModel. Must be subclass.
\Gems_Tracker_Model_StandardTokenModelgetTokenSelect($fields = '*') : \Gems_Tracker_Token_TokenSelect
\Gems_Tracker_Token_TokenSelectgetTokenValidator() : \Gems_Tracker_Token_TokenValidator
\Gems_Tracker_Token_TokenValidatorgetTrackDisplayGroups() : array
arraygetTrackEngine(mixed $trackData) : \Gems_Tracker_Engine_TrackEngineInterface
mixedGems track id or array containing gems track data
\Gems_Tracker_Engine_TrackEngineInterfacegetTrackEngineClasses() : array
Instead of creating another object layer all classes defined by getTrackEngineClassNames() are loaded with dummy data so that the TrackEngineInterface functions containing general class information can be used.
| see | |
|---|---|
| static | $dummyClasses Cache array |
arrayOf \Gems_Tracker_Engine_TrackEngineInterfacegetTrackEngineEditSnippets() : array
arrayof snippet names for creating a new track enginegetTrackEngineList(boolean $extended= false, boolean $userCreatableOnly= false) : array
booleanWhen true return a longer name.
booleanReturn only the classes that can be created by the user interface
arrayOf classname => descriptiongetTrackModel() : \Gems_Tracker_Model_TrackModel
\Gems_Tracker_Model_TrackModelprocessCompletedTokens(integer $respondentId, integer $userId= null, integer $orgId= null, boolean $quickCheck= false) : boolean
If the survey was started (and the token was forwarded to limesurvey) we need to check if is was completed. If so, we might want to check the track the survey is in to enable or disable future rounds
Does not reflect changes to tracks or rounds.
integerId of the respondent to check for or NULL
integerId of the user who takes the action (for logging)
integerOptional Id of the organization to check for
booleanCheck only tokens with recent gto_start_time's
booleanDid we find new answers?recalcTrackFields(string $batchId, integer $userId= null, string $cond= null) : \Gems_Task_TaskRunnerBatch
Does recalculate changed tracks
stringA unique identifier for the current batch
integerId of the user who takes the action (for logging)
stringOptional where statement for selecting tracks
\Gems_Task_TaskRunnerBatchA batch to process the changesrecalculateTokens(string $batch_id, integer $userId= null, string $cond= null) : \Gems_Task_TaskRunnerBatch
Does not reflect changes to tracks or rounds.
stringA unique identifier for the current batch
integerId of the user who takes the action (for logging)
string
\Gems_Task_TaskRunnerBatchA batch to process the changesrefreshTokenAttributes(string $batch_id, string $cond = null) : \Gems_Task_TaskRunnerBatch
stringA unique identifier for the current batch
stringAn optional where statement
\Gems_Task_TaskRunnerBatchA batch to process the changesremoveToken(string|\Gems_Tracker_Token $token) : \Gems_Tracker
string\Gems_Tracker_Token
\Gems_Tracker(continuation pattern)synchronizeSources(integer $sourceId= null, integer $userId= null) : \Gems_Task_TaskRunnerBatch
Does not reflect changes to tracks or rounds.
integerA source identifier
integerId of the user who takes the action (for logging)
\Gems_Task_TaskRunnerBatchA batch to process the synchronization