Profile __construct(
$p_id
)
|
|
Parameters:
API Tags:
void addAttribute(
string
$attr_name, string
$attr_value, int
$eap_type
)
|
|
adds an attribute to this profile
Parameters:
string |
$attr_name: |
|
string |
$attr_value: |
|
int |
$eap_type: |
|
API Tags:
void addSupportedEapMethod(
array
$type, int
$preference
)
|
|
register new supported EAP method for this profile
Parameters:
array |
$type: |
The EAP Type, as defined in class EAP |
int |
$preference: |
preference of this EAP Type. If a preference value is re-used, the order of EAP types of the same preference level is undefined. |
API Tags:
array beginFlushAttributes(
$eap_type
)
|
|
deletes all attributes in this profile except the _file ones, these are reported as array
Parameters:
API Tags:
Return: | list of row id's of file-based attributes which weren't deleted |
Access: | public |
void commitFlushAttributes(
array
$tobedeleted
)
|
|
after a beginFlushAttributes, deletes all attributes which are in the tobedeleted array
Parameters:
array |
$tobedeleted: |
array of database rows which are to be deleted |
API Tags:
deletes the profile from database and uninstantiates itself
API Tags:
void flushAttributes(
$eap_type
)
|
|
Parameters:
API Tags:
void flushSupportedEapMethods(
)
|
|
removes all supported EAP methods
API Tags:
void getAnonymousIDSupport(
)
|
|
returns FALSE if anonymous outer ID support if disabled, or the realm if it is enabled
API Tags:
array getAttributes(
[
$eapmethod = 0]
)
|
|
getAttibutes() returnes an array of attributes, including options (as an array) if no argument is given, only the profile-wide options are returned
Parameters:
API Tags:
void getCollapsedAttributes(
)
|
|
API Tags:
void getEapMethodsinOrderOfPreference(
)
|
|
API Tags:
mixed isBlacklisted(
$eaptype,
$device
)
|
|
Checks whether a combination of EAP type and device should be served, or rather redirected
Parameters:
API Tags:
Return: | FALSE if the combination is not blacklisted, a string with the redirection URL if so |
Access: | public |
void isEapTypeDefinitionComplete(
$eaptype
)
|
|
Parameters:
API Tags:
bool registerBlacklist(
string
$targetURL, [EAP
$eaptype = 0], [string
$device = 0]
)
|
|
registers that a combination of device type and EAP method in this profile should NOT be served by CAT A redirect URL needs to be given to send the user to
Parameters:
EAP |
$eaptype: |
if omitted, will blacklist ALL EAP types for this device |
string |
$device: |
if omitted, will blacklist the EAP type for all devices |
string |
$targetURL: |
|
API Tags:
Return: | whether or not the operation succeeded. The only reason for failure is if a superset rule exists already. |
Access: | public |
void setAnonymousIDSupport(
boolean
$shallwe, [string
$realm = 0]
)
|
|
toggle anonID support
Parameters:
boolean |
$shallwe: |
|
string |
$realm: |
|
API Tags:
void unregisterBlacklist(
[EAP
$eaptype = 0], [string
$device = 0]
)
|
|
Deletes a previously set blacklist rule for EAP types and/or devices in this profile, including all more specific rules
Parameters:
EAP |
$eaptype: |
if omitted, will lift blacklist for ALL EAP types for this device |
string |
$device: |
if omitted, will lift blacklist of the EAP type for all devices |
API Tags: