devCRUDmaker
Xaraya Developers CRUD File Maker
Current Location: >> Main Page >> Dev HQ >> Module Library >> devCRUDmaker
Top Priority Tasks
Latest Worklogs
Turn the 80/20 rule into 20/20 vision and stay focused on the important parts of your module development!
Tired of having to constantly write yet another set of component files to create, display, update and delete your data? Get a head start on your next module or enhancement and skip straight to the interesting parts...
First, download and install devCRUDmaker. Then, use DynamicData to create your new component object, if you haven't already. Once your DData object is ready, go to the devCRUDmaker. Your object will be available for selection in the component dropdown (including all other DData objects).
After selecting your component, you will be presented with fields to modify the module name, component name, etc. (in case you wish to add the component to a different module or change the component to "user" or "admin" for simple modules)
Having specified the details for your new component, you will be given a dropdown list of the typical files used for any data component. These include files of three distinct types: GUI, API and Templates.
The acronym embedded in the module name stands for (C)reate, (R)ead, (U)pdate and (D)elete. However, in order to accomodate the need to separate data, display and functionality, we need to have three files for each standard data action (CRUD). In addition, there are files generated for installing the component as a new module. The complete list of file provided by devCRUDmaker is as follows:
modulename/xarinit.php
modulename/xarversion.php
modulename/xartables.php
modulename/xarcomponentname/view.php
modulename/xarcomponentnameapi/getall.php
modulename/xarcomponentname/componentname-view.php
modulename/xarcomponentname/display.php
modulename/xarcomponentnameapi/get.php
modulename/xarcomponentname/componentname-display.php
modulename/xarcomponentname/new.php
modulename/xarcomponentname/create.php
modulename/xarcomponentnameapi/create.php
modulename/xarcomponentname/componentname-new.php
modulename/xarcomponentname/modify.php
modulename/xarcomponentname/update.php
modulename/xarcomponentnameapi/update.php
modulename/xarcomponentname/componentname-modify.php
modulename/xarcomponentname/delete.php
modulename/xarcomponentnameapi/delete.php
modulename/xarcomponentname/componentname-delete.php
To establish the files where you want them, create an empty file with the specified name (and inside the indicated directory, if necessary). Then, copy the contents of the file shown by devCRUDmaker into your file and save it. Repeat for each file.
Once you are finished, you are ready to begin customizing the generic component files for your new module!
There are no comments attached to this item.