Documentation
checkFunction
usage
$security->checkFunction ( string appName , string functionName, string requiredValue )
paramètres
appName: the name of the application which contains the function (feature).
functionName: the name of the function
requiredValue: the value required for the security check to succeed
retourne
throws a SusheeSecurityException if the user is not authorized.
Checks whether the required value is set for the function in the security for this application. The values for the functions of an application are saved in the applicationkey, in the PERMISSIONS field
exemples
include_once("../Kernel/common/security.class.php");
try{
$security = new SusheeSecurity();
$security->checkFunction('ContactsApp','Password_Manager','yes');
}catch( SusheeSecurityException $E ){
exit( 'Warning : '.$E->getMessage() );
}