NAME

Catalyst::Controller::ADVEL - Scaffolding Controller Component (Add Delete View Edit List)

SYNOPSIS

package MyApp::Controller::MyController;
use base 'Catalyst::Controller::ADVEL';

DESCRIPTION

´ðËÜŪ¤Ê¡ÖÅÐÏ¿¡×¡Öºï½ü¡×¡Öɽ¼¨¡×¡ÖÊÔ½¸¡×¡Ö°ìÍ÷¡×¤Îµ¡Ç½¤òÄ󶡤¹¤ë¤¿¤á¤Î ¥Ù¡¼¥¹¥ª¥Ö¥¸¥§¥¯¥È¡£

METHODS

action_switcher

¥¢¥¯¥·¥ç¥ó¤òÀÚ¤êÂؤ¨¤ë¤¿¤á¤Î´Ø¿ô

Catalyst::Plugin::ClassConfig¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ config->{'actions'}->{add|delete|disable}¤«¤éÇÛÎó¥ê¥Õ¥¡¥ì¥ó¥¹¤ò¼èÆÀ¤·¡¢ ¤½¤ì¤ò»È¤¤¤Þ¤¹¡£

¥È¥ê¥¬¡¼¡§

$self->set_actions($c, \@actions);

¼¡¤Î¥¢¥¯¥·¥ç¥ó¤Ë¿Ê¤à¤¿¤á¤Ë¤Ï $c->stash->{'ADVEL_OK'}->{$self->get_clc($c)->get_namespace}->{'¥¢¥¯¥·¥ç¥ó̾'}¤¬¿¿¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ³Æ¥¢¥¯¥·¥ç¥ó¤Ç0¤òreturn¤·¤Æ¤¯¤À¤µ¤¤¡£

input

ÆþÎϲèÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$self->input_before($c);
$self->input_before_check_errors($c, $hash);
$self->input_check($c);
$self->input_after_retreive($c);
$self->input_after_get_from_req($c);
$self->input_after_gen_first_data($c);
$self->input_view($c, \@view);
$self->input_after($c);

confirm

³Îǧ²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó¤Ç¤¹¡£

¥È¥ê¥¬¡¼¡§

$self->confirm_before($c);
$self->confirm_check($c);
$self->confirm_view($c, \@view);
$self->confirm_after($c);

do_add

¼ÂºÝ¤ËÅÐÏ¿¤ò¹Ô¤¤¡¢´°Î»²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$self->do_add_before($c);
$self->do_add_check($c);
$self->do_add_commit_flg($c);
$self->do_add_flush_flg($c);
$self->do_add_view($c, \@view);
$self->do_add_after($c, \$commit_flg);

pre_disable

̵¸ú²½¤Î³Îǧ²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$self->pre_disable_before($c);
$self->pre_disable_check($c);
$self->pre_disable_after_form_data($c);
$self->pre_disable_view($c, \@view);
$self->pre_disable_after($c);

retrieve_for_disable

ºï½ü³ÎǧÍѸ¡º÷

do_disable

¼ÂºÝ¤Ë̵¸ú²½¤ò¹Ô¤¤¡¢´°Î»²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$self->do_disable_before($c);
$self->do_disable_check($c);
$self->do_disable_commit_flg($c);
$self->do_disable_flush_flg($c);
$self->do_disable_view($c, \@view);
$self->do_disable_after($c);

retrieve_for_do_disable

ºï½üÍѸ¡º÷

pre_delete

ºï½ü¤Î³Îǧ²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

    $self->pre_delete_before($c);
    $self->pre_delete_check($c);
    $self->pre_delete_after_form_data($c);
    $self->pre_delete_view($c, \@view);
    $self->pre_delete_after($c);

do_delete

¼ÂºÝ¤Ë̵¸ú²½¤ò¹Ô¤¤¡¢´°Î»²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$self->do_delete_before($c);
$self->do_delete_check($c);
$self->do_delete_commit_flg($c);
$self->do_delete_flush_flg($c);
$self->do_delete_view($c, \@view);
$self->do_delete_after($c);

preview

³Îǧ²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$self->preview_before($c);
$self->preview_check($c);
$self->preview_after_form_data($c);
$self->preview_view($c, \$view);
$self->preview_after($c);

retrieve_for_preview

¾ÜºÙÍѸ¡º÷

list_query_for_session

save condition to session or read condition from session

set_list_attr

set specify additional query attributes

list_sort

set fields that will be used to order the results of your query

list_where

make specify where clause

get_iterators

search iterators, then create list

make_meta_row

make_list

make basic list

searching

list_navigate

navigation

csvdownload_sort

csvdownload_where

do_csvupload

¼ÂºÝ¤ËÅÐÏ¿¤ò¹Ô¤¤¡¢´°Î»²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÆâÉô¥¢¥¯¥·¥ç¥ó

Æȼ«¤Î¥á¥Ã¥»¡¼¥¸¤òÆþ¤ì¤¿¤¤¤È¤­¤Ï°Ê²¼¤ÎÃͤò¤¤¤¸¤Ã¤Æ¤¯¤À¤µ¤¤

$c->stash->{do_csvupload_error} - ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òÆþ¤ì¤ëÇÛÎó
$c->stash->{do_csvupload_message} - Ä̾ï¥á¥Ã¥»¡¼¥¸¤òÆþ¤ì¤ëÇÛÎó

¥È¥ê¥¬¡¼¡§

$self->do_csvupload_before($c);
$self->do_csvupload_check($c);
$self->do_csvupload_check_row($c, $hash);

¥Á¥§¥Ã¥¯·ë²Ì¤¬NG¤À¤Ã¤¿¤é $c->stash->{do_csvupload_check_row_result} = 0 ¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£

$self->do_csvupload_commit_flg($c);
$self->do_csvupload_flush_flg($c);
$self->do_csvupload_view($c, \@view);
$self->do_csvupload_after($c, \$commit_flg);

default

¥Ç¥Õ¥©¥ë¥È¥¢¥¯¥·¥ç¥ó

¥ê¥¹¥È¤Ëforward¤·¤Þ¤¹

add

ÅÐÏ¿½èÍýÍÑ¥¢¥¯¥·¥ç¥ó

ɸ½à¤Ç ÆþÎÏ=>´°Î» ¤Î£²¥¢¥¯¥·¥ç¥ó

delete

ºï½ü½èÍýÍÑ¥¢¥¯¥·¥ç¥ó

ɸ½à¤Ç ³Îǧ=>ºï½ü ¤Î£²¥¢¥¯¥·¥ç¥ó

disable

̵¸ú²½½èÍýÍÑ¥¢¥¯¥·¥ç¥ó

ɸ½à¤Ç ³Îǧ=>̵¸ú²½ ¤Î£²¥¢¥¯¥·¥ç¥ó

view

¾ÜºÙ²èÌ̤òɽ¼¨¤¹¤ë¤¿¤á¤Î¥¢¥¯¥·¥ç¥ó

list

°ìÍ÷ɽ¼¨ÍÑ¥¢¥¯¥·¥ç¥ó

¥È¥ê¥¬¡¼¡§

$serf->list_before($c);
$self->list_data($c, $data);
$self->list_after($c);

csvdownload

CVS¥À¥¦¥ó¥í¡¼¥É¥¢¥¯¥·¥ç¥ó

csvupload

CVS¥¢¥Ã¥×¥í¡¼¥É¥¢¥¯¥·¥ç¥ó

SEE ALSO

¤È¤ê¤¢¤¨¤º¶õ¤Ã¤Ý ÆüËܸì¤È±Ñ¸ì¤È ξÊýPOD½ñ¤­¤¿¤¤¤ó¤À¤±¤É²¿¤È¤«¤Ê¤é¤Ê¤¤¤Î¤«¤Ê¤¡

AUTHOR

Shota Takayam, <takayama@shanon.co.jp>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Shota Takayama and Shanon, Inc.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 25:

Non-ASCII character seen before =encoding in '´ðËÜŪ¤Ê¡ÖÅÐÏ¿¡×¡Öºï½ü¡×¡Öɽ¼¨¡×¡ÖÊÔ½¸¡×¡Ö°ìÍ÷¡×¤Îµ¡Ç½¤òÄ󶡤¹¤ë¤¿¤á¤Î'. Assuming CP1252