°µÆ®¸® :: utils :: FormMunger.

Gantry :: Utils :: FormMunger Munges Bigtop°ú °°Àº Çؽø¦ Çü¼ºÇÕ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

°µÆ®¸® :: utils :: FormMunger. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Phil Crow
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~tkeefer/Gantry-3.51/lib/Gantry/Utils/FormMunger.pm

°µÆ®¸® :: utils :: FormMunger. ű×


°µÆ®¸® :: utils :: FormMunger. ¼³¸í

°µÆ®¸® :: Utils :: FormMunger Munges´Â Bigtop°ú °°ÀÌ Çؽø¦ Çü¼ºÇÕ´Ï´Ù. Gantry :: Utils :: FormMunger Munges´Â Bigtop Makes¿Í °°Àº Çؽø¦ Çü¼ºÇÕ´Ï´Ù. ½Ä ³ëÇÁ°¡ °µÆ®¸® :: Utils :: Formmunger; ³» $ form = ...; # ¾ç½Ä Çؽà My $ Munger = Gantry :: Utils :: FormMunger-> New ($ ¾ç½Ä); # ±âÁ¸ ÇʵåÀÇ ¼Ó¼º º¯°æ : $ munger-> clear_props ( 'field_name', qw (»èÁ¦ÇÒ À̸§ Å°)); $ munger-> clear_all_props ( 'field_name'); # $ munger-> set_props ( 'field_name', {prop => 'value', ...}, $ replace_props)¶ó´Â À̸§À» Á¦¿ÜÇÏ°í ¸ðµç Å°¸¦ Á¦°ÅÇÕ´Ï´Ù. # $ munger-> set_props_for_fields (, {prop => 'value', ...}À» Åë°úÇÏ´Â Å° ¸¸ ¼öÁ¤ÇÕ´Ï´Ù. # set_props¿Í ¸¶Âù°¡Áö·Î ³ª¿­µÈ ¸ðµç Çʵ忡 ´ëÇØ $ munger-> set_props_except_for (, {prop => '°ª', ...}); # set_props_for¿Í ¸¶Âù°¡Áö·Î ³ª¿­µÈ Çʵå´Â $ munger-> set_props_all ({prop => °ª ', ...})À» °Ç³Ê ¶Ý´Ï´Ù. # Çʵ带 ¾òÀ¸¹Ç·Î Á÷Á¢ ÀÏÇÒ ¼ö ÀÖ½À´Ï´Ù : MY $ field = $ munger-> get_field ( 'name'); # ÇÊµå ¸ñ·Ï ¼öÁ¤ : MY $ ESTERIESSION = $ MUNGER-> DROP_FIELD ( 'À̸§'); # $ munger-> append_field ({name => 'name', ...})¸¦ Æû¿¡¼­ Á¦°ÅÇÕ´Ï´Ù. # END AT END AT $ MUNGER-> UNSHIFT_FIELD ({NAME => 'NAME', ...}); # ½ÃÀÛÇϱâ $ Munger-> add_field_after ( '´ë»ó', {name => 'name', ...}); $ munger-> add_field_before ( 'target', {name => 'name', ...});ÀÌ ¸ðµâÀº °µÆ®¸® form.tt ¾ç½Ä Çؽà µ¥ÀÌÅÍ ±¸Á¶¿ÍÀÇ ÀÛ¾÷À» ´Ü¼øÈ­Çϵµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù. ±× ÇؽÃÀÇ ÇÊµå ¹è¿­À» ¼öÁ¤ÇÏ´Â °æ¿ì. ÀϹÝÀûÀ¸·Î BigtopÀº Çؽø¦ »ý¼ºÇÕ´Ï´Ù. Ç¥ÁØ CRUD »óȲ¿¡ ÀÖÀ¸¸é »ý¼º µÈ ¾ç½ÄÀÌ ¸ðµÎ ÇÊ¿äÇÑ °ÍÀÔ´Ï´Ù. ±×·¯³ª ´Ù¸¥ ÄÁÅؽºÆ®¿¡¼­ ¾ç½ÄÀ» °øÀ¯ ÇؾßÇÏ´Â °æ¿ì ÇØ´ç ÄÁÅؽºÆ®¿¡ ¸Â°ÔÀ̸¦ ¼öÁ¤ÇØ¾ß ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ÀÌ´ÂÀÌ ¸ðµâÀÌ ¼öÇà ÇÒ ÀÏÀÔ´Ï´Ù. ¿øÇÏ´Â °æ¿ìÀÌ ¸ðµâÀ» »ç¿ëÇÏ¿© Àüü ¾ç½Ä Çؽø¦ ±¸Ãà ÇÒ ¼öµµ ÀÖÁö¸¸ ±×°ÍÀº °íÅë ½º·¯¿ï ¼ö ÀÖ½À´Ï´Ù. ´ë½Å, ÀϹÝÀûÀ¸·Î ¾ç½Ä Çؽø¦ »ý¼ºÀÚ¿¡°Ô Àü´ÞÇÕ´Ï´Ù. ÀϹÝÀûÀ¸·Î Bigtop.once°¡ »ý¼º ÇÑ Gen ¸ðµâÀÇ Æû ¸Þ¼Òµå¿¡¼­ Çؽø¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. °´Ã¼°¡ÀÖ´Â °æ¿ì ¾Æ·¡ÀÇ ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÇÊµå ¹è¿­À» ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¹æ¹ýÀÇ ´ëºÎºÐÀº ¾Æ¹« °Íµµ ¾øÀ½À» ¹ÝȯÇÕ´Ï´Ù. ¿¹¿Ü´Â ¾Æ·¡¿¡ ¼³¸íµÇ¾î ÀÖ½À´Ï´Ù .All ¸Þ¼­µå´Â Ç¥½ÃÇÏÁö ¾Ê´Â ÇÑ ÀνºÅϽº ¹æ¹ýÀÔ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


°µÆ®¸® :: utils :: FormMunger. °ü·Ã ¼ÒÇÁÆ®¿þ¾î