[limb-svn] r7014 - 3.x/trunk/limb/validation/src
svn at limb-project.com
svn at limb-project.com
Tue May 13 15:11:06 MSD 2008
Author: conf
Date: 2008-05-13 15:11:06 +0400 (Tue, 13 May 2008)
New Revision: 7014
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7014
Modified:
3.x/trunk/limb/validation/src/lmbErrorList.class.php
Log:
-- lmbErrorList::getReadable method is returned back.
Modified: 3.x/trunk/limb/validation/src/lmbErrorList.class.php
===================================================================
--- 3.x/trunk/limb/validation/src/lmbErrorList.class.php 2008-05-13 07:14:16 UTC (rev 7013)
+++ 3.x/trunk/limb/validation/src/lmbErrorList.class.php 2008-05-13 11:11:06 UTC (rev 7014)
@@ -48,4 +48,18 @@
{
return $this->isEmpty();
}
-}
+
+ /**
+ * Returns all processed error list with formatted messages
+ * @see lmbErrorList :: addError()
+ * @return string
+ */
+ function getReadable()
+ {
+ $result = array();
+ foreach ($this as $error)
+ $result[] = $error->getReadable();
+
+ return $result;
+ }
+}
\ No newline at end of file
More information about the limb-svn
mailing list