From 472dd21a7bc60147afff7bf100bbb6c9f339d0fc Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Sat, 23 Jan 2010 20:03:27 +0000
Subject: Added alpha, and sha1 string types to random_string() in the String
Helper.
---
user_guide/changelog.html | 1 +
user_guide/helpers/string_helper.html | 14 ++++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
(limited to 'user_guide')
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index b8601ab3a..4214a0de5 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -86,6 +86,7 @@ SVN Revision:
Modified the second parameter of directory_map() in the Directory Helper to accept an integer to specify recursion depth.
Modified delete_files() in the File Helper to return FALSE on failure.
Added an optional second parameter to byte_format() in the Number Helper to allow for decimal precision.
+ Added alpha, and sha1 string types to random_string() in the String Helper.
Other Changes
diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html
index 36fa40f98..b799390c3 100644
--- a/user_guide/helpers/string_helper.html
+++ b/user_guide/helpers/string_helper.html
@@ -74,13 +74,15 @@ String Helper
The first parameter specifies the type of string, the second parameter specifies the length. The following choices are available:
-
+ alpha, alunum, numeric, nozero, unique, md5, encrypt and sha1
-- alnum: Alpha-numeric string with lower and uppercase characters.
-- numeric: Numeric string.
-- nozero: Numeric string with no zeros.
-- unique: Encrypted with MD5 and uniqid(). Note: The length parameter is not available for this type.
-Returns a fixed length 32 character string.
+ - alpha: A string with lower and uppercase letters only.
+ - alnum: Alpha-numeric string with lower and uppercase characters.
+ - numeric: Numeric string.
+ - nozero: Numeric string with no zeros.
+ - unique: Encrypted with MD5 and uniqid(). Note: The length parameter is not available for this type.
+ Returns a fixed length 32 character string.
+ - sha1: An encrypted random number based on do_hash() from the security helper.
Usage example:
--
cgit v1.2.3-24-g4f1b