Files
Facilitor/APPL/API2/api2_dispatch.inc
Erik Groener 4f53d5bab0 FSN#39312 Verder ontsluiten van modellen via de API
svn path=/Website/trunk/; revision=32864
2017-02-17 13:14:26 +00:00

127 lines
6.4 KiB
PHP

<% /*
$Revision$
$Id$
File: api2_dispatch.inc
Description: Mapping tussen externe API-naam en interne bestandnaam
Notes:
Status:
*/
var api2_mapper = {
// De 'name' moet hier gelijk zijn aan model.records_name
// en die moet zo nodig eerst nog fatsoenlijk engelstalig gemaakt worden
"realestateproperties" : "appl/mgt/alg_kenmerk.asp",
"buildingfunctions" : "appl/mgt/alg_srtgebouw.asp",
"terrainfunctions" : "appl/mgt/alg_srtterreinsector.asp",
"orderdisciplines" : "appl/mgt/bes_discipline.asp", // F
"ordercatalogues" : "appl/mgt/bes_disciplineprod.asp",
"unit" : "appl/mgt/bes_grootheid.asp",
"orderlineproperties" : "appl/mgt/bes_kenmerk.asp", // F
"orderproperties" : "appl/mgt/bes_kenmerkbestel.asp", // F
"xxxxxx" : "appl/mgt/bes_srtgroep.asp",
"xxxxxx" : "appl/mgt/bes_srtkenmerk.asp",
"xxxxxx" : "appl/mgt/bes_srtprodgroep.asp",
"xxxxxx" : "appl/mgt/bes_staffeltabel.asp",
"visitoractions" : "appl/mgt/bez_actie.asp",
"xxxxxx" : "appl/mgt/bez_kenmerk.asp",
"xxxxxx" : "appl/mgt/cad_label.asp",
"xxxxxx" : "appl/mgt/cad_legenda.asp",
"xxxxxx" : "appl/mgt/cad_legendawaarde.asp",
"xxxxxx" : "appl/mgt/cad_thema.asp",
"xxxxxx" : "appl/mgt/cnt_discipline.asp",
"xxxxxx" : "appl/mgt/cnt_kenmerk.asp",
"xxxxxx" : "appl/mgt/cnt_srtkenmerk.asp",
"xxxxxx" : "appl/mgt/cnt_termijn.asp",
"taskcategories" : "appl/mgt/ctr_discipline.asp",
"xxxxxx" : "appl/mgt/fac_audit.asp",
"xxxxxx" : "appl/mgt/fac_edit_groeprechten.asp",
"xxxxxx" : "appl/mgt/fac_edit_groeprechten_save.asp",
"emailsettings" : "appl/mgt/fac_email_setting.asp",
"xxxxxx" : "appl/mgt/fac_export_app.asp",
"xxxxxx" : "appl/mgt/fac_functie.asp",
"authorisationgroups" : "appl/mgt/fac_groep.asp",
"xxxxxx" : "appl/mgt/fac_groeprechten.asp",
"xxxxxx" : "appl/mgt/fac_idp.asp",
"xxxxxx" : "appl/mgt/fac_import_app.asp",
"notificationjobs" : "appl/mgt/fac_notificatiejob.asp",
"profiles" : "appl/mgt/fac_profiel.asp",
"xxxxxx" : "appl/mgt/fac_profielwaarde.asp",
"xxxxxx" : "appl/mgt/fac_srtnotificatie.asp",
"xxxxxx" : "appl/mgt/fac_usergraph.asp",
"xxxxxx" : "appl/mgt/fac_usrtab.asp",
"xxxxxx" : "appl/mgt/fac_widget.asp",
"xxxxxx" : "appl/mgt/faq_kenmerk.asp",
"xxxxxx" : "appl/mgt/fin_btwtabel.asp",
"xxxxxx" : "appl/mgt/fin_kenmerk.asp",
"xxxxxx" : "appl/mgt/fin_verkoopfactuur.asp",
"xxxxxx" : "appl/mgt/generic_prs_perslid.asp",
"xxxxxx" : "appl/mgt/ins_controlemode.asp",
"xxxxxx" : "appl/mgt/ins_discipline.asp",
"xxxxxx" : "appl/mgt/ins_kenmerk.asp",
"xxxxxx" : "appl/mgt/ins_srtcontrole.asp",
"xxxxxx" : "appl/mgt/ins_srtgroep.asp",
"xxxxxx" : "appl/mgt/ins_srtkenmerk.asp",
"xxxxxx" : "appl/mgt/ins_tab_discipline.asp",
"xxxxxx" : "appl/mgt/mgt_generic.asp",
"xxxxxx" : "appl/mgt/mld_afmeldtekst.asp",
"xxxxxx" : "appl/mgt/mld_behandelgroep.asp",
"xxxxxx" : "appl/mgt/mld_dienstniveau.asp",
"issuedisciplines" : "appl/mgt/mld_discipline.asp",
"xxxxxx" : "appl/mgt/mld_impropdr.asp",
"xxxxxx" : "appl/mgt/mld_kenmerk.asp",
"expenses" : "appl/mgt/mld_kosten.asp",
"callsources" : "appl/mgt/mld_meldbron.asp",
"xxxxxx" : "appl/mgt/mld_srtdiscipline.asp",
"xxxxxx" : "appl/mgt/mld_srtkenmerk.asp",
"xxxxxx" : "appl/mgt/mld_stdmelding_groep.asp",
"xxxxxx" : "appl/mgt/mld_typeopdr.asp",
"daysoff" : "appl/mgt/mld_vrije_dagen.asp",
"xxxxxx" : "appl/mgt/mld_workflow.asp",
"xxxxxx" : "appl/mgt/mld_workflowstep.asp",
"xxxxxx" : "appl/mgt/mld_workflow_expression.asp",
"xxxxxx" : "appl/mgt/mrk_discipline.asp",
"xxxxxx" : "appl/mgt/prs_dienst.asp",
"xxxxxx" : "appl/mgt/prs_kenmerk.asp",
"xxxxxx" : "appl/mgt/prs_kostencombinatie.asp",
"xxxxxx" : "appl/mgt/prs_kostensoort.asp",
"xxxxxx" : "appl/mgt/prs_kostensoortgrp.asp",
"xxxxxx" : "appl/mgt/prs_perslid.asp",
"xxxxxx" : "appl/mgt/prs_relatietype.asp",
"functions" : "appl/mgt/prs_srtperslid.asp",
"xxxxxx" : "appl/mgt/prs_staffel.asp",
"xxxxxx" : "appl/mgt/res_activiteit.asp",
"xxxxxx" : "appl/mgt/res_artikel.asp",
"xxxxxx" : "appl/mgt/res_cyclus.asp",
"xxxxxx" : "appl/mgt/res_deel.asp",
"xxxxxx" : "appl/mgt/res_discipline.asp",
"xxxxxx" : "appl/mgt/res_kenmerk.asp",
"xxxxxx" : "appl/mgt/res_opstelling.asp",
"xxxxxx" : "appl/mgt/res_ruimte.asp",
"xxxxxx" : "appl/mgt/res_srtactiviteit.asp",
"articlescopes" : "appl/mgt/res_srtartikel_onrgoed.asp",
"xxxxxx" : "appl/mgt/res_srtkenmerk.asp",
"xxxxxx" : "appl/mgt/user_tables.asp",
"xxxxxx" : "appl/mgt/workflow_graph.asp",
"xxxxxx" : "appl/mgt/workflow_graph_png.asp",
"xxxxxx" : "appl/mgt/workflow_overview.asp"
}
function api2_dispatch(api2_name)
{
if (api2_name in api2_mapper)
return api2_mapper[api2_name];
if (!api2_name.match(/[^a-z0-9\_]/i)) // Safe: alleen letters, cijfer en _ in filenaam
{
var fso = Server.CreateObject("Scripting.FileSystemObject");
var fullname = "appl/api2/api_" + api2_name + ".asp"
if (fso.FileExists(Server.MapPath(fullname)))
return fullname;
}
}
// FAC_LCL('lcl_rap_expression', 'SQL expressie', 'SQL expression', 'SQL-Ausdruck', 'Expressie SQL')
%>