$nomtable
$nomtable
$tableName : \MOD_right_flag
hasFlag( $Name, $_Scope, $OptionalIdMember)
return the FlagLevel if the members has the Flag $Name optional Scope value can be send if the Scope is set to All then Scope will always match if not, the sentence in Scope must be find in RScope The function will use a cache in session ($_SESSION['Param']->ReloadRightsAndFlags == 'Yes') is used to force Rights / Flags Reloading from scope beware to the "" which must exist in the mysal table but NOT in the $Scope parameter $OptionalIdMember allow to specify another member than the current one, in this case the cache is not used This function is just an allias of the hasRight
$Name | ||
$_Scope | ||
$OptionalIdMember |
hasRight( $Name, $_Scope, $OptionalIdMember)
return the RightLevel if the members has the Right $Name optional Scope value can be send if the Scope is set to All then Scope will always match if not, the sentence in Scope must be find in RScope The function will use a cache in session ($_SESSION['Param']->ReloadRightsAndFlags == 'Yes') is used to force Rights / Flags Reloading from scope beware to the "" which must exist in the mysal table but NOT in the $Scope parameter $OptionalIdMember allow to specify another member than the current one, in this case the cache is not used
$Name | ||
$_Scope | ||
$OptionalIdMember |
hasRightAny() : \true,
Checks, if the logged on member has any right by searching her in the table $table.volunteers
if the current user is logged on and exists in table $table.volunteers Improvment by JeanYves : if the member has not any right, a $_SESSION["hasRightAny"]="no" is set, this will allow for a faster test at next attempt