Maybe someone else will find this usefull.
In all my Joomla! projects if I have to create new tables, I use DAO layer.
For example if I want to deal with table jos_content (or any new) I create entity class for it:
http://github.com/fornve/Joomla--DAO/bl ... .class.php
To retrieve by $content_id:
Code: Select all
$content = Content::Retrieve( $content_id );
$content->title = 'New title';
$content->Save();
Code: Select all
$content = new Content();
$content->title = 'New content';
$content->Save();
There is one crazy example of entity class:
http://github.com/fornve/Sum-e.com-shop ... .class.php
It is really usefull.
Project repository:
http://github.com/fornve/Joomla--DAO
Just seeded, I haven't decided yet where is best place for entities directory. I am Joomla! beginner

Any comments welcome.