|
Lines 142-162
sub search {
Link Here
|
| 142 |
return $class->_new_from_dbic($rs); |
142 |
return $class->_new_from_dbic($rs); |
| 143 |
} |
143 |
} |
| 144 |
|
144 |
|
| 145 |
=head3 search_limited |
|
|
| 146 |
|
| 147 |
my $rs = $self->search_limited |
| 148 |
|
| 149 |
Generic method that is just a pass through for I<search>. It is expected to be overloaded |
| 150 |
locally on classes. It's main purpose is to avoid the need to check if the class implements |
| 151 |
the method locally. |
| 152 |
|
| 153 |
=cut |
| 154 |
|
| 155 |
sub search_limited { |
| 156 |
my ( $self, $params, $attributes ) = @_; |
| 157 |
return $self->search( $params, $attributes ); |
| 158 |
} |
| 159 |
|
| 160 |
=head3 search_related |
145 |
=head3 search_related |
| 161 |
|
146 |
|
| 162 |
my $objects = Koha::Objects->search_related( $rel_name, $cond?, \%attrs? ); |
147 |
my $objects = Koha::Objects->search_related( $rel_name, $cond?, \%attrs? ); |
| 163 |
- |
|
|