Rev 1221 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1185 | werner | 1 | module.exports = { |
2 | publicClasses: function(context, options) { |
||
3 | 'use strict'; |
||
4 | var ret = ""; |
||
5 | |||
6 | for(var i=0; i < context.length; i++) { |
||
7 | if(!context[i].itemtype && context[i].access === 'public') { |
||
8 | ret = ret + options.fn(context[i]); |
||
9 | } else if (context[i].itemtype) { |
||
10 | ret = ret + options.fn(context[i]); |
||
11 | } |
||
12 | } |
||
13 | |||
14 | return ret; |
||
15 | }, |
||
16 | search : function(classes, modules) { |
||
17 | 'use strict'; |
||
18 | var ret = ''; |
||
19 | |||
20 | for(var i=0; i < classes.length; i++) { |
||
21 | if(i > 0) { |
||
22 | ret += ', '; |
||
23 | } |
||
24 | ret += "\"" + 'classes/' + classes[i].displayName + "\""; |
||
25 | } |
||
26 | |||
27 | if(ret.length > 0 && modules.length > 0) { |
||
28 | ret += ', '; |
||
29 | } |
||
30 | |||
31 | for(var j=0; j < modules.length; j++) { |
||
32 | if(j > 0) { |
||
33 | ret += ', '; |
||
34 | } |
||
35 | ret += "\"" + 'modules/' + modules[j].displayName + "\""; |
||
36 | } |
||
37 | |||
38 | return ret; |
||
39 | } |
||
40 | }; |