Files
Facilitor/APPL/API2/model_doc.inc
Jos Groot Lipman 2b76be0c3d FSN#39312 API documentatie verbeteringen
svn path=/Website/trunk/; revision=33232
2017-03-23 13:58:25 +00:00

43 lines
1.1 KiB
PHP

<% /*
$Revision$
$Id$
File: model_doc.inc
Description: Doc model.
Parameters:
Context: Dit bestand loopt 1-op-1 met model_doc.xsl
(Alleen) wat je hier in this stopt kun je opvragen
Notes: Met trunk/api2/doc.doc?debug=1 kun je eventueel de XML bekijken
*/
%>
<!-- #include file="model_apis.inc"-->
<%
function model_doc()
{
this.table = "apis";
this.primary = "id";
this.records_name = "apis";
this.record_name = "api";
this.autfunction = "WEB_APIDOC";
var apis = model_apis.REST_GET({});
// Met XSLT 1.0 kun je niet lekker groeperen (op modulenaam) dus
// maar gewoon hier in JavaScript
this.modules = { };
for (var i = 0; i < apis.length; i++)
{
var modulecode = apis[i].modulecode || "XXX";
if (!(modulecode in this.modules))
this.modules[modulecode] = { name: apis[i].module, apis: { } };
this.modules[modulecode].apis[ apis[i].id ] = { label: apis[i].name };
}
this.REST_GET = generic_REST_GET(this, {});
this.xslname = "model_doc.xsl";
}
%>