diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-22 08:21:32 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-22 08:21:32 +0100 |
commit | 12f9cc8fc102389bd232f35921b4bd6c4daa9c31 (patch) | |
tree | 853a9769a6a15be397032a4844aa03c0326463e4 /user_guide/libraries/validation.html | |
parent | da9ee1a658d03c4dbfc64d658e3ab5205550e3c7 (diff) |
Changed "numeric" to use is_numeric() and added an "integer" rule into the Validation library.
Diffstat (limited to 'user_guide/libraries/validation.html')
-rw-r--r-- | user_guide/libraries/validation.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html index c2b9b9647..f9cac856b 100644 --- a/user_guide/libraries/validation.html +++ b/user_guide/libraries/validation.html @@ -576,11 +576,18 @@ For example, your "username" error will be available at:<br /><dfn>$this->valida <td class="td">No</td>
<td class="td">Returns FALSE if the form element contains anything other than alpha-numeric characters, underscores or dashes.</td>
<td class="td"> </td>
-</tr><tr>
+</tr>
+<tr>
+ <td class="td"><strong>numeric</strong></td>
+ <td class="td">No</td>
+ <td class="td">Returns FALSE if the form element contains anything other than numeric characters.</td>
+ <td class="td"> </td>
+</tr>
+<tr>
-<td class="td"><strong>numeric</strong></td>
+<td class="td"><strong>integer</strong></td>
<td class="td">No</td>
-<td class="td">Returns FALSE if the form element contains anything other than numeric characters.</td>
+<td class="td">Returns FALSE if the form element contains anything other than an integer.</td>
<td class="td"> </td>
</tr><tr>
@@ -595,7 +602,6 @@ For example, your "username" error will be available at:<br /><dfn>$this->valida <td class="td">Returns FALSE if the supplied IP is not valid.</td>
<td class="td"> </td>
</tr>
-
</table>
<p><strong>Note:</strong> These rules can also be called as discreet functions. For example:</p>
|