Identifier
class Identifier (View source)
A helper that allows the creation of unique strings, for use when creating hashes, identifiers.
\@package Helpers
Methods
Like generate() below, but simply appends an ever increasing number to what you provide until it comes back as not found.
Generates a unique identifier for an item in a database table. Used, among other places, in generating User hashes for email validation.
Generate a cryptographically secure random string
No description
Details
        
                            
    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.
        
                            string
    generate(string $table, string $key, int $length = 12, bool $lowercase = false)
        
    
    Generates a unique identifier for an item in a database table. Used, among other places, in generating User hashes for email validation.
        
                            string
    getString(int $length = 12)
        
    
    Generate a cryptographically secure random string
        
                            
    deleteKey($table, $keyCol, $uHash)
        
    
    No description