protected function generateIdentifier($prefix, $maxLength)
    {
        $hash = null;
        $dictionary = 'abcdefghijklmnopqrstuvwxyz0123456789';

        for ($i = 0; $i < ($maxLength - strlen($prefix)); $i++) {
            $hash .= $dictionary[mt_rand(0, strlen($dictionary) - 1)];
        }

        return $prefix.$hash;
    }
protected function generateIdentifier($prefix, $maxLength)
    {
        $hash = null;
        $dictionary = 'abcdefghijklmnopqrstuvwxyz0123456789';

        for ($i = 0; $i < ($maxLength - strlen($prefix)); $i++) {
            $hash .= $dictionary[mt_rand(0, strlen($dictionary) - 1)];
        }

        return $prefix.$hash;
    }
protected function generateIdentifier ( $ prefix , $ maxLength ) { $ hash = null ; $ dictionary = 'abcdefghijklmnopqrstuvwxyz0123456789' ; for ( $ i = 0 ; $ i < ( $ maxLength - strlen ( $ prefix ) ) ; $ i ++ ) { $ hash .= $ dictionary [ mt_rand ( 0 , strlen ( $ dictionary ) - 1 ) ] ; } return $ prefix . $ hash ; }
Generates a prefixed identifier.

@param string  $prefix    The identifier prefix.
@param integer $maxLength The identifier max length.

@return string The prefixed identifier.
Generates a prefixed identifier .