Florian HENRY e291ca2e23 FIX : Better FetchAll method 10 years ago
..
.gitignore 9f035d3b91 New: Add web service to get user 14 years ago
README dcba31a4db translation enhancement 13 years ago
build_api_class.php fd077db1b7 NEW : script to build API class from existing class 10 years ago
build_class_from_table.php ab3e1631f4 FIX : php_build_class_from_table comma ending on insert 10 years ago
build_webservice_from_class.php f8f502d013 Removed closing php tag 11 years ago
modMyModule.class.php 98344746cf Added missing scopes of modMyModule 10 years ago
skeleton_api_class.class.php dbb9449ee7 Fix PHPCS 10 years ago
skeleton_class.class.php e291ca2e23 FIX : Better FetchAll method 10 years ago
skeleton_page.php b766f99acc Uniformize look. 10 years ago
skeleton_script.php 6645b8a454 Cannot redeclare getmypid() 11 years ago
skeleton_webservice_server.php 8996953077 Fix: error reported by scrutinizer 10 years ago

README

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.