Files
Facilitor/APPL/API2/model_fac_profiel.inc
Jos Groot Lipman b24562d505 FSN#40405 "limit" is reserved en mag niet gebruikt worden voor veldnamen
svn path=/Website/trunk/; revision=33715
2017-05-08 10:58:32 +00:00

78 lines
2.2 KiB
PHP

<% /*
$Revision$
$Id$
File: model_fac_profiel.inc
Description: Vanuit CodeCharge gegenereerd model voor fac_profiel
Context:
Notes:
*/
%>
<!-- #include file="../api2/model_fac_profielwaarde.inc" -->
<%
function model_fac_profiel()
{
this.records_name = "profiles";
this.record_name = "profile";
this.table = "fac_profiel";
this.audit = { // Parameters voor fac_audit.
"childtable": "fac_profielwaarde",
"childaudit": {"sql": "SELECT fac_profielwaarde_key"
+ " FROM fac_profielwaarde"
+ " WHERE fac_profiel_key IN ({0})",
"key": "fac_profielwaarde_key",
"sqlget": "SELECT x.fac_profiel_key"
+ " FROM fac_profielwaarde x"
+ " WHERE x.fac_profielwaarde_key = {0}"
}
};
this.primary = "fac_profiel_key";
this.autfunction = "WEB_FINMSU";
this.record_title = L("fac_profiel");
this.records_title = L("fac_profiel_m");
this.fields = {
"id": {
"dbs": "fac_profiel_key",
"label": L("lcl_key"),
"typ": "key",
"required": true,
"filter": "exact",
"seq": "fac_s_fac_profiel_key"
},
"name": {
"dbs": "fac_profiel_omschrijving",
"label": L("fac_profiel_omschrijving"),
"typ": "varchar",
"required": true,
"translate": true,
"filter": "like"
},
"profilelimit": { // "limit" is een reserved naam in API2
"dbs": "fac_profiel_limiet",
"label": L("fac_profiel_limiet"),
"typ": "number"
}
};
this.includes = {
"profilevalues": {
"model": new model_fac_profielwaarde(),
"joinfield": "profile",
"enable_update": true,
"multiadd": "catalog"
}
};
this.REST_GET = generic_REST_GET(this);
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
%>