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

ValidationIdentifierHelper

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

Methods summary

public
# 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

public
# 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

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