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_CallcleanupForCacheId(string $cacheId) : string
string
stringgetActiveOrganizations() : array
arraygetActiveStaff() : array
arraygetActiveStaffGroups() : array
arraygetActiveStaffRoles() : array
arraygetAllowedRespondentGroups() : array
arraygetAllowedStaffGroups() : array
| deprecated | Since 1.7.2 Replaced by loader->getCurrentUser()->getAllowedStaffGroups() |
|---|
arraygetCommTemplates($mailTarget = false) : array
| staticvar | array $data |
|---|
arrayThe tempalteId => subject listgetDefaultGroup()
getFilterForMailJob(array $job) : array
array
arraygetGroups() : array
arraygetOrganizations() : array
arrayList of the active organizationsgetOrganizationsByCode(string $code = null) : array
On empty this will return all organizations
string
arraykey = gor_id_organization, value = gor_namegetOrganizationsForLogin() : array
arrayList of the active organizationsgetOrganizationsWithRespondents() : array
arrayList of the active organizationsgetPatientNr(integer $respondentId, integer $organizationId) : string
integer
integer
\Gems_Exception |
When the patient does not exist |
|---|
stringA patient nr or nullgetRespondentId(string $patientId, integer $organizationId) : integer
string
integer
\Gems_Exception |
When the respondent does not exist |
|---|
integerA respondent id or nullgetRespondentIdAndName(string $patientId, integer $organizationId) : array
string
integer
\Gems_Exception |
When the respondent does not exist |
|---|
array['id', 'name']getRoles() : array
arrayroleId => ucfirst(roleId)getRolesByPrivilege($privilege) : array
arrayroleId => ucfirst(roleId)getRoundsForExport(integer $trackId= null, integer $surveyId= null) : array
integerOptional track id
integerOptional survey id
arraygetStaff() : array
arraygetStaffGroups() : array
arraygetSurveysForExport(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.
integerOptional track id
arraygetUserConsents() : 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
$acl : \Zend_Acl
$cache : \Zend_Cache_Core
$db : \Zend_Db_Adapter_Abstract
$loader : \Gems_Loader
$source : \MUtil_Registry_Source
$util : \Gems_Util