Catalyst :: ¸ðµ¨ :: ¾î´ðÅÍ

Catalyst :: Model :: ¾î´ðÅÍ´Â ÀÏ¹Ý Å¬·¡½º¸¦ Ã˸Š¸ðµ¨·Î »ç¿ëÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Catalyst :: ¸ðµ¨ :: ¾î´ðÅÍ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Jonathan Rockway
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~jrockway/

Catalyst :: ¸ðµ¨ :: ¾î´ðÅÍ Å±×


Catalyst :: ¸ðµ¨ :: ¾î´ðÅÍ ¼³¸í

Catalyst :: Model :: ¾î´ðÅÍ´Â ÀÏ¹Ý Å¬·¡½º¸¦ Ã˸Š¸ðµ¨·Î »ç¿ëÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. Catalyst :: Model :: Adapter´Â Perl Ŭ·¡½º¸¦ Catalyst ModelÀ¸·Î »ç¿ëÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. SynopsIsIndiven ÁÁÀº ¿À·¡µÈ Perl Ŭ·¡½º´Â ´ÙÀ½°ú °°½À´Ï´Ù. Package NotMyApp :: SomeClass; ¹«½º¸¦ »ç¿ëÇϽʽÿÀ; # "new"ÇÏÀ§ ¹æ¹ýÀ» Á¦°øÇÏ´Â °ÍÀº coatalyst ¸ðµ¨·Î { 'Yay'}À» ·¡ÇÎÇÕ´Ï´Ù. myApp :: Model :: SomeClass; ±âº» 'Catalyst :: Model :: Adapter'¸¦ »ç¿ëÇϽʽÿÀ. __package __-> config (class => notmyapp :: someclass '); ±×·± ´ÙÀ½ atalyst ¾Û¿¡¼­ notmyapp :: Ŭ·¡½º¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù : ÇÏÀ§ µ¿ÀÛ : adment {my ($ self, $ c) = @_; MY $ SOMECLASS = $ C-> ¸ðµ¨ ( 'SOMECLASS'); $ someclass-> ¹æ¹ý; # yay} notmyApp :: Ŭ·¡½º´Â ÀÀ¿ë ÇÁ·Î±×·¥ ½ÃÀÛ ½Ã°£¿¡¼­ ÀνºÅϽºÈ­µË´Ï´Ù. $ C-> ¸ðµ¨¿¡ ´ëÇÑ È£ÃâÀ» À§ÇØ ÀûÀÀ µÈ Ŭ·¡½º¸¦ ÀÛ¼ºÇϵµ·ÏÇÏ·Á¸é Catalyst :: Model :: Factory ´ë½Å¿¡. ¿äû ´ç ÇÑ ¹ø ÀûÀÀ µÈ Ŭ·¡½º¸¦ ÇÑ ¹ø »ý¼ºÇÏ·Á¸é Catalyst :: Model :: Factory :: Perrequest.The Idee´Â Ã˸Š¸ðµ¨ÀÌ ¼± ¶Ç´Â 2 °³ÀÇ Á¢ÂøÁ¦°¡ ¾Æ´Ñ ´Ù¸¥ °ÍµéÀ» ¿øÇÏÁö ¾Ê´Â´Ù´Â °ÍÀÔ´Ï´Ù. ÀÌ ¸ðµâÀ» »ç¿ëÇÏ¸é ¸ðµ¨ Å¬·¡½º°¡ ÀÀ¿ë ÇÁ·Î±×·¥°ú º°µµ·Î »ç¿ëµÇ¹Ç·Î Ãß»óÈ­µÇ°í Àç»ç¿ë °¡´ÉÇÏ¸ç ½±°Ô Å×½ºÆ® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌÁ¦ Ã˸ŠƯÀÌ ÀûÀ¸·Î CPAN¿¡ ³Ê¹« ¸¹Àº ¸ðµâÀÌ ÀÖ½À´Ï´Ù. ´ëºÎºÐÀÇ ¸ðµ¨Àº ÃË¸Å¿Í Àß ÀÛµ¿Çϱâ À§ÇØ ¾à°£ÀÇ Á¢ÂøÁ¦·Î ´ëºÎºÐÀÇ ±â´ÉÀ» ó¸®ÇÏ´Â ¼ö¾÷À¸·Î ÀÛ¼º µÉ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¸ðµâÀº Catalyst »ç¼ÒÇÑ°ú ÇÔ²² Ŭ·¡½º¸¦ ÅëÇÕÇÏ´Â °ÍÀ» ¸ñÇ¥·ÎÇϹǷΠ¸ðµ¨À» Á¦³×¸¯À¸·Î ¸¸µé±â À§ÇØ Ãß°¡ ÀÛ¾÷À» ¼öÇà ÇÒ ÇÊ¿ä°¡ ¾øÀ» °ÍÀÔ´Ï´Ù. ¿Ã¹Ù¸¥ µðÀÚÀÎ Á¢±Ù¹ýÀ» ÃëÇÏ´Â ¸ðµ¨ÀÇ ÁÁÀº ¿¹¸¦ µé¾î, Catalyst :: ¸ðµ¨ :: DBIC :: ½ºÅ°¸¶. ¸ðµç °ÍÀÌ ±âÁ¸ DBIX :: Class :: Schema to Catalyst¸¦ Á¢ÂøÇÕ´Ï´Ù. ±×°ÍÀº ¾à°£ÀÇ ¼³ÅÁÀ» Á¦°øÇÏÁö¸¸ ½ÇÁ¦ ±â´ÉÀº ¾ø½À´Ï´Ù. Áß¿äÇÑ °ÍÀº dbix :: class :: schema object.TheÀÇ ÃÖÁ¾ °á°ú´Â Ã˸ſ¡ ´ëÇØ »ý°¢ÇÏÁö ¾Ê°í ¾ÛÀÇ DBIC ½ºÅ°¸¶¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù´Â °ÍÀÔ´Ï´Ù. ÀÌ°ÍÀº ÁÁÀº ÀÏÀÔ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


Catalyst :: ¸ðµ¨ :: ¾î´ðÅÍ °ü·Ã ¼ÒÇÁÆ®¿þ¾î