@@ -277,8 +277,7 @@ public static function none()
277277 * available or required for this validation method.
278278 * @callback-param array $host Host information
279279 *
280- * @return string|true true if the value is valid, a string with an error
281- * message otherwise.
280+ * @return callable Validation function
282281 */
283282public static function basic ($ cfg = null )
284283{
@@ -310,8 +309,7 @@ public static function basic($cfg = null)
310309 * available or required for this validation method.
311310 * @callback-param array $host Host information
312311 *
313- * @return string|true true if the value is valid, a string with an error
314- * message otherwise.
312+ * @return callable Validation function
315313 */
316314public static function required ($ cfg = null )
317315{
@@ -366,8 +364,7 @@ public static function notEmpty($cfg = null)
366364 * available or required for this validation method.
367365 * @callback-param array $host Host information
368366 *
369- * @return string|true true if the value is valid, a string with an error
370- * message otherwise.
367+ * @return callable Validation function
371368 */
372369public static function boolean ($ cfg = null )
373370{
@@ -404,8 +401,7 @@ public static function boolean($cfg = null)
404401 * as the decimal
405402 * @callback-param array $host Host information
406403 *
407- * @return string|true true if the value is valid, a string with an error
408- * message otherwise.
404+ * @return callable Validation function
409405 */
410406public static function numeric ($ decimal = '. ' , $ cfg = null )
411407{
@@ -444,8 +440,7 @@ public static function numeric($decimal = '.', $cfg = null)
444440 * separator (default '.').
445441 * @callback-param array $host Host information
446442 *
447- * @return string|true true if the value is valid, a string with an error
448- * message otherwise.
443+ * @return callable Validation function
449444 */
450445public static function minNum ($ min , $ decimal = '. ' , $ cfg = null )
451446{
@@ -490,8 +485,7 @@ public static function minNum($min, $decimal = '.', $cfg = null)
490485 * as the decimal
491486 * @callback-param array $host Host information
492487 *
493- * @return string|true true if the value is valid, a string with an error
494- * message otherwise.
488+ * @return callable Validation function
495489 */
496490public static function maxNum ($ max , $ decimal = '. ' , $ cfg = null )
497491{
@@ -536,8 +530,7 @@ public static function maxNum($max, $decimal = '.', $cfg = null)
536530 * as the decimal
537531 * @callback-param array $host Host information
538532 *
539- * @return string|true true if the value is valid, a string with an error
540- * message otherwise.
533+ * @return callable Validation function
541534 */
542535public static function minMaxNum ($ min , $ max , $ decimal = '. ' , $ cfg = null )
543536{
@@ -590,8 +583,7 @@ public static function minMaxNum($min, $max, $decimal = '.', $cfg = null)
590583 * available or required for this validation method.
591584 * @callback-param array $host Host information
592585 *
593- * @return string|true true if the value is valid, a string with an error
594- * message otherwise.
586+ * @return callable Validation function
595587 */
596588public static function email ($ cfg = null )
597589{
@@ -624,8 +616,7 @@ public static function email($cfg = null)
624616 * minimum string length.
625617 * @callback-param array $host Host information
626618 *
627- * @return string|true true if the value is valid, a string with an error
628- * message otherwise.
619+ * @return callable Validation function
629620 */
630621public static function minLen ($ min , $ cfg = null )
631622{
@@ -662,8 +653,7 @@ public static function minLen($min, $cfg = null)
662653 * maximum string length.
663654 * @callback-param array $host Host information
664655 *
665- * @return string|true true if the value is valid, a string with an error
666- * message otherwise.
656+ * @return callable Validation function
667657 */
668658public static function maxLen ($ max , $ cfg = null )
669659{
@@ -698,8 +688,7 @@ public static function maxLen($max, $cfg = null)
698688 * and maximum string lengths, respectively.
699689 * @callback-param array $host Host information
700690 *
701- * @return string|true true if the value is valid, a string with an error
702- * message otherwise.
691+ * @return callable Validation function
703692 */
704693public static function minMaxLen ($ min , $ max , $ cfg = null )
705694{
@@ -741,8 +730,7 @@ public static function minMaxLen($min, $max, $cfg = null)
741730 * available or required for this validation method.
742731 * @callback-param array $host Host information
743732 *
744- * @return string|true true if the value is valid, a string with an error
745- * message otherwise.
733+ * @return callable Validation function
746734 */
747735public static function ip ($ cfg = null )
748736{
@@ -772,8 +760,7 @@ public static function ip($cfg = null)
772760 * available or required for this validation method.
773761 * @callback-param array $host Host information
774762 *
775- * @return string|true true if the value is valid, a string with an error
776- * message otherwise.
763+ * @return callable Validation function
777764 */
778765public static function url ($ cfg = null )
779766{
@@ -806,8 +793,7 @@ public static function url($cfg = null)
806793 * automatically derived from the Editor and Field instances.
807794 * @callback-param array $host Host information
808795 *
809- * @return string|true true if the value is valid, a string with an error
810- * message otherwise.
796+ * @return callable Validation function
811797 */
812798public static function xss ($ cfg = null )
813799{
@@ -840,8 +826,7 @@ public static function xss($cfg = null)
840826 * automatically derived from the Editor and Field instances.
841827 * @callback-param array $host Host information
842828 *
843- * @return string|true true if the value is valid, a string with an error
844- * message otherwise.
829+ * @return callable Validation function
845830 */
846831public static function values ($ values , $ cfg = null )
847832{
@@ -874,8 +859,7 @@ public static function values($values, $cfg = null)
874859 * automatically derived from the Editor and Field instances.
875860 * @callback-param array $host Host information
876861 *
877- * @return string|true true if the value is valid, a string with an error
878- * message otherwise.
862+ * @return callable Validation function
879863 */
880864public static function noTags ($ cfg = null )
881865{
@@ -911,8 +895,7 @@ public static function noTags($cfg = null)
911895 * message in the 'message' parameter.
912896 * @callback-param array $host Host information
913897 *
914- * @return string|true true if the value is valid, a string with an error
915- * message otherwise.
898+ * @return callable Validation function
916899 */
917900public static function dateFormat ($ format , $ cfg = null )
918901{
@@ -955,8 +938,7 @@ public static function dateFormat($format, $cfg = null)
955938 * automatically derived from the Editor and Field instances.
956939 * @callback-param array $host Host information
957940 *
958- * @return string|true true if the value is valid, a string with an error
959- * message otherwise.
941+ * @return callable Validation function
960942 */
961943public static function unique ($ cfg = null , $ column = null , $ table = null , $ db = null )
962944{
@@ -1021,8 +1003,7 @@ public static function unique($cfg = null, $column = null, $table = null, $db =
10211003 * automatically derived from the Editor and Field instances.
10221004 * @callback-param array $host Host information
10231005 *
1024- * @return string|true true if the value is valid, a string with an error
1025- * message otherwise.
1006+ * @return callable Validation function
10261007 */
10271008public static function dbValues ($ cfg = null , $ column = null , $ table = null , $ db = null , $ values = [])
10281009{
0 commit comments