Files
Facilitor/APPL/API2/model_about.inc
Jos Groot Lipman 071c755eb8 FSN#39750 Model 'about' ondersteuning
svn path=/Website/trunk/; revision=33657
2017-05-02 12:36:17 +00:00

40 lines
1.3 KiB
PHP

<% /*
$Revision$
$Id$
File: model_about.inc
Description: about model.
Parameters:
Context: Voor een App kan dit genoeg informatie zijn om:
- Te weten of je tegen deze FACILITOR-versie kunt en wilt draaien
- Welke naam je voor de applicatie moet gebruiken als je hem op
het homescreen plaatst
Notes: Levert wat algemene informatie over FACILITOR op
*/
%>
<%
function model_about()
{
this.table = "about";
this.primary = "id";
this.records_name = "about";
this.record_name = "api";
this.fields = { "version" : { typ: "varchar", val: FCLTVersion },
"customer" : { typ: "varchar", val: customerId },
// moet apart model_session zijn ?"person" : { typ: "key", val: user_key, foreign: "PRS_PERSLID" }, // Waarom werkt de foreign niet?
"applicationname": { typ: "varchar", val: L("lcl_facilitor_appl") }
};
this.REST_GET = function _GET(params)
{
var about_data = {};
for (var fld in this.fields)
about_data[fld] = this.fields[fld].val;
return [about_data]; // Array, compatible met alle andere API2-GET functies
}
}
%>