| Catalyst :: Plugin :: RunafterRequest. ÀÀ´äÀÌ Àü¼Û µÈ ÈÄ ÄÚµå ½ÇÇà |
Áö±Ý ´Ù¿î·Îµå |
Catalyst :: Plugin :: RunafterRequest. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Florian Ragwitz
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~flora/
Catalyst :: Plugin :: RunafterRequest. ű×
Catalyst :: Plugin :: RunafterRequest. ¼³¸í
ÀÀ´äÀÌ Àü¼Û µÈ ÈÄ Äڵ带 ½ÇÇàÇϽʽÿÀ ¶§·Î´Â Ŭ¶óÀ̾ðÆ®¿¡ ´Ù½Ã ÀÀ´äÀ» º¸³½ ÈÄ¿¡ ¹º°¡¸¦ ½ÇÇàÇÏ·Á°íÇÕ´Ï´Ù. ¿¹¸¦ µé¾î Æ®À§Å͸¦ Æ®À§ÅÍ·Î º¸³»°Å³ª ¿À·£ ½Ã°£ÀÌ °É¸± ¹«¾ð°¡¸¦ º¸³»°í response.catalyst :: Plugin :: RunafterRequest´Â ±× ÀÏÀ» ÇÒ ¼öÀÖ´Â Æí¸®ÇÑ ¹æ¹ýÀ» Á¦°øÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ´Ü¼øÈ÷ run_after_request¸¦ È£ÃâÇÏ°í Æó¼â¸¦ Ãß°¡ÇÔÀ¸·Î½á myApp.pm¿¡¼ #####À» »ç¿ëÇÕ´Ï´Ù. atalyst qw (runafterrequest); #### ÄÁÆ®·Ñ·¯ Sub my_action : ·ÎÄà {My ($ self, $ c) = @_; # Á¤»óÀûÀÎ °¡°ø ... # Ŭ¶óÀ̾ðÆ® $ c-> run_after_request (# sub {$ self-> do_something_slow ();}, sub {$ self-> do_something_else_as_well ();} ); # °è¼Ó ¿äû} #### ¶Ç´Â ¸ðµ¨¿¡¼ : ÆÐÅ°Áö MyApp :: Model :: Foo; ¹«½º¸¦ »ç¿ëÇϽʽÿÀ; 'Catalyst :: Model'È®Àå; 'catalyst :: model :: role :: RunafterRequest'; sub sub_method {my $ self = shift; $ self -> _ run_after_request (sub {$ self-> do_something_show ();}, ÇÏÀ§ {$ self-> do_something_else_as_well ();}); } ¿ä±¸ »çÇ× : ¡¤ Perl.
Catalyst :: Plugin :: RunafterRequest. °ü·Ã ¼ÒÇÁÆ®¿þ¾î