Properties

$nomtable

$nomtable

$dao

$dao

$nomtablevolunteer

$nomtablevolunteer

$tablescope

$tablescope

$tablelevel

$tablelevel

$IdSession

$IdSession

$IdName

$IdName

$_instance_flag

$_instance_flag

Methods

__construct()

__construct()

By default it will be considerated that we are building a "rights"

__destruct()

__destruct()

hasFlag()

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

Parameters

$Name
$_Scope
$OptionalIdMember

hasRight()

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

Parameters

$Name
$_Scope
$OptionalIdMember

hasRightAny()

hasRightAny() : \true,

Checks, if the logged on member has any right by searching her in the table $table.volunteers

Returns

\true, —

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

rightScope()

rightScope( $Name,  $Scope)

Parameters

$Name
$Scope

flagScope()

flagScope( $Name,  $Scope)

Parameters

$Name
$Scope

TheScope()

TheScope( $Name,  $Scope)

Parameters

$Name
$Scope

get()

get() : \PApps

singleton getter

Returns

\PApps

initialize()

initialize( $nomdetable)

Parameters

$nomdetable