[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/admin/tool/lp/amd/build/ -> competency_outcomes.min.js (source)

   1  /**
   2   * Competency rule config.
   3   *
   4   * @module     tool_lp/competency_outcomes
   5   * @copyright  2015 Frédéric Massart - FMCorz.net
   6   * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
   7   */
   8  define("tool_lp/competency_outcomes",["jquery","core/str"],(function($,Str){return{NONE:0,EVIDENCE:1,COMPLETE:2,RECOMMEND:3,getAll:function(){var self=this;return Str.get_strings([{key:"competencyoutcome_none",component:"tool_lp"},{key:"competencyoutcome_evidence",component:"tool_lp"},{key:"competencyoutcome_recommend",component:"tool_lp"},{key:"competencyoutcome_complete",component:"tool_lp"}]).then((function(strings){var outcomes={};return outcomes[self.NONE]={code:self.NONE,name:strings[0]},outcomes[self.EVIDENCE]={code:self.EVIDENCE,name:strings[1]},outcomes[self.RECOMMEND]={code:self.RECOMMEND,name:strings[2]},outcomes[self.COMPLETE]={code:self.COMPLETE,name:strings[3]},outcomes}))},getString:function(id){return this.getAll().then((function(outcomes){return void 0===outcomes[id]?$.Deferred().reject().promise():outcomes[id].name}))}}}));
   9  
  10  //# sourceMappingURL=competency_outcomes.min.js.map


Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1