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
string
A unique identifier for the current batch
integer
Id of the user who takes the action (for logging)
string
Optional where statement for selecting tracks
\Gems_Task_TaskRunnerBatch
A batch to process the changescreateRespondentTrack(integer $respondentId, integer $organizationId, integer $trackId, integer $userId, mixed $respTrackData= null
, array $trackFieldsData= array()
) : \Gems_Tracker_RespondentTrack
integer
The real patientId (grs_id_user), not the patientnr (gr2o_patient_nr)
integer
integer
integer
Id of the user who takes the action (for logging)
mixed
Optional array containing field values or the start date.
array
\Gems_Tracker_RespondentTrack
The newly created trackcreateTrackClass(string $className, mixed $param1= null
, mixed $param2= null
) : object
string
mixed
mixed
object
filterChangesOnly(array $oldValues, array $newValues) : array
array
array
array
filterToken(string $tokenId) : string
string
string
Reformatted tokengetAllCodeFields() : array
array
id => codegetAppointment(mixed $appointmentData) : \Gems_Agenda_Appointment
mixed
Appointment id or array containing appintment data
\Gems_Agenda_Appointment
getAskTokenForm(mixed $args_array = null
) : \Gems_Tracker_Form_AskTokenForm
mixed
\MUtil_Ra::args array for Form initiation.
\Gems_Tracker_Form_AskTokenForm
getRespondentTrack(mixed $respTrackData) : \Gems_Tracker_RespondentTrack
mixed
Track id or array containing trackdata
\Gems_Tracker_RespondentTrack
getRespondentTrackModel() : \Gems_Tracker_Model_RespondentTrackModel
\Gems_Tracker_Model_RespondentTrackModel
getRespondentTracks(integer $respondentId, integer $organizationId, mixed $order = array('gr2t_start_date')
) : array
Specify the optional $order to sort other than on start date
integer
integer
mixed
The column(s) and direction to order by
array
of \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?)
mixed
Gems source id or array containing gems source data
\Gems_Tracker_Source_SourceInterface
getSourceClasses() : array
array
Of classname => descriptiongetSourceDatabaseClasses() : array
array
Of classname => descriptiongetSurvey(mixed $surveyData) : \Gems_Tracker_Survey
mixed
Gems survey id or array containing gems survey data
\Gems_Tracker_Survey
getSurveyBySourceId(mixed $sourceSurveyId, integer $sourceId) : \Gems_Tracker_Survey
mixed
The source survey id
integer
The gems source id of the source
\Gems_Tracker_Survey
getSurveyModel(\Gems_Tracker_Survey $survey, \Gems_Tracker_Source_SourceInterface $source) : \Gems_Tracker_SurveyModel
\Gems_Tracker_Survey
\Gems_Tracker_Source_SourceInterface
\Gems_Tracker_SurveyModel
getToken(mixed $tokenData) : \Gems_Tracker_Token
mixed
Token id or array containing tokendata
\Gems_Tracker_Token
getTokenFilter() : \Gems_Tracker_Token_TokenFilter
\Gems_Tracker_Token_TokenFilter
getTokenLibrary() : \Gems_Tracker_Token_TokenLibrary
\Gems_Tracker_Token_TokenLibrary
getTokenModel(string $modelClass = 'StandardTokenModel'
) : \Gems_Tracker_Model_StandardTokenModel
string
Optional class to use instead of StandardTokenModel. Must be subclass.
\Gems_Tracker_Model_StandardTokenModel
getTokenSelect($fields = '*'
) : \Gems_Tracker_Token_TokenSelect
\Gems_Tracker_Token_TokenSelect
getTokenValidator() : \Gems_Tracker_Token_TokenValidator
\Gems_Tracker_Token_TokenValidator
getTrackDisplayGroups() : array
array
getTrackEngine(mixed $trackData) : \Gems_Tracker_Engine_TrackEngineInterface
mixed
Gems track id or array containing gems track data
\Gems_Tracker_Engine_TrackEngineInterface
getTrackEngineClasses() : 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 |
array
Of \Gems_Tracker_Engine_TrackEngineInterfacegetTrackEngineEditSnippets() : array
array
of snippet names for creating a new track enginegetTrackEngineList(boolean $extended= false
, boolean $userCreatableOnly= false
) : array
boolean
When true return a longer name.
boolean
Return only the classes that can be created by the user interface
array
Of classname => descriptiongetTrackModel() : \Gems_Tracker_Model_TrackModel
\Gems_Tracker_Model_TrackModel
processCompletedTokens(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.
integer
Id of the respondent to check for or NULL
integer
Id of the user who takes the action (for logging)
integer
Optional Id of the organization to check for
boolean
Check only tokens with recent gto_start_time's
boolean
Did we find new answers?recalcTrackFields(string $batchId, integer $userId= null
, string $cond= null
) : \Gems_Task_TaskRunnerBatch
Does recalculate changed tracks
string
A unique identifier for the current batch
integer
Id of the user who takes the action (for logging)
string
Optional where statement for selecting tracks
\Gems_Task_TaskRunnerBatch
A 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.
string
A unique identifier for the current batch
integer
Id of the user who takes the action (for logging)
string
\Gems_Task_TaskRunnerBatch
A batch to process the changesrefreshTokenAttributes(string $batch_id, string $cond = null
) : \Gems_Task_TaskRunnerBatch
string
A unique identifier for the current batch
string
An optional where statement
\Gems_Task_TaskRunnerBatch
A 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.
integer
A source identifier
integer
Id of the user who takes the action (for logging)
\Gems_Task_TaskRunnerBatch
A batch to process the synchronization