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
-
- Returns
- integer
Groups_aro_map_Model::detete_row |
( |
|
$group_id, |
|
|
|
$aro_id |
|
) |
| |
Deletes user wights from diven group.
- Parameters
-
integer | $group_id | Group ID |
integer | $aro_id | User ID |
Groups_aro_map_Model::exist_row |
( |
|
$group_id, |
|
|
|
$aro_id |
|
) |
| |
Check if users is in given group.
- Parameters
-
integer | $group_id | Group ID |
integer | $aro_id | User 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
-
- 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_id | ARO group ID |
integer | $aro_id | User 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_id | User to check access |
string | $aco_value | ACO value - action (view_all, new_own, ...) |
string | $axo_section_value | AXO section value - Controller name |
string | $axo_value | AXO 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: