summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
AgeCommit message (Collapse)AuthorFilesLines
2015-09-26Removing config_rules from reset_validationzoaked1-6/+1
Signed-off-by: Junior Asparagus<zoaked@hotmail.com>
2015-09-22Styling changeszoaked1-3/+5
2015-09-21Switch from saving copy of config to reset method parameterzoaked1-4/+5
2015-09-20Persist config file settings when resetting form_validationzoaked1-2/+3
When checking multiple arrays using form_validation you have to call reset_validation between each separate check due to the instance of the library being a singleton. The issue comes in when the settings are loaded from a config file as they are initially loaded from a parameter in the constructor, but are set to an empty array when resetting the class. To get around this issue a copy of the config parameter is made and then the copy is used to reset the rules when clearing.
2015-09-09Change form validation library to allow the pipe character within square ↵rich1-1/+1
brackets
2015-06-15Fix #3908Andrey Andreev1-1/+1
2015-06-11Fix #3904Andrey Andreev1-0/+6
2015-06-10Fix #3903Andrey Andreev1-3/+2
2015-04-29Fix #3816Andrey Andreev1-1/+1
2015-04-14Fix #3771Andrey Andreev1-10/+4
2015-04-06Disallow empty FV rules ... for consistencyAndrey Andreev1-7/+5
Related: #3736
2015-03-13Close #3663Andrey Andreev1-1/+1
2015-03-09Reduce once MB_ENABLED checkingbjjay1-9/+3
The checking is done in the compat file system/core/compat/mbstring.php
2015-01-28[ci skip] Correct a docblock following PR #3521Andrey Andreev1-1/+1
2015-01-28change in to in_listLance Vincent1-1/+1
2015-01-28Form Validation - In MethodLance Vincent1-0/+14
2015-01-28Form Validation - In MethodLance Vincent1-0/+16
Returns true if a given value matches any of the specified list
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-1/+1
'Class Loaded' type of messages flood log files when log_threshold is set to 2 (debug). They're now logged as 'info' level. This is manually applying PR #1528, which was created to do the same thing, but became outdated.
2015-01-12Updated to use the language fileAhmad Anbar1-1/+1
2015-01-11Show the name of the field that doesn't have error message set.Ahmad Anbar1-1/+1
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- Remove PHP version from license notices - Bump year number in copyright notices - Recommend PHP 5.4 or newer to be used - Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version Related: #3450
2015-01-05Remove CI_Form_validation::xss_clean()Andrey Andreev1-13/+0
More details in the commit diff itself, and here: https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/683#issuecomment-66598821
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-09-08Add 'named callable' rules to Form validation libraryAndrey Andreev1-4/+16
Requested in issue #3183 Supersedes PR #3220
2014-06-07Fix #3085Andrey Andreev1-17/+19
2014-06-01Fix wrong variable nameAndrey Andreev1-2/+2
2014-05-31Add support for non-ASCII domain names in FV & Email classes' valid_email()Andrey Andreev1-0/+5
Depends on the Intl extension
2014-05-20[ci skip] Fix error notices in FV when trying to lookup error msgs for closuresAndrey Andreev1-14/+18
2014-04-09Minor changes in FV, TrackbackAndrey Andreev1-25/+8
2014-03-10Fix #2928, #2929Andrey Andreev1-1/+2
2014-03-10Add support for callable form validation rulesAndrey Andreev1-34/+67
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-02-08Method chaining support for FV set_data(), reset_validation()Andrey Andreev1-2/+5
2014-01-09Fixed the comment and array alignment.Ahmedul Haque Abid1-2/+2
2014-01-09Added space after 'if' conditionAhmedul Haque Abid1-1/+1
2014-01-09Changed the rest of 'error_msg' to 'errors'Ahmedul Haque Abid1-6/+6
2014-01-09Added the missing "is" in the commentAhmedul Haque Abid1-1/+1
2014-01-09Updated comment messages.Ahmedul Haque Abid1-2/+2
2014-01-09Removed extra space between closing parenthesis.Ahmedul Haque Abid1-1/+1
2014-01-09Fixed a missed variable $errors in set_rules().Ahmedul Haque Abid1-1/+1
2014-01-09Changed $error_msg to $errorsAhmedul Haque Abid1-4/+4
2014-01-08Added custom error messages functionality for individual fields.Ahmedul Haque Abid1-4/+20
2014-01-07Fix #2143Andrey Andreev1-9/+6
When trying to load rules from a configuration file, the Form validation library matched against ruri_string() as opposed to 'controller/method' like described in the manual. Since ruri_string() also makes sense, now both are being checked with ruri_string() having a higher precedence. Supersedes PR #2224
2014-01-06[ci skip] Fix a docblock typoAndrey Andreev1-1/+1
2014-01-06Make CI_Form_validation::error()'s first parameter mandatory and add a ↵Andrey Andreev1-6/+6
typehint for CI_Form_validation::error()
2013-10-23Fix issue #2695Andrey Andreev1-4/+18
2013-07-21change empty function to Identical comparison operatorHashem Qolami1-2/+2
Signed-off-by: Hashem Qolami <hashem@qolami.com>
2013-07-21Fix Form Validation issue with text inputs which have array as nameHashem Qolami1-2/+2
Signed-off-by: Hashem Qolami <hashem@qolami.com>
2013-06-28Fix #2498Andrey Andreev1-1/+1