2002-11-22 14:32:46 +00:00
|
|
|
function read_action () {
|
|
|
|
this.readApplication ();
|
|
|
|
res.redirect (this.href("main"));
|
|
|
|
}
|
|
|
|
|
2002-11-21 18:36:03 +00:00
|
|
|
function main_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-21 18:36:03 +00:00
|
|
|
this.renderSkin ("frameset");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function prototypes_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-21 18:36:03 +00:00
|
|
|
res.data.body = this.renderSkinAsString ("prototypes");
|
|
|
|
renderSkin ("api");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function summary_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-21 18:36:03 +00:00
|
|
|
res.data.body = this.renderSkinAsString ("summary");
|
|
|
|
renderSkin ("api");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-11-22 11:39:11 +00:00
|
|
|
function functionindex_action () {
|
2002-11-22 11:55:42 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
2002-11-22 11:39:11 +00:00
|
|
|
res.data.body = this.renderSkinAsString ("functionindex");
|
|
|
|
renderSkin ("api");
|
|
|
|
}
|
|
|
|
|
2002-11-21 18:36:03 +00:00
|
|
|
|
|
|
|
function render_action () {
|
2002-12-04 09:36:21 +00:00
|
|
|
// set res.data.rendering, this will suppress the link back to the manage
|
|
|
|
// console in the apidocs actions
|
|
|
|
res.data.rendering = true;
|
2004-01-06 15:47:22 +00:00
|
|
|
if (checkAddress()==false)
|
|
|
|
return;
|
|
|
|
if (checkAuth(this.getParentElement ())==false)
|
|
|
|
return;
|
|
|
|
var ct = this.renderApi();
|
|
|
|
res.data.body = '<body>rendering API ...<br/>wrote ' + ct + ' files<br/><br/>';
|
|
|
|
res.data.body += '<a href="' + root.href ("main") + '">back to manage console</a>';
|
2002-12-04 09:36:21 +00:00
|
|
|
res.data.title = "rendering helma api";
|
|
|
|
res.data.head = renderSkinAsString("head");
|
|
|
|
renderSkin ("basic");
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|