Frontend
[ class tree: Frontend ] [ index: Frontend ] [ all elements ]

Class: User

Source Location: /DotKernel/frontend/User.php

Class Overview


User Model


Author(s):

Methods



Class Details

[line 21]
User Model

User Model Here are all the actions related to the user




Tags:

author:  DotKernel Team <team@dotkernel.com>


[ Top ]


Class Methods


constructor __construct [line 28]

User __construct( )

Constructor

Constructor




Tags:

access:  public


[ Top ]

method addUser [line 85]

void addUser( array $data)

Add new user

Add new user




Tags:

access:  public


Parameters:

array   $data  

[ Top ]

method checkLogin [line 39]

array checkLogin( array $data)

Check to see if user can login

Check to see if user can login




Tags:

access:  public


Parameters:

array   $data  

[ Top ]

method forgotPassword [line 245]

void forgotPassword( string $email)

Send forgot password to user

Send forgot password to user




Tags:

access:  public


Parameters:

string   $email  

[ Top ]

method getUserBy [line 57]

array getUserBy( [string $field = ''], [string $value = ''])

Get user by field

Get user by field




Tags:

access:  public


Parameters:

string   $field  
string   $value  

[ Top ]

method getUserInfo [line 72]

array getUserInfo( int $id)

Get user info

Get user info




Tags:

access:  public


Parameters:

int   $id  

[ Top ]

method registerLogin [line 109]

void registerLogin( array $data)

Register logins data

Register logins data




Tags:

access:  public


Parameters:

array   $data  

[ Top ]

method updateUser [line 97]

void updateUser( array $data)

Update user

Update user




Tags:

access:  public


Parameters:

array   $data  

[ Top ]

method validateEmail [line 231]

array validateEmail( string $email)

Validate email user input

Validate email user input




Tags:

access:  public


Parameters:

string   $email  

[ Top ]

method validateLogin [line 121]

bool validateLogin( string $username, string $password, [string $send = 'off'])

Validate the data that comes from login form

Validate the data that comes from login form




Tags:

access:  public


Parameters:

string   $username  
string   $password  
string   $send   [optional] which is a control key

[ Top ]

method validateUser [line 170]

array validateUser( array $values)

Validate user input, add or update form $values is an array on multiple levels.

Validate user input, add or update form $values is an array on multiple levels. On first level, the key suggest what validation will be done.

  • details - only filter the input
  • username - validate with Zend_Validate_Alnum, Zend_Validate_StringLength and filter the input
  • email - validate with Zend_Validate_EmailAddress and filter the input
  • password - validate with Zend_Validate_StringLength and filter the input




Tags:

access:  public


Parameters:

array   $values  

[ Top ]


Documentation generated on Wed, 21 Jul 2010 07:34:45 +0000 by phpDocumentor 1.4.3