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

Class Concrete5_Helper_Validation_Identifier

A helper that allows the creation of unique strings, for use when creating hashes, identifiers.

Direct known subclasses


Package: Helpers\Validation
Copyright: Copyright (c) 2003-2008 Concrete5. (
License: MIT License
Author: Andrew Embler
Located at core/helpers/validation/identifier.php

Methods summary

# generateFromBase( $string, $table, $key )

Like generate() below, but simply appends an ever increasing number to what you provide until it comes back as not found

# generate( string $table, string $key, integer $length = 12, $lowercase = false )

Generates a unique identifier for an item in a database table. Used, among other places, in generating User hashes for email validation

# getString( $length = 12 )
# deleteKey( $table, $keyCol, $uHash )