Files
Facilitor/APPL/API2/model_aut_sp_map.inc
Jos Groot Lipman d0d2d5dfa3 FSN#41580 FACILITOR ook als identity provider
svn path=/Website/trunk/; revision=34869
2017-08-09 10:35:17 +00:00

72 lines
2.1 KiB
PHP

<% /*
$Revision$
$Id$
File: model_aut_sp_map.inc
Description: Door sp 'released attributes'
Notes:
*/
function model_aut_sp_map(params)
{
params = params || {};
this.records_name = "spmappings";
this.record_name = "spmapping";
this.table = "aut_sp_map";
this.primary = "aut_sp_map_key";
this.autfunction = params.internal?false:"WEB_FACTAB";
this.record_title = L("aut_sp_map");
this.records_title = L("aut_sp_map_m");
this.fields = {
"id": {
"dbs": "aut_sp_map_key",
"label": L("lcl_key"),
"typ": "key",
"seq": "fac_s_aut_sp_map_key"
},
"serviceprovider": {
"dbs": "aut_sp_key",
"label": L("aut_sp"),
"typ": "key",
"hidden_fld": true,
"required": true
},
"name": {
"dbs": "aut_sp_map_from",
"label": L("aut_sp_map_from"),
"typ": "key",
"required": true,
"LOV": "1;" + L("lcl_prs_person_login")
+ ";2;" + L("lcl_prs_person_achternaam")
+ ";3;" + L("lcl_prs_person_voornaam")
+ ";4;" + L("lcl_prs_person_email")
+ ";5;" + L("lcl_prs_organisatie")
+ ";6;" + L("lcl_account")
+ ";7;" + L("lcl_prs_person_function")
+ ";8;" + L("lcl_lcl_taal")
+ ";100;" + L("lcl_workplace")
+ ";101;" + L("fac_groeprechten_m")
},
"to": {
"dbs": "aut_sp_map_to",
"label": L("aut_sp_map_to"),
"typ": "varchar",
"required": true
}
}
this.edit = {
"modal": true
};
this.list = {
"columns": ["name", "to"]
};
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);
}
%>