Lines 335-340
sub attributes_from_api {
Link Here
|
335 |
return $self->{_singular_object}->attributes_from_api( $attributes ); |
335 |
return $self->{_singular_object}->attributes_from_api( $attributes ); |
336 |
} |
336 |
} |
337 |
|
337 |
|
|
|
338 |
=head3 from_api_mapping |
339 |
|
340 |
my $mapped_attributes_hash = $objects->from_api_mapping; |
341 |
|
342 |
Attributes map from the API to DBIC |
343 |
|
344 |
=cut |
345 |
|
346 |
sub from_api_mapping { |
347 |
my ( $self ) = @_; |
348 |
|
349 |
$self->{_singular_object} ||= $self->object_class->new(); |
350 |
return $self->{_singular_object}->from_api_mapping; |
351 |
} |
352 |
|
338 |
=head3 Koha::Objects->_wrap |
353 |
=head3 Koha::Objects->_wrap |
339 |
|
354 |
|
340 |
wraps the DBIC object in a corresponding Koha object |
355 |
wraps the DBIC object in a corresponding Koha object |