Bugzilla – Attachment 93892 Details for
Bug 23770
Add Koha::Object(s)->to_api method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23770: Add to_api_mapping method to Koha::City
Bug-23770-Add-toapimapping-method-to-KohaCity.patch (text/plain), 1.06 KB, created by
Josef Moravec
on 2019-10-08 19:44:42 UTC
(
hide
)
Description:
Bug 23770: Add to_api_mapping method to Koha::City
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-10-08 19:44:42 UTC
Size:
1.06 KB
patch
obsolete
>From d87af906a9db4c0539fe40378354e19b06656a92 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 8 Oct 2019 12:12:56 -0300 >Subject: [PATCH] Bug 23770: Add to_api_mapping method to Koha::City > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/City.pm | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > >diff --git a/Koha/City.pm b/Koha/City.pm >index b84b5c3c7f..8fad9b1691 100644 >--- a/Koha/City.pm >+++ b/Koha/City.pm >@@ -29,11 +29,28 @@ Koha::City - Koha City Object class > > =head1 API > >-=head2 Class Methods >+=head2 Class methods >+ >+=head3 to_api_mapping >+ >+This method returns the mapping for representing a Koha::City object >+on the API. > > =cut > >-=head3 type >+sub to_api_mapping { >+ return { >+ cityid => 'city_id', >+ city_country => 'country', >+ city_name => 'name', >+ city_state => 'state', >+ city_zipcode => 'postal_code' >+ }; >+} >+ >+=head2 Internal methods >+ >+=head3 _type > > =cut > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23770
:
93831
|
93881
|
93882
|
93883
|
93888
|
93890
|
93891
|
93892
|
93893
|
93894
|
93895
|
94396
|
94397
|
94398
|
94399
|
94400