| ÅÛÇø´ :: Á¦°øÀÚ :: fromData. ÅÛÇø´ :: Á¦°øÀÚ :: fromData´Â __data__ ¼½¼Ç¿¡¼ ÅÛÇø´À»·Îµå ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
ÅÛÇø´ :: Á¦°øÀÚ :: fromData. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Brian Cassidy
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~bricas/DBIx-Class-Loader-ADO-0.07/lib/DBIx/Class/Loader/ADO.pm
ÅÛÇø´ :: Á¦°øÀÚ :: fromData. ű×
ÅÛÇø´ :: Á¦°øÀÚ :: fromData. ¼³¸í
ÅÛÇø´ :: °ø±ÞÀÚ :: fromData´Â __data__ ¼½¼Ç¿¡¼ ÅÛÇø´À»·Îµå ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÅÛÇø´ :: Á¦°øÀÚ :: fromData´Â __data__ ¼½¼Ç¿¡¼ ÅÛÇø´À»·Îµå ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù .Synopsis »ç¿ë ÅÛÇø´; ÅÛÇø´ :: Á¦°øÀÚ :: fromData; # °ø±ÞÀÚ¸¦ ¸¸µì´Ï´Ù. ³» $ Provider = ÅÛÇø´ :: Á¦°øÀÚ :: fromData-> new ({classes => __package__}); # Config My $ Template = Template-> New ({# ... Load_templates => })¿¡ °ø±ÞÀÚ¸¦ Ãß°¡ÇϽʽÿÀ. # ... ÀÌÁ¦ ÅÛÇø´ __data__ __myTemplate__ foo __myotherTemplate__ Baz, ? methodsNew (% ¿É¼Ç) °ø±ÞÀÚÀÇ »õ ÀνºÅϽº¸¦ ¸¸µì´Ï´Ù. ÁöÁ¤ÇÒ ¼öÀÖ´Â À¯ÀÏÇÑ ¿É¼ÇÀº °ø±ÞÀÚ¿¡°Ô ÅÛÇø´À» °Ë»ö ÇÒ ¼öÀִ Ŭ·¡½º¸¦ Á¦°øÇϴ Ŭ·¡½ºÀÔ´Ï´Ù. ÀÌ ¿É¼ÇÀ» »ý·«ÇÏ¸é ¸ÞÀÎÀ» °Ë»öÇÕ´Ï´Ù. # 'main'$ Provider = Template :: Provider :: FromData-> New; # 'foo'$ Provider = Template :: Provider :: FromData-> ({classes => foo '})ÀÇ ÅÛÇø´À» ã½À´Ï´Ù. # 'foo :: bar'¹× 'foo :: baz'$ provider = template :: provider :: fromData-> new; ({classes => }); _ init (% ¿É¼Ç) new ()·Î Àü´Þ µÈ ¿É¼ÇÀ» ó¸®ÇÏ´Â ÇÏÀ§ Ŭ·¡½º ¸Þ¼µåÀÔ´Ï´Ù. FETCH ($ name) ºñ ÂüÁ¶ Àμö°¡ Àü´Þ µÈ °æ¿ì _fetch ()¸¦ ÅëÇØ ÅÛÇø´À»·Îµå ÇÒ ¼ºê Ŭ·¡½º ¸Þ¼µåÀÔ´Ï´Ù. ._load ($ name) get_file () ÇÏÀ§¸¦ ÅëÇØ ÅÛÇø´À»·ÎµåÇÏ°í ÀϺΠij½Ã Á¤º¸¸¦ ¼³Á¤ÇÕ´Ï´Ù. get_file ($ class, $ template)ÀÌ ¸Þ¼µå´Â $ class¸¦ ÅëÇØ $ class¸¦ °Ë»öÇÕ´Ï´Ù. ¼º°ø½Ã ³»¿ëÀ» ¹ÝȯÇÕ´Ï´Ù. ½ÇÆнà Undef.ÀÌ ±â´ÉÀº ´ëºÎºÐ Catalyst :: HelperÀÇ get_file ±â´É¿¡¼ ºô ·È½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
ÅÛÇø´ :: Á¦°øÀÚ :: fromData. °ü·Ã ¼ÒÇÁÆ®¿þ¾î