OldIdFunctions

From Catglobe Wiki
Revision as of 09:59, 8 March 2022 by Administrator (talk | contribs)
Jump to: navigation, search
Old function New function Note
setRPQUserId(userId) setQASUserId(userRId)


getRPQUserId()
return userId
getQASUserId()
return userRId


setTimezone(userId, timezoneId)
setTimezone(timezoneId)
setUserTimezone(userRId, timezoneId)
setUserTimezone(timezoneId)
getTimezone(userId)
getTimezone()
getUserTimezone(userRId)
getUserTimezone()


setUserRoleId(userResourceTemplateId) User_setUserRoleId(userResourceTemplateRId)

already exist: setResourceTemplateResourceId

getUserRoleId()
return userResourceTemplateId
User_getUserRoleId()
return userResourceTemplateRId

already exist: getResourceTemplateResourceId

getQuestionnaireTemplateId Questionnaire_getTemplateId


getProjectQuestionnaireId Questionnaire_getProjectId

getQuestionnaireId

getReportStyleSheetIdByName Report_getStyleSheetIdByName


getReportStyleSheetId Report_getStyleSheetId


changeSampleRuleId X


sampleRule has only one kind of Id

createResourceProjectQuestionnaire(qnaireId)
createResourceProjectQuestionnaire(qnaireId, assignCurrentUser)
createResourceProjectQuestionnaire(qnaireId, assignCurrentUser, useExisting)


already exist:
new QAS(qnaireRId, -1)
new QAS(qnaireRId, 0)
QAS_getByUserResourceId

getProjectQuestionnaireName(qnaireId)
getProjectQuestionnaireName()


expected new function name: getQuestionnaireName

getReturnToProjectQuestionnaireId()
return qnaireId


expected new functions name: getReturnToQuestionnaireId

getUserProjectQuestionnaireId() X


already exist: getRPQId
not related to Id, no need new function

getUserProjectQuestionnaireUserId()
return UserId


already exist: getQASUserId

questionnaireAnswerSheetExists(qnaireId, userId)
questionnaireAnswerSheetExists(qnaireId)
already exist:
QAS_exists(qnaireRid, userRId)
QAS_exists(qnaieRId)
sampleRuleExists X


sampleRule has only one kind of Id

setUserProjectQuestionnaireId(QASId) X


already exist: setRPQId
and not related with Id, no need new function

setUserProjectQuestionnaireUserId(userId)


already exist: setQASUserId