/
core.cfm
48 lines (42 loc) · 1.28 KB
/
core.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<cfscript>
// Core API embedded documentation
param name="params.type" default="core";
param name="params.format" default="html";
documentScope=[];
// Plugins First, as they can potentially hijack an internal function
for(local.plugin in application.wheels.plugins){
arrayAppend(documentScope, {
"name": local.plugin,
"scope": application.wheels.plugins[local.plugin]
});
}
arrayAppend(documentScope, {
"name": "controller",
"scope": createObject("component", "app.controllers.Controller")
});
arrayAppend(documentScope, {
"name": "model",
"scope": createObject("component", "app.models.Model")
});
arrayAppend(documentScope, {
"name": "mapper",
"scope": application.wheels.mapper
});
arrayAppend(documentScope, {
"name": "migrator",
"scope": application.wheels.migrator
});
arrayAppend(documentScope, {
"name": "migration",
"scope": createObject("component", "app.wheels.migrator.Migration")
});
arrayAppend(documentScope, {
"name": "tabledefinition",
"scope": createObject("component", "app.wheels.migrator.TableDefinition")
});
// Array of functions to ignore
ignore = ["config","init"];
// Populate the main documentation
docs=$returnInternalDocumentation(documentScope,ignore);
include "layouts/#params.format#.cfm";
</cfscript>