... | ... |
@@ -1,3 +1,6 @@ |
1 |
+0.1745 |
|
2 |
+ - DBIx::Custom::Result filter_on method is DEPRECATED! |
|
3 |
+ - DBIx::Custom::Result filter_off method is DEPRECATED! |
|
1 | 4 |
0.1744 |
2 | 5 |
- id option work if id count is lower than primary key count. |
3 | 6 |
- removed EXPERIMETNAL status from update_or_insert method and |
... | ... |
@@ -3483,6 +3483,8 @@ L<DBIx::Custom::Result> |
3483 | 3483 |
filter_check # will be removed at 2017/1/1 |
3484 | 3484 |
|
3485 | 3485 |
# Methods |
3486 |
+ filter_on # will be removed at 2017/1/1 |
|
3487 |
+ filter_off # will be removed at 2017/1/1 |
|
3486 | 3488 |
end_filter # will be removed at 2017/1/1 |
3487 | 3489 |
remove_end_filter # will be removed at 2017/1/1 |
3488 | 3490 |
remove_filter # will be removed at 2017/1/1 |
... | ... |
@@ -39,18 +39,6 @@ sub filter { |
39 | 39 |
return $self->{filter} ||= {}; |
40 | 40 |
} |
41 | 41 |
|
42 |
-sub filter_off { |
|
43 |
- my $self = shift; |
|
44 |
- $self->{filter_off} = 1; |
|
45 |
- return $self; |
|
46 |
-} |
|
47 |
- |
|
48 |
-sub filter_on { |
|
49 |
- my $self = shift; |
|
50 |
- $self->{filter_off} = 0; |
|
51 |
- return $self; |
|
52 |
-} |
|
53 |
- |
|
54 | 42 |
sub fetch { |
55 | 43 |
my $self = shift; |
56 | 44 |
|
... | ... |
@@ -288,6 +276,22 @@ sub type_rule2_on { |
288 | 276 |
return $self; |
289 | 277 |
} |
290 | 278 |
|
279 |
+# DEPRECATED! |
|
280 |
+sub filter_off { |
|
281 |
+ warn "filter_off method is DEPRECATED!"; |
|
282 |
+ my $self = shift; |
|
283 |
+ $self->{filter_off} = 1; |
|
284 |
+ return $self; |
|
285 |
+} |
|
286 |
+ |
|
287 |
+# DEPRECATED! |
|
288 |
+sub filter_on { |
|
289 |
+ warn "filter_on method is DEPRECATED!"; |
|
290 |
+ my $self = shift; |
|
291 |
+ $self->{filter_off} = 0; |
|
292 |
+ return $self; |
|
293 |
+} |
|
294 |
+ |
|
291 | 295 |
# DEPRECATED! |
292 | 296 |
sub end_filter { |
293 | 297 |
warn "end_filter method is DEPRECATED!"; |
... | ... |
@@ -474,20 +478,6 @@ Set filter for column. |
474 | 478 |
You can use subroutine or filter name as filter. |
475 | 479 |
This filter is executed after C<type_rule> filter. |
476 | 480 |
|
477 |
-=head2 C<filter_off> |
|
478 |
- |
|
479 |
- $result = $result->filter_off; |
|
480 |
- |
|
481 |
-Turn filtering by C<filter> method off. |
|
482 |
-By default, filterin is on. |
|
483 |
- |
|
484 |
-=head2 C<filter_on> |
|
485 |
- |
|
486 |
- $result = $resutl->filter_on; |
|
487 |
- |
|
488 |
-Turn filtering by C<filter> method on. |
|
489 |
-By default, filterin is on. |
|
490 |
- |
|
491 | 481 |
=head2 C<header> |
492 | 482 |
|
493 | 483 |
my $header = $result->header; |