Your SlideShare is downloading. ×
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Catalyst::Model::Adaptor
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Catalyst::Model::Adaptor

3,834

Published on

CatCon#1

CatCon#1

Published in: Technology, Sports
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,834
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
18
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Catalyst::Model::Adaptor Hideo Kimura (hide-k)
  • 2. Catalyst のいやんなところ • component が context に依存してるー>特に Model! • MyApp::M::Foo にビジネスロジックを実装する と Catalyst でしか使えない • Test が面倒くさい!
  • 3. そこで C::M::Adaptor • 既存クラスを C::Model にしてくれる アダプタークラス • 必要なのは – Model にしたいクラス • 超簡単!
  • 4. 作り方 Helper がついてる script/myapp_create model Foo Adaptor Foo::Class create package MyApp::Model::Foo; use strict; use warnings; use base 'Catalyst::Model::Adaptor'; __PACKAGE__->config( class => ‘Foo::Class', constructor => ‘create', ); 1;

×