Kyle M Hall
6f0316a8d2
The idea behind this is to have a pair of base classes on which to build our new generation of Koha objects. Koha::Object is a base class, which in it's most basic form, is to represent a row in a table. For example, Koha::Borrower inherits from Koha::Object. So too could Koha::Biblio and Koha::Item for example. Koha::Objects is to represent a way to fetch and manipulate sets of objects. For example, Koha::Borrowers has a method to get a Koha::Borrower object by id and a method to search for an get a list of Koha::Borrower objects. Right now Koha::Objects has only the essentials but can easily be extended and those enhancements will be passed down to all the child classes based on it. By using these classes as a base, we will add consistency to our code, allow us to keep our code DRY, reduce bugs, and encapsulate our database access among other benefits. Test Plan: 1) Apply this patch 2) prove t/Object.t t/db_dependent/Object.t t/db_dependent/Objects.t Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> |
||
---|---|---|
.. | ||
Acquisition | ||
Circulation | ||
data | ||
Holds | ||
Koha | ||
Labels | ||
LDAP | ||
Letters | ||
Members | ||
Record | ||
Reports | ||
Search | ||
Serials | ||
Utils | ||
www | ||
XSLT_Handler | ||
00-strict.t | ||
Accounts.t | ||
Acquisition.t | ||
Amazon.t | ||
Auth.t | ||
Auth_with_cas.t | ||
Auth_with_ldap.t | ||
AuthoritiesMarc.t | ||
BackgroundJob.t | ||
Barcodes.t | ||
Biblio.t | ||
Bookseller.t | ||
Borrower.t | ||
Borrower_Debarments.t | ||
Borrower_Files.t | ||
Borrowers.t | ||
Branch.t | ||
Breeding.t | ||
Budgets.t | ||
Category.t | ||
Charset.t | ||
check_sysprefs.t | ||
Circulation.t | ||
Circulation_Branch.t | ||
Circulation_issue.t | ||
Circulation_Issuingrule.t | ||
Circulation_issuingrules.t | ||
Circulation_OfflineOperation.t | ||
Circulation_transfers.t | ||
ClassSource.t | ||
ColumnsSettings.t | ||
Context.t | ||
Contract.t | ||
CourseReserves.t | ||
Csv.t | ||
default_search_class.pl | ||
External_BakerTaylor.t | ||
Heading_MARC21.t | ||
Holds.t | ||
HoldsQueue.t | ||
Holidays.t | ||
ILSDI_Services.t | ||
ImportBatch.t | ||
Installer.t | ||
Items.t | ||
Items_DelItem.t | ||
KitchenSinkPlugin.kpz | ||
Koha.t | ||
Koha_Authority.t | ||
Koha_borrower_modifications.t | ||
Koha_Database.t | ||
Koha_Misc_Files.t | ||
Koha_template_plugin_Branches.t | ||
Koha_template_plugin_KohaDates.t | ||
Languages.t | ||
Letters.t | ||
Linker_FirstMatch.t | ||
Log.t | ||
MarcModificationTemplates.t | ||
Members.t | ||
Members_Attributes.t | ||
Members_columns.t | ||
MungeMarcPrice.t | ||
NewsChannels.t | ||
Overdues.t | ||
PatronLists.t | ||
Plugins.t | ||
QueryParser.t | ||
Ratings.t | ||
Record.t | ||
RecordProcessor_EmbedSeeFromHeadings.t | ||
Reports.t | ||
Reports_Guided.t | ||
ReportsGuided.t | ||
Reserves.t | ||
rollingloans.t | ||
RotatingCollections.t | ||
Search.t | ||
Search_SearchHistory.t | ||
Serials.t | ||
Serials_2.t | ||
Service.t | ||
ShelfBrowser.t | ||
SIP_ILS.t | ||
SQLHelper.t | ||
Stats.t | ||
SuggestionEngine_ExplodedTerms.t | ||
Suggestions.t | ||
sysprefs.t | ||
Tags.t | ||
Templates.t | ||
UploadedFile.t | ||
VirtualShelves.t | ||
VirtualShelves_Page.t | ||
XISBN.t | ||
XSLT_Handler.t | ||
zebra_config.pl |