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_Call
cleanupForCacheId(string $cacheId) : string
string
string
getActiveSurveys() : array
array
getActiveTracks(mixed $orgs = '1=1'
) : array
mixed
Either an array of org ids or an organization id or an sql select where statement
array
getAllRounds() : array
array
getAllSurveys(boolean $active = false
) : array
boolean
Only show active surveys Default: False
array
of survey Id and survey name pairsgetAllSurveysAndDescriptions() : array
array
getAllTracks() : array
array
getDateUnitsList() : array
deprecated | since 1.7.1 use Translated->getDatePeriodUnits() |
---|
array
date_unit => labelgetInsertableSurveys() : array
array
getRespondentTokenFilter(\type $respId, \type $orgId = null
)
\type
\type
getRoundsFor(integer $trackId) : array
integer
array
getSteppedTracks() : array
deprecated | Since 1.7.1 getAllTracks() is all we need |
---|
array
getSurveyRounds(integer $surveyId) : array
integer
array
getSurveysByCode(string $code) : array
string
array
survey id => survey namegetSurveysFor(integer $organizationId) : array
integer
array
survey id => survey namegetSurveysWithoutExportCode() : array
array
getTrackDateFields(integer $trackId) : array
integer
array
getTrackTitle(integer $trackId) : string
integer
string
getTracksBySurvey(integer $surveyId) : array
integer
array
survey id => survey namegetTracksDateFields() : array
array
_getObjectsAllCached(string $cacheId, object $object, mixed $sql, array $binds= null
, mixed $tags= array()
) : array
string
The class is prepended to this id
object
The object to put the data in
mixed
string or \Zend_Db_Select
array
sql paramters
mixed
atring or array of strings
array
_getSelectAllCached(string $cacheId, mixed $sql, array $binds= array()
, mixed $tags= array()
) : array
string
The class is prepended to this id
mixed
string or \Zend_Db_Select
array
sql paramters
mixed
atring or array of strings
array
_getSelectPairsCached(string $cacheId, mixed $sql, array $binds= array()
, mixed $tags= array()
, string $sort= null
) : array
string
The class is prepended to this id
mixed
string or \Zend_Db_Select
array
sql paramters
mixed
atring or array of strings
string
Optional 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
string
The class is prepended to this id
mixed
string or \Zend_Db_Select
callable
The function called with each row to form the result
array
sql paramters
mixed
string or array of strings
string
Optional 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
string
The class is prepended to this id
mixed
string or \Zend_Db_Select
callable
The function called with each row to form the result
string
The field containing the key for each row
mixed
string or array of strings
string
Optional 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_ONLY
The 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