ServerKeys Class
Description
Class that load the server keys and scopes list from the serverKeys.xml file.
Class Variables
- Array keys: List of keys ordered by scopes.
Methods
PUBLIC ServerKeys __construct([$file = "config/serverKeys.xml"])
ServerKeys class Constructor
- String file: file where the keys and scopes are defined
PUBLIC hasScope($scope): boolean
Function that returns TRUE if exist the scope send in the parameter.
- String scope: Scope of the request.
PUBLIC getKey($scope): void
Function that returns the key of the related scope send in the parameter.
- String scope: Scope of the request.
PRIVATE loadKeys($file): string
Auxiliar function that loads the keys and scopes from the file.
- String file: file where the keys are defined