FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Groups_aro_map_Model Class Reference
Inheritance diagram for Groups_aro_map_Model:
ORM

Public Member Functions

 has_access ($user_id, $aco_value, $axo_section_value, $axo_value)
 Check access of user to part of system.
 groups_aro_map_exists ($group_id, $aro_id)
 Checks if aro map row exists.
 detete_row ($group_id, $aro_id)
 Deletes user wights from diven group.
 exist_row ($group_id, $aro_id)
 Check if users is in given group.
 count_rows_by_group_id ($group_id)
 Counts number of users in given group.
 get_all_users_by_group_id ($group_id)
 Function to get all users belongs to group.

Protected Attributes

 $table_names_plural = FALSE

Member Function Documentation

Groups_aro_map_Model::count_rows_by_group_id (   $group_id)

Counts number of users in given group.

Parameters
integer$group_id
Returns
integer
Groups_aro_map_Model::detete_row (   $group_id,
  $aro_id 
)

Deletes user wights from diven group.

Parameters
integer$group_idGroup ID
integer$aro_idUser ID
Groups_aro_map_Model::exist_row (   $group_id,
  $aro_id 
)

Check if users is in given group.

Parameters
integer$group_idGroup ID
integer$aro_idUser ID
Groups_aro_map_Model::get_all_users_by_group_id (   $group_id)

Function to get all users belongs to group.

Author
Michal Kliment
Parameters
int$group_id
Returns
Mysql_Result object
Groups_aro_map_Model::groups_aro_map_exists (   $group_id,
  $aro_id 
)

Checks if aro map row exists.

Author
Ondřej Fibich
Parameters
integer$group_idARO group ID
integer$aro_idUser ID
Returns
boolean true if exists false otherwise
Groups_aro_map_Model::has_access (   $user_id,
  $aco_value,
  $axo_section_value,
  $axo_value 
)

Check access of user to part of system.

Be wery carefull with editing of this method, whole system can be damaged by impropriate edit!

Author
Ondřej Fibich array $cache Cache of access array $cache_aro_user Cache of ACL parent tree array $cache_aro_hierarchy Cache of ACL parent tree
Parameters
integer$user_idUser to check access
string$aco_valueACO value - action (view_all, new_own, ...)
string$axo_section_valueAXO section value - Controller name
string$axo_valueAXO value - part of Controller
Returns
boolean Has this user access to this part of system?

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