Interfaces from foreign systems toward Dolibarr: Difference between revisions

Jump to navigation Jump to search
m
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 has provided a class of methods for:
It is possible to use business objects Dolibarr (xxx.class.php files). Each of these files provides a class of methods for:
* recovery of an entity (the fetch method)
* 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 than Dolibarr files.
'''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]].
304

edits

Navigation menu