Documentation
checkField
usage
$security->checkField ( string moduleName , string fieldName [, string requiredPermission = 'W' ] )
paramètres
moduleName: the name of the module which contains the field
fieldName: the name of the field
requiredPermission: whether the field should be readable(R) or writable (W).
retourne
throws a SusheeSecurityException if the user is not authorized.
Checks if the user is authorized to read or write the field on this type of object.
exemples
include_once("../Kernel/common/security.class.php");
try{
$security = new SusheeSecurity();
$security->checkField('contact','Notes');
}catch( SusheeSecurityException $E ){
exit( 'Warning : '.$E->getMessage() );
}