1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00
dolibarr_ynh/sources/dolibarr/dev/skeletons
Laurent Peuch e6008fc691 init
2015-09-28 22:09:38 +02:00
..
build_api_class.php init 2015-09-28 22:09:38 +02:00
build_class_from_table.php init 2015-09-28 22:09:38 +02:00
build_webservice_from_class.php init 2015-09-28 22:09:38 +02:00
modMyModule.class.php init 2015-09-28 22:09:38 +02:00
README init 2015-09-28 22:09:38 +02:00
skeleton_api_class.class.php init 2015-09-28 22:09:38 +02:00
skeleton_class.class.php init 2015-09-28 22:09:38 +02:00
skeleton_page.php init 2015-09-28 22:09:38 +02:00
skeleton_script.php init 2015-09-28 22:09:38 +02:00
skeleton_webservice_server.php init 2015-09-28 22:09:38 +02: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 that 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 build_class_from_table.php script that accepts a table name as a parameter and will uses the description table within 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 module's code. 
No more coding is needed to get access to table with this script because the file is completely generated once.