User model class.
More...
Public Member Functions |
| __construct ($id) |
| Constructs a user instance.
|
Static Public Member Functions |
static | get ($opts=array()) |
| Get all user objects.
|
static | getFromAuth ($user, $pwd) |
| Get user object from username and password.
|
Detailed Description
User model class.
Model fields:
- id int(11): primary key
- lastname varchar(255): user lastname
- firstname varchar(255): user firstname
- username varchar(20): user login name
- password varchar(50): user login password
- groups varchar(64): comma separated list of user groups
- Author:
- abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
- Version:
- 0.99
- Date:
- 2011-2012
- Copyright:
- Otto srl MIT License
Definition at line 29 of file user.php.
Constructor & Destructor Documentation
Constructs a user instance.
- Returns:
- user instance
Definition at line 36 of file user.php.
Member Function Documentation
static user::get |
( |
$ |
opts = array() | ) |
[static] |
Get all user objects.
- Parameters:
-
array | $opts | associative array of options (none for now) |
- Returns:
- array user objects
Definition at line 50 of file user.php.
Get user object from username and password.
- Parameters:
-
string | $user | username |
string | $pwd | password |
- Returns:
- mixed user object or null if not found
Definition at line 69 of file user.php.
The documentation for this class was generated from the following file: