is an email of the user
static public isEmailForUser ( $users_id, $email ) : boolean | ||
$users_id | user ID | |
string email to check user ID | ||
Результат | boolean | is this email set for the user ? |
/** * Is the email set to the current user * * @param $email * * @return boolean is an email of the user **/ function isEmail($email) { if (!isset($this->fields['id'])) { return false; } return UserEmail::isEmailForUser($this->fields['id'], $email); }