µ¥ÀÌÅÍ :: FormValidator :: Constraints :: MethodsFactory.

Data :: FormValidator :: Constraints :: MethodsFactory´Â µ¥ÀÌÅÍ :: FormValidator¿¡ ´ëÇÑ Á¦¾à Á¶°ÇÀ» »ý¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

µ¥ÀÌÅÍ :: FormValidator :: Constraints :: MethodsFactory. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Graham TerMarsch
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~gtermars/Data-FormValidator-Constraints-MethodsFactory-0.01/lib/Data/FormValidator/Constraints/MethodsFactory.pm

µ¥ÀÌÅÍ :: FormValidator :: Constraints :: MethodsFactory. ű×


µ¥ÀÌÅÍ :: FormValidator :: Constraints :: MethodsFactory. ¼³¸í

µ¥ÀÌÅÍ :: FormValidator :: Constraints :: formyFactory´Â data :: formValidator¿¡ ´ëÇÑ Á¦¾à Á¶°ÇÀ» ¸¸µé ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅÍ :: FormValidator :: Constraints :: MethodFactory´Â data :: formValidator.Synopsis¿¡ ´ëÇÑ Á¦¾à Á¶°ÇÀ» »ý¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù. µ¥ÀÌÅÍ :: FormValidator :: Á¦¾à Á¶°Ç :: methodFactory qw (: set : num : bool); # constraints ¼³Á¤ (: ¼³Á¤) constraint_methods => {status => fv_set (1, qw (»õ È°¼º ºñÈ°¼ºÈ­)), how_many => fv_set_num (1, (1 .. 20)), province => fv_set_word (1, " QC on tn nu "), seen_before => fv_set_cmp (1, sub _} {$ _ }}, qw (foo bar)),} # ¼ýÀÚ Á¦¾à Á¶°Ç (: num) constraint_methods => {how_many => fv_clamp (1, 1, 10), small_amount => fv_lt (1, 3), large_amount => fv_gt (1, 10), small_again => fv_le (1, 3), large_again => fv_ge (1, 10),} # Boolean Á¦¾à Á¶°Ç (: bool) constraint_methods => {bad_status => fv_not (fv_set (1, qw (»õ È°¼º ºñÈ°¼ºÈ­)), À̸ÞÀÏ => fv_or (fv_set (1, $ current_value), data :: formValidator :: Á¦¾à »çÇ× :: À̸ÞÀÏ (),), password => fv_and (fv_length_between (6,32), my_password_validation_constraint (),),} data :: formValidator :: constraints :: formValidator :: constraints :: formulafactory´Â »ç¿ëÀ» À§ÇØ Á¦¾à Á¶°Ç Æó¼â¸¦ »ý¼ºÇÏ´Â µ¥ »ç¿ëÇÒ ¼öÀÖ´Â ´Ù¾çÇÑ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù µ¥ÀÌÅÍ :: FormValidator. ÇÔ¼ö / Á¦¾à Á¶°ÇÀº µ¥ÀÌÅÍ :: FormValidator :: ConstraintSfactory, ±×·¯³ª "»õ·Î¿î ½ºÅ¸ÀÏ"Á¦¾à Á¶°ÇÀ¸·Î »ç¿ëµÇµµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù (µ¥ÀÌÅÍ :: FormValidator :: ConstraintSfactory´Â "¿À·¡µÈ ½ºÅ¸ÀÏ"Á¦¾àÀ¸·Î »ç¿ëÇϵµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù). ±â´ÉÀû À¸·ÎÀÌ ¸ðµâÀº µ¥ÀÌÅÍ :: FormValidator :: ConstraintSfactory¿¡ÀÖ´Â ¸ðµç Á¦¾à Á¶°Ç¿¡ ´ëÇÑ µ¿µî ¹°À» Á¦°øÇÏÁö¸¸,ÀÌ ¸ðµâ¿¡¼­ ¹öÀüÀ» »ç¿ëÇÏ·Á´Â »õ·Î¿î ½ºÅ¸ÀÏ·Î ÀÛ¾÷À» ¼öÇàÇÏ·Á´Â °æ¿ì. ¿ä±¸ »çÇ× : ¡¤ Perl.


µ¥ÀÌÅÍ :: FormValidator :: Constraints :: MethodsFactory. °ü·Ã ¼ÒÇÁÆ®¿þ¾î