grnadpa — 2012-03-13T14:18:50-04:00 — #1
I've been looking for ways to encapsulate CRUD (Create, Retrieve, Update, Delete) for reuse. I've not found much on the need that deals with file / database manipulation under that search term [OOP CRUD ...] beyond use within a commercial package.
As such, setting up extensible classes for CRUD apparently is not common. Alternatively, I can envision setting up interfaces by the names of "Crudable" or, at even a finer granularity, "Creatable", "Retrievable", "Updatable" and "Deletable" but I don't find those out there either. And I frankly don't see what it would buy me.
Is the current wisdom to imbed the CRUD logic in-line where it's needed?
oddz — 2012-03-13T21:01:21-04:00 — #2
That is referred to as scaffolding when automating forms for data entry. Which never tends to yield the results you want.
When referring to reusable classes it would either be active record or orm (object relational mapper).
grnadpa — 2012-03-13T22:04:05-04:00 — #3
I recognize every word you wrote -- but I have no idea what you are telling me <grin>
I'm just confused as to the best practices approach to CRUD.
rrodriguez — 2012-04-26T18:30:13-04:00 — #4
I use Crudin
Crudin is a PHP+MySQL framework thats read and build in real time a complete interface for CRUD operations
Now I using it to build my intranet system in my company, but can be used to make crud interface, custom cms, intranet etc