Merge "Methods for new "maps" property in TD Root"

This commit is contained in:
jenkins-bot 2014-11-17 20:56:49 +00:00 committed by Gerrit Code Review
commit c5ec9cb8d5

View file

@ -23,6 +23,7 @@ ve.dm.MWTemplateSpecModel = function VeDmMWTemplateSpecModel( template ) {
this.params = {};
this.paramOrder = [];
this.sets = [];
this.maps = {};
// Initialization
this.fill();
@ -70,6 +71,7 @@ ve.dm.MWTemplateSpecModel.prototype.extend = function ( data ) {
}
}
this.sets = data.sets;
this.maps = data.maps;
};
/**
@ -317,3 +319,12 @@ ve.dm.MWTemplateSpecModel.prototype.getParameterNames = function () {
ve.dm.MWTemplateSpecModel.prototype.getParameterSets = function () {
return this.sets;
};
/**
* Get map describing relationship between another content type and the parameters.
*
* @return {Object} Object with application property maps to parameters keyed to application name.
*/
ve.dm.MWTemplateSpecModel.prototype.getMaps = function () {
return this.maps;
};