Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
user Class Reference

User model class. More...

+ Inheritance diagram for user:
+ Collaboration diagram for user:

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

Definition at line 29 of file user.php.


Constructor & Destructor Documentation

user::__construct ( id)

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$optsassociative array of options (none for now)
Returns:
array user objects

Definition at line 50 of file user.php.

+ Here is the call graph for this function:

static user::getFromAuth ( user,
pwd 
) [static]

Get user object from username and password.

Parameters:
string$userusername
string$pwdpassword
Returns:
mixed user object or null if not found

Definition at line 69 of file user.php.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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