Methods
assignRankToBasedata(basedataId, rankid, datevocation, locationvocation, setByBasedataId, callback)
Adds a rank to a basedata in core database
Parameters:
Name | Type | Description |
---|---|---|
basedataId |
integer | basedata id of user the rank should be added to |
rankid |
integer | id of rank |
datevocation |
date | date of vocation of rank |
locationvocation |
string | location of vocation |
setByBasedataId |
integer | which basedata id has made this change |
callback |
function | success (true or false) |
- Source:
getListOfRanks(callback)
Returns all ranks from core database
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | rows with ranks |
- Source:
getListOfRanksForBaseData(basedataId, callback)
Returns rows with ranks for basedata id
Parameters:
Name | Type | Description |
---|---|---|
basedataId |
integer | basedata id of user ranks should be returned for |
callback |
object | rows or null |
- Source:
removeRankForBasedata(xtRankId, callback)
Deletes a referenced rank for a basedata entry in core database
Parameters:
Name | Type | Description |
---|---|---|
xtRankId |
integer | id of rank in xt_basedata_ranks table in core database |
callback |
function | success (true or false) |
- Source: