Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / permissions_by_term / js / src / model / backend.prototype.js
1 let Backend = function(taxonomyRelationFieldNames = [], tidToUsernames = [], tidToRoles = [], fieldWrapperCSSClasses = []) {
2   this.taxonomyRelationFieldNames = taxonomyRelationFieldNames;
3   this.tidsToRoles = tidToRoles;
4   this.tidToUsernames = tidToUsernames;
5   this.fieldWrapperCSSClasses = fieldWrapperCSSClasses;
6 }
7
8 /**
9  * @returns object[]
10  */
11 Backend.prototype.getTidToUsername = function() {
12   return this.tidToUsernames;
13 }
14
15 /**
16  * @returns object[]
17  */
18 Backend.prototype.getTidToRoles = function() {
19   return this.tidsToRoles;
20 }
21
22 /**
23  * @returns string[]
24  */
25 Backend.prototype.getTaxonomyRelationFieldNames = function() {
26   return this.taxonomyRelationFieldNames;
27 }
28
29 Backend.prototype.getFieldWrapperCSSClasses = function() {
30   return this.fieldWrapperCSSClasses;
31 }
32
33 export default Backend;