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

Class: User

Source Location: /DotKernel/admin/User.php

Class Overview


User Model


Author(s):

Methods



Class Details

[line 20]
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 26]

User __construct( )

Constructor

Constructor




Tags:

access:  public


[ Top ]

method activateUser [line 221]

void activateUser( int $id, int $isActive)

Activate/Inactivate user account

Activate/Inactivate user account




Tags:

access:  public


Parameters:

int   $id   - user ID
int   $isActive  

[ Top ]

method addUser [line 74]

void addUser( array $data)

Add new user

Add new user




Tags:

access:  public


Parameters:

array   $data  

[ Top ]

method deleteUser [line 97]

void deleteUser( int $id)

Delete user

Delete user




Tags:

access:  public


Parameters:

int   $id  

[ Top ]

method getLogins [line 232]

array(array(), getLogins( int $id, [int $page = 1])

Get admin users logins archive list

Get admin users logins archive list




Tags:

return:  Zend_Paginator_Adapter())
access:  public


Parameters:

int   $id  
int   $page   [optional]

[ Top ]

method getUserBy [line 41]

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

Get user by field

Get user by field




Tags:

access:  public


Parameters:

string   $field  
string   $value  

[ Top ]

method getUserList [line 56]

array(array(), getUserList( [int $page = 1])

Get user list

Get user list




Tags:

return:  Zend_Paginator_Adapter())
access:  public


Parameters:

int   $page   [optional]

[ Top ]

method sendPassword [line 107]

void sendPassword( int $id)

Send forgot password to user

Send forgot password to user




Tags:

access:  public


Parameters:

int   $id   id

[ Top ]

method updateUser [line 86]

void updateUser( array $data)

Update user

Update user




Tags:

access:  public


Parameters:

array   $data  

[ Top ]

method validateUser [line 150]

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
  • enum - validate with Zend_Validate_InArray(explode(',', $values['enum'][0])) 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:46 +0000 by phpDocumentor 1.4.3