|
| SetLoginName ($loginDomain) |
|
| setLogin ($login, $domain) |
|
| setFid ($fid) |
|
| PreInsert () |
|
| PostInsert () |
|
| PostUpdate () |
|
| PreUpdate () |
|
| PostDelete () |
|
| CheckLogin ($login, $domain, $whatid) |
|
| SetUsers ($fid, $lname, $fname, $expires, $passdelay, $login, $status, $pwd1, $pwd2, $iddomain, $extmail) |
|
| SetGroups ($fid, $gname, $login, $iddomain) |
|
| GetExpires () |
|
| FreedomWhatUser () |
|
| computepass ($pass, &$passk) |
|
| checkpassword ($pass) |
|
| checkpass ($pass, $passk) |
|
| getMail () |
|
| PostInit () |
|
| GetUserList ($qtype="LIST", $start=0, $slice=0, $filteruser=false) |
|
| GetGroupList ($qtype="LIST") |
|
| GetUserAndGroupList ($qtype="LIST") |
|
| GetGroupsId () |
|
| GetRUsersList ($id, $r=array()) |
|
| GetUsersGroupList ($gid, $onlygroup=false) |
|
| getUserMembers () |
|
| isMember ($uid) |
|
| getGroupUserList ($qtype="LIST", $withgroup=false) |
|
| getUserToken ($expire=false, $oneshot=false, $context=array()) |
|
| setAdminHtpasswd ($admin_passwd) |
|
| __construct ($dbaccess= '', $id= '', $res= '', $dbid=0) |
|
| Select ($id) |
|
| getValues () |
|
| AffectColumn ($fields) |
|
| Affect ($array) |
|
| 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 () |
|
| savePoint ($point) |
|
| rollbackPoint ($point) |
|
| commitPoint ($point) |
|
Definition at line 32 of file Appmng/Class.User.php.
CheckLogin |
( |
|
$login, |
|
|
|
$domain, |
|
|
|
$whatid |
|
) |
| |
checkpass |
( |
|
$pass, |
|
|
|
$passk |
|
) |
| |
computepass |
( |
|
$pass, |
|
|
& |
$passk |
|
) |
| |
static getDisplayName |
( |
|
$uid | ) |
|
|
static |
return display name of a user
- Parameters
-
int | $uid | user identificator |
- Returns
- string firstname and lastname
Definition at line 284 of file Appmng/Class.User.php.
GetGroupList |
( |
|
$qtype = "LIST" | ) |
|
getGroupUserList |
( |
|
$qtype = "LIST" , |
|
|
|
$withgroup = false |
|
) |
| |
return mail adress
- Parameters
-
bool | $reinit | recompute adress from mail account |
- Returns
- string mail address empty if no mail
Definition at line 491 of file Appmng/Class.User.php.
GetRUsersList |
( |
|
$id, |
|
|
|
$r = array() |
|
) |
| |
for group :: get All user & groups ids in all descendant(recursive);
- Parameters
-
int | $id | group identificator |
- Returns
- array of user array
Definition at line 590 of file Appmng/Class.User.php.
GetUserAndGroupList |
( |
|
$qtype = "LIST" | ) |
|
GetUserList |
( |
|
$qtype = "LIST" , |
|
|
|
$start = 0 , |
|
|
|
$slice = 0 , |
|
|
|
$filteruser = false |
|
) |
| |
return all user members (recursive)
- Returns
- array of user values ["login"=>, "id"=>, "fid"=>,...)
Definition at line 637 of file Appmng/Class.User.php.
GetUsersGroupList |
( |
|
$gid, |
|
|
|
$onlygroup = false |
|
) |
| |
for group :: get All direct user & groups ids
- Parameters
-
int | $id | group identificator |
bool | $onlygroup | set to true if you want only child groups |
Definition at line 616 of file Appmng/Class.User.php.
getUserToken |
( |
|
$expire = false , |
|
|
|
$oneshot = false , |
|
|
|
$context = array() |
|
) |
| |
Get user token for open access
- Parameters
-
int | $expire | set expiration delay in seconds (false if nether expire) |
bool | $oneshot | set to true to use one token is consumed/deleted when used |
Definition at line 691 of file Appmng/Class.User.php.
setAdminHtpasswd |
( |
|
$admin_passwd | ) |
|
Set password for the admin account in the `admin' subdir
- Parameters
-
string | $admin_passwd | the password |
Definition at line 734 of file Appmng/Class.User.php.
affect user from its document id
- Parameters
-
- Returns
- boolean true if ok
Definition at line 154 of file Appmng/Class.User.php.
SetGroups |
( |
|
$fid, |
|
|
|
$gname, |
|
|
|
$login, |
|
|
|
$iddomain |
|
) |
| |
update user from FREEDOM IUSER document
- Parameters
-
int | $fid | document id |
string | $login | login |
int | $iddomain | mail domain identificator |
Definition at line 390 of file Appmng/Class.User.php.
setLogin |
( |
|
$login, |
|
|
|
$domain |
|
) |
| |
SetLoginName |
( |
|
$loginDomain | ) |
|
affect user from login name
- Parameters
-
- Returns
- boolean true if ok
Definition at line 90 of file Appmng/Class.User.php.
SetUsers |
( |
|
$fid, |
|
|
|
$lname, |
|
|
|
$fname, |
|
|
|
$expires, |
|
|
|
$passdelay, |
|
|
|
$login, |
|
|
|
$status, |
|
|
|
$pwd1, |
|
|
|
$pwd2, |
|
|
|
$iddomain, |
|
|
|
$extmail |
|
) |
| |
update user from IUSER document
- Parameters
-
int | $fid | document id |
string | $login | login |
int | $iddomain | mail domain identificator |
Definition at line 308 of file Appmng/Class.User.php.
Initial value:= array(
"id",
"iddomain",
"lastname",
"firstname",
"login",
"password",
"isgroup",
"expires",
"passdelay",
"status",
"mail",
"ntpasswordhash",
"lmpasswordhash",
"fid"
)
Definition at line 34 of file Appmng/Class.User.php.
Initial value:= "
create table users ( id int not null,
iddomain int not null,
primary key (id),
lastname text,
firstname text,
login text not null,
password varchar(30) not null,
isgroup char,
expires int,
passdelay int,
status char,
mail text,
ntpasswordhash text,
lmpasswordhash text,
fid int);
create index users_idx2 on users(lastname);
create index users_idx3 on users(login);
CREATE UNIQUE INDEX uni_users on users (login,iddomain);
create sequence seq_id_users start 10"
Definition at line 65 of file Appmng/Class.User.php.
The documentation for this class was generated from the following file: