2005-08-31 13:16:21 +00:00
|
|
|
function translateType(filter) {
|
|
|
|
if (filter == "actions")
|
|
|
|
return Packages.helma.doc.DocElement.ACTION;
|
|
|
|
else if (filter == "functions")
|
|
|
|
return Packages.helma.doc.DocElement.FUNCTION;
|
|
|
|
else if (filter == "macros")
|
|
|
|
return Packages.helma.doc.DocElement.MACRO;
|
|
|
|
else if (filter == "skins")
|
|
|
|
return Packages.helma.doc.DocElement.SKIN;
|
|
|
|
else if (filter == "properties")
|
|
|
|
return Packages.helma.doc.DocElement.PROPERTIES;
|
|
|
|
else
|
|
|
|
return -1;
|
2002-11-21 18:36:03 +00:00
|
|
|
}
|
|
|
|
|
2006-11-20 11:05:24 +00:00
|
|
|
/**
|
|
|
|
* Get the application we're part of.
|
|
|
|
*/
|
2005-08-31 13:16:21 +00:00
|
|
|
function getApplication() {
|
|
|
|
return this.getParentElement();
|
2002-12-02 12:18:59 +00:00
|
|
|
}
|
|
|
|
|
2006-11-20 11:05:24 +00:00
|
|
|
/**
|
|
|
|
* Method used by Helma for URL composition.
|
|
|
|
*/
|
|
|
|
function href(action) {
|
|
|
|
var base = this.getParentElement().href()
|
|
|
|
+ this.getElementName() + "/";
|
|
|
|
return action ? base + action : base;
|
|
|
|
}
|