Interfaces from foreign systems toward Dolibarr: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
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:
* recovery of an entity (the fetch method)
* insertion into database of an entity (the create method or insert)
* updating an entity (the update method)
* deletion of an entity (the delete method) if applicable to the object
* various other methods specific to the entity manipulated.
This technique is better than first one.
'''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.
See page [[Business Objects]].
See page [[Business Objects]].


= Web services =
= Web services =
See [[Module Web Services]].
See [[Module Web Services]].

Navigation menu