This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class ConcreteValidationHelper

Package: Helpers
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at helpers/concrete/validation.php

Methods summary

public boolean
# isUniqueUsername( string $uName )

Checks whether a passed username is unique or if a user of this name already exists

public boolean
# isUniqueEmail( string $uEmail )

Checks whether a passed email address is unique

public
# password( $pass )

Returns true if this is a valid password.

public boolean
# username( $username )

Returns true if this is a valid username. Valid usernames can only contain letters, numbers, dots (only in the middle), underscores (only in the middle) and optionally single spaces