summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-02 10:54:50 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-02 10:54:50 +0100
commitf46c9047856534fce6f89ddc7ee7216da28d4fda (patch)
tree4e64d60927bf83d4d779245a2fb8767b6ef86a5e /system/libraries/Form_validation.php
parent963386ba6072d240840b58d6dbe54287edcb04ad (diff)
parent676a0dd74409e7e838b94484ef9ba066dcf6db91 (diff)
Merge pull request #1103 from IT-Can/error-array-565
updated version of pull request #565
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 2ee734ae6..5069a44c1 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -235,6 +235,20 @@ class CI_Form_validation {
// --------------------------------------------------------------------
/**
+ * Get Array of Error Messages
+ *
+ * Returns the error messages as an array
+ *
+ * @return array
+ */
+ public function error_array()
+ {
+ return $this->_error_array;
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Error String
*
* Returns the error messages as a string, wrapped in the error delimiters