|
| GetGroups () |
|
| SuppressUser ($uid, $nopost=false) |
|
| PostSelect ($id) |
|
| preInsert () |
|
| PostDelete ($uid=0) |
|
| PostInsert () |
|
| setSyncAccount ($syncAccount) |
|
| resetAccountMemberOf ($synchro=false) |
|
| GetAllGroups () |
|
| getChildsGroupId ($pgid) |
|
| getParentsGroupId ($pgid, $level=0) |
|
| getDirectParentsGroupId ($pgid="", &$uasid) |
|
| __construct ($dbaccess= '', $id= '', $res= '', $dbid=0) |
|
| Select ($id) |
|
| getValues () |
|
| affectColumn ($fields, $reset=true) |
|
| affect ($array, $more=false, $reset=true) |
|
| isAffected () |
|
| Complete () |
|
| preInsert () |
|
| postInsert () |
|
| preUpdate () |
|
| postUpdate () |
|
| preDelete () |
|
| postDelete () |
|
| preSelect ($id) |
|
| postSelect ($id) |
|
| Add ($nopost=false, $nopre=false) |
|
| modify ($nopost=false, $sfields="", $nopre=false) |
|
| delete ($nopost=false) |
|
| Adds (&$tcopy, $nopost=false) |
|
| lw ($prop) |
|
| CloseConnect () |
|
| Create ($nopost=false) |
|
| postInit () |
|
| init_dbid () |
|
| exec_query ($sql, $lvl=0, $prepare=false) |
|
| numrows () |
|
| fetch_array ($c, $type=PGSQL_ASSOC) |
|
| update () |
|
| setError ($moreerr= '') |
|
| autoUpdate () |
|
| savePoint ($point) |
|
| lockPoint ($exclusiveLock, $exclusiveLockPrefix= '') |
|
| setMasterLock ($useLock) |
|
| rollbackPoint ($point) |
|
| commitPoint ($point) |
|
Definition at line 22 of file Class.Group.php.
get ascendant direct group and group of group
Definition at line 197 of file Class.Group.php.
getChildsGroupId |
( |
|
$pgid | ) |
|
get all child (descendant) group of this group
- Returns
- array id
Definition at line 212 of file Class.Group.php.
getDirectParentsGroupId |
( |
|
$pgid = "" , |
|
|
& |
$uasid |
|
) |
| |
get all parent (ascendant) group of this group
- Returns
- array id
Definition at line 258 of file Class.Group.php.
get groups of a user set groups attribute. This attribute containt id of group of a user
- Returns
- bool true if at least one group
Definition at line 55 of file Class.Group.php.
getParentsGroupId |
( |
|
$pgid, |
|
|
|
$level = 0 |
|
) |
| |
get all parent (ascendant) group of this group
- Returns
- array id
Definition at line 234 of file Class.Group.php.
resetAccountMemberOf |
( |
|
$synchro = false | ) |
|
recompute all memberof properties of user accounts
Definition at line 171 of file Class.Group.php.
setSyncAccount |
( |
|
$syncAccount | ) |
|
SuppressUser |
( |
|
$uid, |
|
|
|
$nopost = false |
|
) |
| |
suppress a user from the group
- Parameters
-
int | $uid | user identifier to suppress |
bool | $nopost | set to to true to not perform postDelete methods |
- Returns
- string error message
Definition at line 73 of file Class.Group.php.
Initial value:= array(
"iduser",
"idgroup"
)
Definition at line 24 of file Class.Group.php.
Initial value:= "
create table groups ( iduser int not null,
idgroup int not null);
create index groups_idx1 on groups(iduser);
create unique index groups_idx2 on groups(iduser,idgroup);
create trigger t_nogrouploop before insert or update on groups for each row execute procedure nogrouploop();"
Definition at line 35 of file Class.Group.php.
The documentation for this class was generated from the following file: