package Gems
subpackage User
copyright Copyright (c) 2012 Erasmus MC
license New BSD License
since Class available since version 1.5.3

 Methods

__construct()

__construct(\Gems_User_Validate_GetUserInterface $userSource, \Zend_Translate $translate) 

Parameters

$userSource

\Gems_User_Validate_GetUserInterface

The source for the user

$translate

\Zend_Translate

getMessages()

getMessages() 

Returns true if and only if $value meets the validation requirements

isValid(mixed $value, $context = array()) : boolean

If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.

Parameters

$value

mixed

$context

Exceptions

\Zend_Validate_Exception If validation of $value is impossible

Returns

boolean

 Properties

 

The error message

$_message : string

Default

 

$_userSource

$_userSource : \Gems_User_Validate_GetUserInterface

Default

 

$translate

$translate : \Zend_Translate

Default