TABLEMAPPING = [IdP => institution_option, Profile => profile_option, FED => federation_option]
performs validation of user inputs
Federation( input, string|null owner = NULL) : \core\Federation
Is this a known Federation? Optionally, also check if the authenticated user is a federation admin of that federation
the ISO code of the federation
the authenticated username, optional
Profile( input, int|null idpIdentifier = NULL) : \core\AbstractProfile
Checks if the input refers to a known Profile. Optionally also takes an IdP identifier and then checks if the Profile belongs to the refernced IdP
the numeric ID of the Profile in the system
the numeric ID of the IdP in the system, optional
coordJsonEncoded( input) :
Is this a valid coordinate pair in JSON encoded representation?
the string to be checked: is this a serialised array with lat/lon keys in a valid number range?
returns $input if checks have passed; throws an Exception if something's wrong
boolean( input) :
This checks the state of a HTML GET/POST "boolean".
If not checked, no value is submitted at all; if checked, has the word "on". Anything else is a big error.
the string to test
TRUE if the input was "on". It is not possible in HTML to signal "off"