304
edits
| Line 13: | Line 13: | ||
= Using PHP classes = | = Using PHP classes = | ||
It is possible to use business objects Dolibarr (xxx.class.php files). Each of these files | It is possible to use business objects Dolibarr (xxx.class.php files). Each of these files provides a class of methods for: | ||
* | * reading of an entity (the fetch method) | ||
* insertion into database of an entity (the create method or insert) | * insertion into database of an entity (the create method or insert) | ||
* updating an entity (the update method) | * updating an entity (the update method) | ||
| Line 24: | Line 24: | ||
'''Advantages:''' It offers the advantage of passing through layers of data validation business. The interface code should normally not be rewritten when upgrading version Dolibarr. | '''Advantages:''' It offers the advantage of passing through layers of data validation business. The interface code should normally not be rewritten when upgrading version Dolibarr. | ||
'''Disadvantages:''' It is usable in PHP only. Your code must be stored on same server | '''Disadvantages:''' It is usable in PHP only. Your code must be stored on the same server as the Dolibarr files. | ||
See page [[Business Objects]]. | See page [[Business Objects]]. | ||
edits