40 lines
1.3 KiB
PHP
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
|
|
}
|
|
}
|
|
%> |