MCPcopy Create free account
hub / github.com/adaptlearning/adapt_framework / getData

Method getData

grunt/helpers/Framework.js:92–106  ·  view source on GitHub ↗

* Returns a Data instance for either the src/course or build/course folder * depending on the specification of the useOutputData property on either the * function or the Framework instance. * @returns {Data}

({
    useOutputData = this.useOutputData,
    performLoad = true
  } = {})

Source from the content-addressed store, hash-verified

90 * @returns {Data}
91 */
92 getData({
93 useOutputData = this.useOutputData,
94 performLoad = true
95 } = {}) {
96 const data = new Data({
97 framework: this,
98 sourcePath: useOutputData ? this.outputPath : this.sourcePath,
99 courseDir: this.courseDir,
100 jsonext: this.jsonext,
101 trackingIdType: this.trackingIdType,
102 log: this.log
103 });
104 if (performLoad) data.load();
105 return data;
106 }
107
108 /** @returns {Plugins} */
109 getPlugins({

Callers 12

applyGlobalsDefaultsMethod · 0.95
helpers.jsFile · 0.80
tracking-remove.jsFile · 0.80
migration.jsFile · 0.80
check-json.jsFile · 0.80
tracking-insert.jsFile · 0.80
schema-defaults.jsFile · 0.80
generatePatternsFunction · 0.80
trackingIds.cy.jsFile · 0.80
languages.cy.jsFile · 0.80

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected