| ... | ... |
@@ -781,7 +781,7 @@ In this case, You specify paramter values as array reference. |
| 781 | 781 |
|
| 782 | 782 |
=head3 Register Tag C<register_tag()> |
| 783 | 783 |
|
| 784 |
-You can register your tag. |
|
| 784 |
+You can register custom tag. |
|
| 785 | 785 |
use C<register_tag()> to register tag. |
| 786 | 786 |
|
| 787 | 787 |
$dbi->register_tag( |
| ... | ... |
@@ -792,47 +792,40 @@ use C<register_tag()> to register tag. |
| 792 | 792 |
} |
| 793 | 793 |
); |
| 794 | 794 |
|
| 795 |
-�����ł̓f�t�H���g��C<=>�^�O���ǂ̂悤�Ɏ������Ă��邩����Ă��܂��B |
|
| 796 |
-�^�O��o�^������̈�̓^�O�̒��ɏ����ꂽ��ɂȂ�܂��B |
|
| 795 |
+This is implementation of C<=> tag. |
|
| 796 |
+Tag format is the following one. |
|
| 797 | 797 |
|
| 798 |
- {�^�O�� ��1 ��2}
|
|
| 798 |
+ {TAG_NAME ARG1 ARG2 ...}
|
|
| 799 | 799 |
|
| 800 |
-C<=>�^�O�̏ꍇ�� |
|
| 800 |
+In case C<=> tag. Format is |
|
| 801 | 801 |
|
| 802 | 802 |
{= title}
|
| 803 | 803 |
|
| 804 |
-�Ƃ����`���ł�����A�T�u���[�`���ɂ�title�Ƃ����ЂƂ̗��킽��Ă��܂��B |
|
| 805 |
- |
|
| 806 |
-�T�u���[�`���̖߂�l�ɂ͎��̌`���̔z��̃��t�@�����X��Ԃ��K�v������܂��B |
|
| 804 |
+So subroutine receive one argument "title". |
|
| 805 |
+You have to return array reference in the following format. |
|
| 807 | 806 |
|
| 808 | 807 |
[ |
| 809 |
- �W�J��̕�����, |
|
| 810 |
- [�v���[�X�z���_�ɖ��ߍ��݂ɗ��p�����1, ��2, ...] |
|
| 808 |
+ String after expanding, |
|
| 809 |
+ [COLUMN1(This is used for place holder), COLUMN2 , ...] |
|
| 811 | 810 |
] |
| 812 | 811 |
|
| 813 |
-��ڂ̗v�f�͓W�J��̕�����ł��B���̗�ł� |
|
| 812 |
+First element is expanded stirng. In this example, |
|
| 814 | 813 |
|
| 815 | 814 |
'title = ?' |
| 816 | 815 |
|
| 817 |
-��Ԃ��K�v������܂��B |
|
| 818 |
- |
|
| 819 |
-��ڂ̗v�f�̓v���[�X�z���_�ɖ��ߍ��݂ɗ��p�����܂ޔz��� |
|
| 820 |
-���t�@�����X�ł��B����̗�ł� |
|
| 816 |
+Secount element is array reference which is used to embedd value to |
|
| 817 |
+place holder. In this example, |
|
| 821 | 818 |
|
| 822 | 819 |
['title'] |
| 823 | 820 |
|
| 824 |
-��Ԃ��K�v������܂��B�����̃v���[�X�z���_��܂ޏꍇ�́A���̕����� |
|
| 825 |
-�����ɂȂ�܂��BC<insert_param>�^�O��C<update_param>�^�O�� |
|
| 826 |
-���̕�������ە����ɂȂ�Ă��܂��B |
|
| 821 |
+If there are more than one placeholders, |
|
| 822 |
+This elements is multipul. |
|
| 827 | 823 |
|
| 828 |
-��L��킹��� |
|
| 824 |
+You return the following array reference. |
|
| 829 | 825 |
|
| 830 | 826 |
['title = ?', ['title']] |
| 831 |
- |
|
| 832 |
-��Ԃ��K�v������Ƃ������Ƃł��B |
|
| 833 | 827 |
|
| 834 |
-�^�O�̎���̑��̃T���v����L<DBIx::Custom::Tag>�̃\�[�X�R�[�h |
|
| 835 |
-����ɂȂ�Ă݂Ă��������B |
|
| 828 |
+See source of L<DBIx::Custom::Tag> to see many implementation. |
|
| 836 | 829 |
|
| 837 | 830 |
=head2 6. Where��̓��I�Ȑ��� |
| 838 | 831 |
|
| ... | ... |
@@ -803,9 +803,9 @@ C<table>タグを利用します。 |
| 803 | 803 |
); |
| 804 | 804 |
|
| 805 | 805 |
ここではデフォルトのC<=>タグがどのように実装されているかを示しています。 |
| 806 |
-タグを登録する関数の引数はタグの中に書かれた引数になります。 |
|
| 806 |
+タグの形式は次のようになっています。 |
|
| 807 | 807 |
|
| 808 |
- {タグ名 引数1 引数2}
|
|
| 808 |
+ {タグ名 引数1 引数2 ...}
|
|
| 809 | 809 |
|
| 810 | 810 |
C<=>タグの場合は |
| 811 | 811 |
|
| ... | ... |
@@ -832,8 +832,7 @@ C<=>タグの場合は |
| 832 | 832 |
['title'] |
| 833 | 833 |
|
| 834 | 834 |
を返す必要があります。複数のプレースホルダを含む場合は、この部分が |
| 835 |
-複数になります。C<insert_param>タグやC<update_param>タグは |
|
| 836 |
-この部分が実際複数になっています。 |
|
| 835 |
+複数になります。 |
|
| 837 | 836 |
|
| 838 | 837 |
上記を合わせると |
| 839 | 838 |
|