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

Public Member Functions

 is_deletable ($aro_group_id=NULL)
 Is given ARO group deletable? If no ARO group given, current (this) ARO group is checked.
 clean_group ($group_id=NULL)
 Cleans ARO group - deletes all ARO objects.
 count_childrens ($parent_id=NULL)
 Counts all childrens of given group.
 decrease ($lft, $decrease=2)
 Decreases lft and rgt values (to delete group)
 get_acls ($group_id=NULL)
 Returns all ACLs rule belongs to ARO group.
 get_all_values ()
 Gets all.
 get_aro_groups_by_fk_id ($fk_id, $type)
 Gets aro groups by fk_id and type.
 get_aros ($group_id=NULL)
 Returns all ARO objects belongs to given group.
 get_by_id ($id)
 Get all with ID.
 get_childrens_ranges ($parent_id=NULL)
 Returns info about ranges of children of group.
 get_parent ($group_id=NULL)
 Returns parent of given ARO group.
 get_parent_id_by_id ($id)
 Get parent id.
 get_traverz_tree ()
 Gets all by tree walk.
 increase ($rgt, $increase=2)
 Increases lft and rgt values (to insert new group)
 insert_aro ($aros=array(), $group_id=NULL)
 Inserts given AROs to given ARO group.

Static Public Member Functions

static get_groups ()
 Returns all ARO groups.
static count_parent ($id)
 Gets count of parents.

Public Attributes

const ALL = 21
const REGULAR_MEMBERS = 22
const REGISTERED_APPLICANTS = 23
const ENGINEERS = 26
const ADMINS = 32
const TELEPHONISTS = 44

Member Function Documentation

Aro_group_Model::clean_group (   $group_id = NULL)

Cleans ARO group - deletes all ARO objects.

Author
Michal Kliment
Parameters
integer$group_id
Aro_group_Model::count_childrens (   $parent_id = NULL)

Counts all childrens of given group.

Author
Michal Kliment
Parameters
integer$parent_id
Returns
integer
static Aro_group_Model::count_parent (   $id)
static

Gets count of parents.

Parameters
integer$id
Returns
integer
Aro_group_Model::decrease (   $lft,
  $decrease = 2 
)

Decreases lft and rgt values (to delete group)

Author
Michal Kliment
Parameters
type$lft
type$decrease
Aro_group_Model::get_acls (   $group_id = NULL)

Returns all ACLs rule belongs to ARO group.

Author
Michal Kliment
Parameters
type$group_id
Returns
type
Aro_group_Model::get_all_values ( )

Gets all.

Returns
Mysql_Result
Aro_group_Model::get_aro_groups_by_fk_id (   $fk_id,
  $type 
)

Gets aro groups by fk_id and type.

Returns
Mysql_Result
Aro_group_Model::get_aros (   $group_id = NULL)

Returns all ARO objects belongs to given group.

Author
Michal Kliment
Parameters
integer$group_id
Returns
MySQL Result
Aro_group_Model::get_by_id (   $id)

Get all with ID.

Parameters
integer$id
Returns
Mysql_Result
Aro_group_Model::get_childrens_ranges (   $parent_id = NULL)

Returns info about ranges of children of group.

Author
Michal Kliment
Parameters
integer$parent_id
Returns
MySQL Result
static Aro_group_Model::get_groups ( )
static

Returns all ARO groups.

Author
Michal Kliment
Returns
type
Aro_group_Model::get_parent (   $group_id = NULL)

Returns parent of given ARO group.

Author
Michal Kliment
Parameters
integer$group_id
Returns
MySQL Result
Aro_group_Model::get_parent_id_by_id (   $id)

Get parent id.

Parameters
integer$id
Returns
Mysql_Result
Aro_group_Model::get_traverz_tree ( )

Gets all by tree walk.

Returns
Mysql_Result
Aro_group_Model::increase (   $rgt,
  $increase = 2 
)

Increases lft and rgt values (to insert new group)

Author
Michal Kliment
Parameters
integer$rgt
integer$increase
Aro_group_Model::insert_aro (   $aros = array(),
  $group_id = NULL 
)

Inserts given AROs to given ARO group.

Author
Michal Kliment
Parameters
array$aros
integer$group_id
Aro_group_Model::is_deletable (   $aro_group_id = NULL)

Is given ARO group deletable? If no ARO group given, current (this) ARO group is checked.

Author
Ondřej Fibich
Parameters
integer$aro_group_id[optional]
Returns
boolean

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