dolibarr/dev/skeletons
Laurent Destailleur 0d346ac1c1 New: A module can add several css and several js.
New: Removed lightbox as it is not compatible with GPL.
2012-08-08 20:43:23 +02:00
..
.gitignore New: Add web service to get user 2011-10-18 15:55:06 +02:00
build_class_from_table.php Enhance generators 2012-06-27 01:27:22 +02:00
build_webservice_from_class.php New: Add web service to get user 2011-10-18 15:55:06 +02:00
modMyModule.class.php New: A module can add several css and several js. 2012-08-08 20:43:23 +02:00
README Update doc 2008-12-04 23:17:55 +00:00
skeleton_class.class.php No more need to rename constructor method 2012-02-26 13:32:39 +01:00
skeleton_page.php Enhance generators 2012-06-27 01:27:22 +02:00
skeleton_script.php Enhance generators 2012-06-27 01:27:22 +02:00
skeleton_webservice_server.php Qual: Normalize function name 2012-02-15 13:55:00 +01:00

README (English)
--------------------------------
This directory contains PHP script samples that can be used to start a development on Dolibarr.

build_class_from_table.php:
This is the script to use to generate PHP code of a PHP POJO class
object, a PHP script that use this POJO. This script use the files
skeleton_*.php to build its generated code. 


modMyModule.class.php:
Is a sample of module descriptor you can use if you want to build a new module/plugin for
Dolibarr.


skeleton_script.php:
Is a sample you can use as an example if you need to build a script to run on command line

skeleton_page.php:
Is a sample you can use as an example if you need to build an HTML page to include in Dolibarr GUI.

skeleton_class.class.php:
Is a sample you can use as an example if you need to build a class file to access a new table
required by a Dolibarr development.
However it is better to run the script build_class_from_table.php that accept a table name as a 
parameter and will used table description in database and the skeleton_class.class.php file to
generate full code for your class file.
After running this script, the class to access your table (insert a record, update, delete and select)
is directly finished and can be used by your business code. No more coding for accesser on table
is needed with this script as the file is completely generated once.