summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-22 08:21:32 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-22 08:21:32 +0100
commit12f9cc8fc102389bd232f35921b4bd6c4daa9c31 (patch)
tree853a9769a6a15be397032a4844aa03c0326463e4 /user_guide
parentda9ee1a658d03c4dbfc64d658e3ab5205550e3c7 (diff)
Changed "numeric" to use is_numeric() and added an "integer" rule into the Validation library.
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html7
-rw-r--r--user_guide/libraries/validation.html14
2 files changed, 14 insertions, 7 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 95be683d3..78861b44b 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -110,10 +110,11 @@ Change Log
<ul>
<li>Added Flashdata variables, session_id regeneration and configurable session update times to the <a href="./libraries/sessions.html">Session class.</a></li>
<li>Added a language entry for valid_ip validation error.</li>
- <li>Moved the safe mode and auth checks for the Email library into the constructor. </li>
- <li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li>
- <li>Changed the behaviour of custom callbacks so that they no longer trigger the &quot;required&quot; rule. </li>
+ <li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li>
+ <li>Changed &quot;numeric&quot; to use is_numeric() and added an &quot;integer&quot; rule into the <a href="./libraries/validation.html">Validation</a> library.</li>
+ <li>Changed the behaviour of custom callbacks so that they no longer trigger the &quot;required&quot; rule. </li>
<li>Modified Upload class $_FILES error messages to be more precise.</li>
+ <li>Moved the safe mode and auth checks for the Email library into the constructor. </li>
<li>Modified variable names in _ci_load() method of Loader class to avoid conflicts with view variables.</li>
<li>Added a few additional mime type variations for CSV.</li>
</ul>
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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</td>
</tr>
-
</table>
<p><strong>Note:</strong> These rules can also be called as discreet functions. For example:</p>