helma/DocFunction/functions.js
stefanp 4a7616d5a0 This commit was generated by cvs2svn to compensate for changes in r2155,
which included commits to RCS files with non-trunk default branches.
2002-03-11 13:49:50 +00:00

20 lines
637 B
JavaScript

/**
* overrides the internal href-function, as
* helma.framework.core.Application.getNodeHref(Object,String)
* isn't able to compute correct urls for non-node objects.
* @arg action of prototype
*/
function href(action) {
var url = getProperty("baseURI");
url = (url==null || url=="null") ? "" : url;
url += this.getParentElement().getParentElement().getName() + "/api/" + this.getParentElement().getName() + "/" + this.getTypeName().toLowerCase()+"_"+this.name + "/" + ( (action!=null && action!="") ? action : "main" );
return url;
}
function getApplication() {
return this.getParentElement().getParentElement();
}