Class for general track utility functions
| package | Gems |
|---|---|
| subpackage | Util |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.0 |
| inherited_from | \Gems\Util\UtilAbstract |
__get(string $name) : \MUtil_Lazy_Call
string
\MUtil_Lazy_CallcleanupForCacheId(string $cacheId) : string
string
stringgetActiveSurveys() : array
arraygetActiveTracks(mixed $orgs = '1=1') : array
mixedEither an array of org ids or an organization id or an sql select where statement
arraygetAllRounds() : array
arraygetAllSurveys(boolean $active = false) : array
booleanOnly show active surveys Default: False
arrayof survey Id and survey name pairsgetAllSurveysAndDescriptions() : array
arraygetAllTracks() : array
arraygetDateUnitsList() : array
| deprecated | since 1.7.1 use Translated->getDatePeriodUnits() |
|---|
arraydate_unit => labelgetInsertableSurveys() : array
arraygetRespondentTokenFilter(\type $respId, \type $orgId = null)
\type
\type
getRoundsFor(integer $trackId) : array
integer
arraygetSteppedTracks() : array
| deprecated | Since 1.7.1 getAllTracks() is all we need |
|---|
arraygetSurveyRounds(integer $surveyId) : array
integer
arraygetSurveysByCode(string $code) : array
string
arraysurvey id => survey namegetSurveysFor(integer $organizationId) : array
integer
arraysurvey id => survey namegetSurveysWithoutExportCode() : array
arraygetTrackDateFields(integer $trackId) : array
integer
arraygetTrackTitle(integer $trackId) : string
integer
stringgetTracksBySurvey(integer $surveyId) : array
integer
arraysurvey id => survey namegetTracksDateFields() : array
array_getObjectsAllCached(string $cacheId, object $object, mixed $sql, array $binds= null, mixed $tags= array()) : array
stringThe class is prepended to this id
objectThe object to put the data in
mixedstring or \Zend_Db_Select
arraysql paramters
mixedatring or array of strings
array_getSelectAllCached(string $cacheId, mixed $sql, array $binds= array(), mixed $tags= array()) : array
stringThe class is prepended to this id
mixedstring or \Zend_Db_Select
arraysql paramters
mixedatring or array of strings
array_getSelectPairsCached(string $cacheId, mixed $sql, array $binds= array(), mixed $tags= array(), string $sort= null) : array
stringThe class is prepended to this id
mixedstring or \Zend_Db_Select
arraysql paramters
mixedatring or array of strings
stringOptional function to sort on, only known functions will do
array_getSelectPairsProcessedCached(string $cacheId, mixed $sql, callable $function, array $binds= array(), mixed $tags= array(), string $sort= null) : array
stringThe class is prepended to this id
mixedstring or \Zend_Db_Select
callableThe function called with each row to form the result
arraysql paramters
mixedstring or array of strings
stringOptional function to sort on, only known functions will do
array_getSelectProcessedCached(string $cacheId, mixed $sql, callable $function, string $keyField, mixed $tags= array(), string $sort= null) : array
stringThe class is prepended to this id
mixedstring or \Zend_Db_Select
callableThe function called with each row to form the result
stringThe field containing the key for each row
mixedstring or array of strings
stringOptional function to sort on, only known functions will do
array_sortResult(array $result, \Gems\Util\strng $sort = 'asort')
array
\Gems\Util\strng
$accessMode : integer
self::SEE_CURRENT_ONLYThe default is only those of the current organization.
$cache : \Zend_Cache_Core
$db : \Zend_Db_Adapter_Abstract
$loader : \Gems_Loader
$source : \MUtil_Registry_Source
$translate : \Zend_Translate
SEE_ALL_ACCESSIBLE = 3
SEE_CURRENT_ONLY = 1
SEE_EVERYTHING = 2