MkFramework
 All Data Structures Functions
Public Member Functions | Protected Attributes
plugin_gestionuser Class Reference

Public Member Functions

 purge ()
 
 allow ($action, $ressource)
 
 deny ($action, $ressource)
 
 can ($action, $ressource)
 

Protected Attributes

 $tabAllowDeny =array()
 

Detailed Description

plugin_gestionuser classe de gestion user

Author
Mika http://mkf.mkdevs.com/

Definition at line 23 of file plugin_gestionuser.php.

Member Function Documentation

allow (   $action,
  $ressource 
)

public

Returns
void
Parameters
string$actionaction qu'on autorise sur $ressource
string$ressourceressource l'action est autorise sur $ressource

Definition at line 53 of file plugin_gestionuser.php.

can (   $action,
  $ressource 
)

public

Returns
bool retourne true/false selon qu'on est autorise ou non a faire $action sur $ressource
Parameters
string$actionaction qu'on autorise sur $ressource
string$ressourceressource l'action est autorise sur $ressource

Definition at line 79 of file plugin_gestionuser.php.

Here is the call graph for this function:

deny (   $action,
  $ressource 
)

public

Returns
void
Parameters
string$actionaction qu'on n'autorise pas sur $ressource
string$ressourceressource l'action est n'autorise pas sur $ressource

Definition at line 66 of file plugin_gestionuser.php.

purge ( )

purge les permissions en session (appeler avant de reassigner de nouvelles permissions pour eviter la concatenation) public

Returns
void

Definition at line 42 of file plugin_gestionuser.php.


The documentation for this class was generated from the following file: