library/Dot/Validate/User.php

Properties

Description

DotBoost Technologies Inc.

DotKernel Application Framework


Classes

Dot_Validate_User

Properties

 
No 
No 

Description

Validate User

Methods

__construct, _callFilter, _getUserBy, _validateUnique, getData, getError, isValid,

__construct( array   $options = array, ) : Dot_Validate

Description

Constructor

Arguments

Name Type Description Default
$options array [optional] array

Return value

Type Description
Dot_Validate

Tags

Name Description
access public

_callFilter( Zend_Validate   $validator, array   $values, ) : void

Description

Call filter method from DotFilter

Arguments

Name Type Description Default
$validator Zend_Validate
$values array

Return value

Type Description
void

Tags

Name Description
access private

_getUserBy( string   $field, string   $value, ) : array

Description

Get admin by field

Arguments

Name Type Description Default
$field string
$value string

Return value

Type Description
array

Tags

Name Description
access public

_validateUnique( string   $field, string   $value, ) : array

Description

Check if user already exists - email, username, and return error

Arguments

Name Type Description Default
$field string
$value string

Return value

Type Description
array

Tags

Name Description
access private

getData( ) : array

Description

Get valid data

Return value

Type Description
array

Tags

Name Description
access public

getError( ) : array

Description

Get errors encounter on validation

Return value

Type Description
array

Tags

Name Description
access public

isValid( ) : bool

Description

Check if data is valid

Return value

Type Description
bool

Tags

Name Description
access public

Properties

$_data, $_error, $_options,

  private  $_data = array

Valid data after validationarray


  private  $_error = array

Errors found on validationarray


  private  $_options = array

Validate user options Is an array with the following keys - who: string - for which type of user the validation is made (user, admin, ...) - action: string - from which action is called the validation(login, add, update, activate, ...) - values: array - what should validate - userId: integer - used for checking the uniqueness of the user(by username or email)array


Documentation was generated by DocBlox.

Packages

  • Admin
    • Admin
      Admin Model Here are all the actions related to the user
    • Admin_View
      Admin View Class class that prepare output related to User controller
    • System
      System Model Here are all the actions related to the system settings
    • System_View
      System View Class class that prepare output related to User controller
    • User
      User Model Here are all the actions related to the user
    • User_View
      User View Class class that prepare output related to User controller
    • View
      Admin View abstract over the Dot_Template class
  • DotKernel
    • DotLibrary
    • Frontend
      • Page
        Page Model Dummy class, is not doing anything
      • Page
        Page Model Dummy class, is not doing anything yet
      • Page_View
        Page View Class functions that prepare output related to Page controller
      • User
        User Model Here are all the actions related to the user
      • User_View
        User View Class class that prepare output related to User controller
      • View
        View Model abstract over the Dot_Template class
    • Mobile
      • Page_View
        Page View Class functions that prepare output related to Page controller
      • View
        View Model abstract over the Dot_Template class
    • Rss
      • Sample
        Sample Model Here are all the actions related to the Sample
      • Sample_View
        Sample View Class
      • View
        View class - used for outputting rss content