admin wrote:
- for reading other components tables from your builder workspace.
- Writing in third component tables, is called a "database hack" and I think it can only be done with locals models.
- It depends of the context. sometimes simple SQL join (from regular generated model) is enough and nothing else is required.
Agreed 100% that is all we need - the ability to read the data from the third tables "out of the box"
this also gives us the table structure and the Cook Developer can then choose to implement write to third party tables if needed
as for writing to third tables = database hacking - agreed as well...
- some components are well written and have developer API's making integration relatively simple
- but others not so great and database hacking is needed
- should we write to / database hack a third party component?... A debate that would never end... a decision that needs to be made and implemented by the Cook Developer on the local level
- the need to write to a third party table is job specific and usually requires much more than simply writing to their data table
Sometimes the end user just wants a simple way to update multiple components that deal with the same "content" or add some additional functionality that does not exist within the existing components, they do not want to go into three components in order to manage their site and that's where Cook Self service comes in Cook allows us to create a solution for the end user that allows them to manage their web site data how they want to
Take for example a site that has an events listing component, they also duplicate the same event details in a Joomla content article, and they also use a shop component to manage various rates such as early bird specials, group discount rates... in this case write to would be an advantage when creating a custom Cook solution
however something that has not been yet discussed is that the Cook developer could implement such specific write to functionality to third party tables by using the power of classes by extending the model classes
Agreed in some cases it would be "nice" if we could write to third party tables out of the box (long term) but not essential