Bugzilla – Attachment 94397 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.15 KB, created by
Marcel de Rooy
on 2019-10-18 09:00:00 UTC
(
hide
)
Description:
Bug 23770: Add to_api_mapping method to Koha::City
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-10-18 09:00:00 UTC
Size:
1.15 KB
patch
obsolete
>From 39bd2db7b822a04b2269b9e4be1772c496af34ec 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 >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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