dolibarr/dev/skeletons
2010-04-21 22:14:11 +00:00
..
.cvsignore Fix: Correct errors in code generator 2008-08-02 11:26:43 +00:00
build_class_from_table.php Fix: rename $class to $classname to prevents problems 2010-04-09 07:55:37 +00:00
build_webservice_from_class.php Fix: Code simpler and works even if script file has no path when called by php interpreter 2010-03-16 18:46:28 +00:00
modMyModule.class.php Comment 2010-04-18 16:08:09 +00:00
README Update doc 2008-12-04 23:17:55 +00:00
skeleton_class.class.php Fix: regression 2010-04-21 22:14:11 +00:00
skeleton_page.php Add possibility to add linked object block in object card for external module 2010-04-09 08:15:46 +00:00
skeleton_script.php Fix: Code simpler and works even if script file has no path when called by php interpreter 2010-03-16 18:46:28 +00: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.