Bug 30861 - Add the ability to stash extra data in a Koha::Object
Summary: Add the ability to stash extra data in a Koha::Object
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: 21.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-27 14:26 UTC by Kyle M Hall
Modified: 2023-06-19 02:02 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 30861: Add Koha::Object::stash (1.12 KB, patch)
2022-05-27 14:27 UTC, Kyle M Hall
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall 2022-05-27 14:26:42 UTC
It would sometimes be useful to be able to calculate and stash values in an object.
Comment 1 Kyle M Hall 2022-05-27 14:27:23 UTC
Created attachment 135431 [details] [review]
Bug 30861: Add Koha::Object::stash
Comment 2 Katrin Fischer 2023-06-18 13:03:42 UTC
Should this be NSO?
Comment 3 David Cook 2023-06-19 02:02:12 UTC
Do you have a particular use case in mind?

Would this be a public or private method? I could see it being useful as a private method behind some object-specific methods, but not sure about letting random Koha code stash whatever it wants inside an object...