Bug 30861

Summary: Add the ability to stash extra data in a Koha::Object
Product: Koha Reporter: Kyle M Hall (khall) <kyle>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook
Version: 21.05   
Hardware: All   
OS: All   
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

Description Kyle M Hall (khall) 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 (khall) 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...