I have just completed version .01 of what I call 'rcrud' -> "Robs CRUD"
It is a php class that works off of a adodblite link and a table name. Its basic and works with text and textarea forms fields for now... stay tuned.
The class is not specific to CMS-MS and maybe works in other libs/projects. CMS-MS is my target.
To Use:
1. Download http://www.hlounge.net/rcrud ( site will improve )
2. Unpack to your module directory, one file rcrud.inc.php ( always will be one file nothing more )
3. require at the top of your module before the class dec:
Code: Select all
require_once( 'rcrud.inc.php' );
Code: Select all
$co = new rcrud( $this->cms->db , 'module_table_name' );
Code: Select all
$co->fields['news_id']['visible_in_add'] = false;
$co->setVisibleInListAll( false );
$co->fields['news_title']['visibile_in_list'] = true;
...
Code: Select all
$co->go();
BAM You now have a primitive table manager Create/Add, Report/Show, Update/Edit, Delete.
I will be using this to make mods in the future and will be updating.
DISCLAIMER: Do not use this on the front end of the site, its insecure for the moment use only in the backend module admin area and make sure that the back end user has some sort of permissions for that module. Rcrud does not do authetication... yet...