Class Identifier

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

Namespace: Concrete\Core\Utility\Service
Package: Helpers\Validation
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at src/Utility/Service/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 string
# generate( string $table, string $key, integer $length = 12, boolean $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 )