summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-08-21 00:12:10 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-08-21 00:12:10 +0200
commit38f69169d717d06ca2d1499fa8037c2adc2a1afe (patch)
tree73f02fe69351c2044955629f4902f5080a5ccd9d /user_guide/libraries
parentd6b0649f9815e9aefe1f2b6cd3b93dcca53cda80 (diff)
Diffstat (limited to 'user_guide/libraries')
-rw-r--r--user_guide/libraries/validation.html49
1 files changed, 35 insertions, 14 deletions
diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html
index e05cf36d8..8b36e09ba 100644
--- a/user_guide/libraries/validation.html
+++ b/user_guide/libraries/validation.html
@@ -576,43 +576,64 @@ For example, your "username" error will be available at:<br /><dfn>$this->valida
<td class="td">Returns FALSE if the form element contains anything other than alpha-numeric characters, underscores or dashes.</td>
<td class="td">&nbsp;</td>
</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">&nbsp;</td>
+<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">&nbsp;</td>
</tr>
-<tr>
+<tr>
<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 an integer.</td>
<td class="td">&nbsp;</td>
-</tr><tr>
+</tr>
+<tr>
+<td class="td"><strong>is_natural</strong></td>
+<td class="td">No</td>
+<td class="td">Returns FALSE if the form element contains anything other than a natural number: 0, 1, 2, 3, etc.</td>
+<td class="td">&nbsp;</td>
+</tr>
+
+<tr>
+<td class="td"><strong>is_natural_no_zero</strong></td>
+<td class="td">No</td>
+<td class="td">Returns FALSE if the form element contains anything other than a natural number, but not zero: 1, 2, 3, etc.</td>
+<td class="td">&nbsp;</td>
+</tr>
+
+<tr>
<td class="td"><strong>valid_email</strong></td>
<td class="td">No</td>
<td class="td">Returns FALSE if the form element does not contain a valid email address.</td>
<td class="td">&nbsp;</td>
</tr>
+
<tr>
- <td class="td"><strong>valid_emails</strong></td>
- <td class="td">No</td>
- <td class="td">Returns FALSE if any value provided in a comma separated list is not a valid email.</td>
- <td class="td">&nbsp;</td>
+<td class="td"><strong>valid_emails</strong></td>
+<td class="td">No</td>
+<td class="td">Returns FALSE if any value provided in a comma separated list is not a valid email.</td>
+<td class="td">&nbsp;</td>
</tr>
+
<tr>
<td class="td"><strong>valid_ip</strong></td>
<td class="td">No</td>
<td class="td">Returns FALSE if the supplied IP is not valid.</td>
<td class="td">&nbsp;</td>
</tr>
+
<tr>
- <td class="td"><strong>valid_base64</strong></td>
- <td class="td">No</td>
- <td class="td">Returns FALSE if the supplied string contains anything other than valid Base64 characters.</td>
- <td class="td">&nbsp;</td>
+<td class="td"><strong>valid_base64</strong></td>
+<td class="td">No</td>
+<td class="td">Returns FALSE if the supplied string contains anything other than valid Base64 characters.</td>
+<td class="td">&nbsp;</td>
</tr>
+
+
</table>
<p><strong>Note:</strong> These rules can also be called as discrete functions. For example:</p>