Lookup global information from the database, allowing for project specific overrides
package | Gems |
---|---|
subpackage | Util |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
inherited_from | \Gems\Util\UtilAbstract |
__get(string $name) : \MUtil_Lazy_Call
string
\MUtil_Lazy_Call
cleanupForCacheId(string $cacheId) : string
string
string
getActiveOrganizations() : array
array
getActiveStaff() : array
array
getActiveStaffGroups() : array
array
getActiveStaffRoles() : array
array
getAllowedRespondentGroups() : array
array
getAllowedStaffGroups() : array
deprecated | Since 1.7.2 Replaced by loader->getCurrentUser()->getAllowedStaffGroups() |
---|
array
getCommTemplates($mailTarget = false
) : array
staticvar | array $data |
---|
array
The tempalteId => subject listgetDefaultGroup()
getFilterForMailJob(array $job) : array
array
array
getGroups() : array
array
getOrganizations() : array
array
List of the active organizationsgetOrganizationsByCode(string $code = null
) : array
On empty this will return all organizations
string
array
key = gor_id_organization, value = gor_namegetOrganizationsForLogin() : array
array
List of the active organizationsgetOrganizationsWithRespondents() : array
array
List of the active organizationsgetPatientNr(integer $respondentId, integer $organizationId) : string
integer
integer
\Gems_Exception |
When the patient does not exist |
---|
string
A patient nr or nullgetRespondentId(string $patientId, integer $organizationId) : integer
string
integer
\Gems_Exception |
When the respondent does not exist |
---|
integer
A respondent id or nullgetRespondentIdAndName(string $patientId, integer $organizationId) : array
string
integer
\Gems_Exception |
When the respondent does not exist |
---|
array
['id', 'name']getRoles() : array
array
roleId => ucfirst(roleId)getRolesByPrivilege($privilege) : array
array
roleId => ucfirst(roleId)getRoundsForExport(integer $trackId= null
, integer $surveyId= null
) : array
integer
Optional track id
integer
Optional survey id
array
getStaff() : array
array
getStaffGroups() : array
array
getSurveysForExport(integer $trackId= null
, $roundDescription= null
, $flat= false
) : array
For export not only active surveys should be returned, but all surveys that can be exported. As this depends on the kind of source used it is in this method so projects can change to adapt to their own sources.
integer
Optional track id
array
getUserConsents() : 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
$acl : \Zend_Acl
$cache : \Zend_Cache_Core
$db : \Zend_Db_Adapter_Abstract
$loader : \Gems_Loader
$source : \MUtil_Registry_Source
$util : \Gems_Util