|
Catalyst::Model::ShanonDBI - Perl extension for blah blah blah
|
Catalyst::Model::ShanonDBI - Perl extension for blah blah blah
use Catalyst::Model::ShanonDBI;
blah blah blah
Stub documentation for Catalyst::Model::ShanonDBI, created by h2xs. It looks like the
author of the extension was negligent enough to leave the stub
unedited.
Blah blah blah.
- preHash
-
DBに入ってる値そのままをハッシュにして返す
- toHash
-
フィルターがかかったハッシュを返す
- toHashRef
-
ハッシュのレファレンスを返す
- date2str
-
DBから返ってきたタイムスタンプを YYYY-MM-DD 形式にして返します
変換できなかったときはそのまま返します
- time2str
-
DBから返ってきたタイムスタンプを HH:MM 形式にして返します
変換できなかったときはそのまま返します
- create
-
Class::DBI のcreateのOverride
トリガー:$self->create_before($c, $hash);
$self->create_after($c, $hash, $rt);
- add
-
更新用コールバック群
トリガー:$self->update_before($c);
$self->update_after($c, $rt);
$self->disable_before($c); # 削除時
$self->disable_after($c, $rt); # 削除時
- delete
-
削除用コールバック群
トリガー:$self->delete_before($c);
$self->delete_after($c, $rt);
- get_model_changes_update
-
modelに対してupdateが発行された再に呼び出されます。
modelの変更を検出し、stashに詰めておく関数
$c->stash->{'ADVEL_model_changes'}をリストとして標準で使います。
- get_model_changes_create
-
modelに対して新しいレコードが作製された場合に呼び出されます。
$c->stash->{'ADVEL_model_changes'}に新規登録として詰め込みます。
- get_model_changes_delete
-
modelを削除した場合に呼び出されます。
$c->stash->{'ADVEL_model_changes'}に削除登録として詰め込みます。
the Catalyst manpage
Shota Takayama, <takayama@shanon.co.jp>
Copyright (C) 2005 by Shanon, Inc.
This program is free software, you can redistribute it and/or modify it under
the same terms as Perl itself.
|
Catalyst::Model::ShanonDBI - Perl extension for blah blah blah
|