Files
Facilitor/APPL/API2/model_about.inc
Jos Groot Lipman 4b5d6e07b2 FSN#39750 Model 'about' ondersteuning ook url tonen
svn path=/Website/branches/v2017.1/; revision=34175
2017-06-08 09:56:35 +00:00

41 lines
1.4 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") },
"url" : { typ: "varchar", val: HTTP.urlzelf() }
};
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
}
}
%>